Send Activation API

Sends a link to users that, when opened, initiates a BindID registration flow. By default, the link is sent via email and is valid for 30 minutes from the time it is sent. To change this, contact your Transmit representative to enable a preview feature where the expiration time can be set on the Application's settings page in the Admin Portal.

Note: To enable BindID registrations via links, you need to add a client redirect URI (see BindID Registration Links).

HTTP Request

The API is invoked as a POST request to the following endpoint:

https://<host-name>/api/v1/mgmt/send-activation

where <host-name> has the following value depending on the environment:

  • Sandbox: admin.bindid-sandbox.io
  • Production: admin.bindid.io
  • Production EU: admin.eu.bindid.io

Request Header

Header NameValue
AuthorizationA valid bearer token (see Token API)
Content-Typeapplication/json

Request Body

A JSON object with these fields:

FieldDescriptionType
aliasObject containing the user alias that is stored in BindID after the user registers using the link. Required when confirmedUser is unspecified or set to true.alias
clientIdRequired. The client ID of the client for which the user will be authenticated.String
customMessageOptional. Message displayed to the user during the BindID authentication flow.String
scopesRequired. Array of required scopes. These values are supported: email and phone. Can be an empty array.Array of Strings
completionMessageOptional. Object containing a message and link that is displayed to the user after completing the authentication flow.completionMessage
credentialsIdRequired. API credentials ID used to create the access token that authorizes this request.String
secondaryCompletionMessageOptional. Message displayed to the user on a mobile device during a desktop to mobile authentication flow.String
userEmailRequired. Email address to which the link is sent and the user is registered.String
verificationsRequired. Array of required verifications. These values are supported: ts.bindid.iac.email and ts.bindid.iac.phone_number.Array of Strings
confirmedUserOptional. Determines if the user's device is bound to the client application after the user successfully registers (equivalent to calling the Session Feedback API after authenticating a new user). When unspecified, defaults to true.Boolean

alias Object

FieldDescriptionType
typeRequired. Can be none, email or alias. When email is specified, the user alias is set to the value of the email address used to send the link and register the user (userEmail).String
valueThe user's alias. Only required when type is set to alias.String

completionMessage Object

FieldDescriptionType
textRequired. Text to display to the user on the authentication completed page.String
linkOptional. Object that defines a link displayed to the user on the authentication completed page: redirectUri (string, required) - the link's URL; label (string, required) - the link's display text. The URL must be listed as a client redirect URI in the Admin Portal (see Configure Your Application).Object

Request Example

POST /api/v1/mgmt/send-activation
Authorization: Bearer k_lONS-upqKzUx_UWpmJBIiybpf2ZyEkmBTcUYkvSEI
Content-Type: application/json
{
"clientId": "3d70edce.23bf0963.tid_7d4bd3fc.bindid.io",
"credentialsId": "55b9e897.management_api_app.tid_7d4bd3fc.bindid.io",
"verifications": [
"ts.bindid.iac.email",
"ts.bindid.iac.phone_number"
],
"userEmail": "someone@email.com",
"scopes": [
"email",
"phone"
],
"confirmedUser": true,
"alias": {
"type": "email"
},
"customMessage": "Nearly done...",
"secondaryCompletionMessage": "Go back to your desktop to finish registering your device.",
"completionMessage": {
"text": "Welcome to ACME",
"link": {
"redirectUri": "https://www.acme.com",
"label": "Go to our portal"
}
}
}

Response Headers

The POST response includes this HTTP header:

Header NameValue
Content-Typeapplication/json

Response Body

The JSON object in the body has the following structure:

Field NameDescriptionType
statusIndicates call success.String
activationResultObject that contains result data for registration links that were sent.activationResult

activationResult Object

FieldDescriptionType
channelsResultIndicates success or failure of each channel to which registration links were sent. Currently, only one channel is supported.Array of channelsResult objects

channelsResult Object

FieldDescriptionType
channelTypeThe channel used to send the link. Currently, only email is supported.String
targetThe email address to which the registration link was sent.String
statusIndicates whether or not the link was successfully sent.String

Response Example

HTTP/2 200
Content-Type: application/json
{
"status": "success",
"activationResult": {
"channelsResult": [
{
"channelType": "email",
"target": "someone@email.com",
"status": "success"
}
]
}
}