v21

OpenAPI 3.1.0raw.githubusercontent.com2026-08-011060456.0 KB
Sessions

Create session

Create a new session for a given user. This will return a refresh token that can be used to impersonate the user.

post/auth/sessions

Request body

user_idstring required

The ID of the user, or the special value me for the currently authenticated user

expires_in_millisnumber
is_impersonationboolean

Example request

{
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c"
}

Response

Successful response

refresh_tokenstring required
access_tokenstring required