Authentication

Register a Profile using Account Token (For Server to Server Integration)

Creates a new profile a returns a Profile token. A profile represents your end user. Requires a valid <b>Account</b> token in the authorization header.

post/api/v1/oauth/profile/register

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

ExternalId used to reference the created Profile

Example request

{
  "externalId": "6980b34e-14f9-47ef-b6f8-80a18b206a8e"
}

Response

Initialises a new profile and returns a Profile Token.

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.