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

{
1
{
2
    "mobileScopeToken": "",
3
    "deviceId": ""
4
}
 

orgId Unique ID for the organization, provided by Arity. null true

userId Unique ID for the user. null true

HTTP Basic

OAuth 2.0

API Key

Reset

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 Code
    Error Code
    Description
  • 400

    Bad request

  • 404

    Not found

  • 503

    Service unavailable

Resource Summary

Security

None

Content Type

application/json

Category

activation-code-controller

Name Type Description
mobileScopeTokenstringAuthorization token associated with the user.
deviceIdstringUnique ID associated with the device that the user is registered with.
Name Type Description
data
.activationCode
stringUnique six-digit alphanumeric code generated by Arity. Expires 30 days after being issued.
data
.mobileScopeToken
stringAuthorization token associated with the user.

Working...

© 2019 Arity, LLC. All rights reserved.  | Privacy Policy | Terms of Use | Legacy APIs