Canary Speech

UserLogin

POST - /user/login
Required Permissions:
  • scope:app
  • scope:app.userauth

Description

Logs a user into the Canary Speech Active Directory system. Used for user authentication in an application setting.

Headers

Header KeyDescriptionExample
Authorization
The Authorization header for this endpoint. The value must be the token from the /v3/auth/tokens/get endpoint and given using the Bearer pattern.
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdW...

Body Parameters

NameTypeDescription
* usernamestring
The username of the user.
* passwordstring
The password of the user.

Successful Response

A successful response

Field NameTypeDescription
idTokenstring
The active directory ID token of the user.
accessTokenstring
The active directory access token for this login session.
refreshTokenstring
The active directory refresh token for this login session.
expiresInint32
The length of time in seconds for which the tokens are valid.
databaseIduuid
The database ID associated with the user.

Code Example