Create session

POST

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

Request

This endpoint expects an object.
user_idstringRequired

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

expires_in_millisdoubleOptionalDefaults to 31536000000

Response

Successful response

refresh_tokenstring
access_tokenstring