v68

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0170379386.9 KB
Authentication

Create authentication token

Creates an authentication token for the authenticated user. These are specifically intended to be used with the Web SDK.

Note: The tokens generated from this endpoint are not valid tokens for use with the Client API (e.g. /rest/api/v1/*).

post/rest/api/v1/createauthtoken

Headers

X-Glean-ActAsstring email

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

X-Glean-Auth-Typestring

Auth type being used to access the endpoint (should be non-empty only for global tokens).

Response

OK

tokenstring required

An authentication token that can be passed to any endpoint via Bearer Authentication

expirationTimeinteger required

Unix timestamp for when this token expires (in seconds since epoch UTC).