Sessions

postSessions

POST
/sessions

Create a Session. A Session represents a temporary method of authentication to the API. Each Session expires automatically after 30 minutes of inactivity. They are similar to API Keys (/apikeys) in their capabilities and field structure - but unlike API Keys, Sessions are not permanent.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create Session Request

Create Session Request

login?string

The Login that owns this resource.

public?sessionPublic

Whether this Session should have access to only public resources. All other resources are private. Valid Values

  • 0 - Session can also access private resources.
  • 1 - Session can only access public resources.

Value in

  • 0
  • 1
token?sessionToken

Whether or not an AuthToken is required as part of the authentication when this Apikey is used.

  • 0 - The authToken mechanism is disabled.
  • 1 - The authToken mechanism is required for 'POST' and 'DELETE' requests.

Value in

  • 0
  • 1
mfaAuthenticated?sessionMfaAuthenticated

Whether or not the MFA is enabled.. Valid Values

  • 0 - MFA is disabled.
  • 1 - MFA is enabled.

Value in

  • 0
  • 1
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X POST "https://example.com/sessions" \  -H "Content-Type: application/json" \  -d '{    "login": "p1_log_00a4d56d1b5c98e8694ae28",    "public": 1,    "inactive": 0,    "frozen": 0,    "token": 0,    "mfaAuthenticated": 0  }'
{  "response": {    "data": [      {        "id": "p1_ssn_00c73b181e33818d7c0a13a",        "created": "2025-03-04 12:40:40.1366",        "modified": "2025-03-04 12:40:40.1366",        "creator": "p1_log_00a4d56d1b5c98e8694ae28",        "modifier": "p1_log_00a4d56d1b5c98e8694ae28",        "login": "p1_log_00a4d56d1b5c98e8694ae28",        "key": "c00a5aafb5dd5352dc1fd656f4a4252c",        "public": 1,        "inactive": 0,        "frozen": 0,        "token": 0,        "sso": 0,        "mfaAuthenticated": 0      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}