v13

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-04237161688.6 KB
Sessions

Create a new active session

Create a new active session for the provided user ID.

This operation is intended only for use in testing, and is not available for production instances. If you are looking to generate a user session from the backend, we recommend using the Sign-in Tokens resource instead.

post/sessions

Request body

user_idstring required

The ID representing the user

active_organization_idstring

The ID of the organization to set as active for this session

Response

Success

object'session' required

String representing the object's type. Objects of the same type share the same value.

idstring required
user_idstring required
client_idstring required
actorobject nullable
status'active' | 'revoked' | 'ended' | 'expired' | 'removed' | 'abandoned' | 'replaced' | 'pending' required
last_active_organization_idstring nullable
last_active_atinteger required
expire_atinteger required

Unix timestamp of expiration.

abandon_atinteger required

Unix timestamp of abandonment.

updated_atinteger required

Unix timestamp of last update.

created_atinteger required

Unix timestamp of creation.