Skip to content

GetBearerToken

Fetch a token based on your email and password. This token will grant you authorisation to use Retain Cloud API endpoints.

Resource URL

https://{environment}.retaincloud.com/IntegrationApi/token

Request body

{
  "environment": "string",
  "tenant": "string",
  "useremail": "string",
  "userpassword": "string"
}

Request headers

none

Response

If successful, returns response code 200 and a authorisation token else returns one of the following response codes:

  • 400 - Bad request
  • 401 - Unauthorised
  • 403 - Forbidden
  • 404 - Not found

Returns the following on success:

Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjEzM0I3RDQzNDMyMjc5MDIzRTJFQTFFN0NFRjgyRkNBQTQ3...