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

  • Base URL
    https://api.hexclave.com/api/v1
  • URL
    https://api.hexclave.com/api/v1/auth/sessions
  • Auth
    none declared

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

Changes

No recorded changes to this operation across all 28 revisions of this API.