Create a new session for a user.

View as Markdown

Authentication

X-API-Keystring

API Key authentication. Generate your API key in the Gail Portal under General > Integrations > API Keys.

Request

The session creation request.
userKeystring or nullRequired
metadatamap from strings to strings or nullRequired

Response

OK
idstringformat: "uuid"
The unique identifier for the session.
userKeystring or null
The unique identifier of the user associated with the session.
metadatamap from strings to strings or null
Additional metadata associated with the session or user.
issuedAtdatetime
The timestamp when the session was issued.
expiresAtdatetime
The expiration timestamp of the session.

Errors

400
Bad Request Error