Authentication

Get Profile Token using Account Token

Returns a profile token to be used in the authorization header as 'profile {token}'.

post/api/v1/oauth/profile/token

Request

  • Base URL
    https://api.sahha.ai (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header Authorization

Request body

externalIdstring nullable
readOnlyboolean nullable
lifetimeinteger nullable

Example request

{
  "externalId": "C85330AD-C691-453C-8CB6-353AB75FD611"
}

Response

Returns a token response.

profileTokenstring

Profile token used in authorization header as 'profile {token}'

expiresIninteger

When the token expires, as Unix time in seconds.

tokenTypestring

The type of token being returned, will be 'account' or 'profile'

refreshTokenstring nullable

Populated with a token value in response to a refresh token request.

Example response

{
  "profileToken": "hIw0LuHXHZKMD7bWV0DlGWyTAyHqO8EceLmJ5ez96QrXv3Lhf0qoDqrNDp7jx...",
  "tokenType": "Profile",
  "refreshToken": "hIw0LuHXHZKMD7bWV0DlGWyTAyHqO8EceLmJ5ez96QrXv3Lhf0qoDqrNDp7jx..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.