generateActivationCode
POST
generateActivationCode
Generate a single-use activation code for a user. The code expires 30 days after being issued.
Resource URL
https://api-sandbox.arity.com/drivinginsights/v1/orgs/{orgId}/users/{userId}/activation
Header Parameters
Name | Values | Description |
---|---|---|
Content-Type |
|
|
Content-Type |
|
|
Authorization
(required) |
Value should be the word Bearer followed by a space and then the b2b-scope access token (e.g., Bearer CW8abh5JkxZ5KYdAQQH0p9fTAicq). To generate a b2b-scope access token, use the OAuth API. |
Request Body
{
{
"mobileScopeToken": "",
"deviceId": ""
}
orgId Unique ID for the organization, provided by Arity. null true
userId Unique ID for the user. null true
Make a request and see the response.
Make a request and see the response.
Make a request and see the response.
Response Error Details
-
HTTP CodeError CodeDescription
-
400
Bad request
-
404
Not found
-
503
Service unavailable
Resource Summary |
|
Security |
None |
Content Type |
application/json |
Category |
activation-code-controller |
Name | Type | Description |
---|---|---|
mobileScopeToken | string | Authorization token associated with the user. |
deviceId | string | Unique ID associated with the device that the user is registered with. |
Name | Type | Description |
---|---|---|
data .activationCode | string | Unique six-digit alphanumeric code generated by Arity. Expires 30 days after being issued. |
data .mobileScopeToken | string | Authorization token associated with the user. |
Working...