Cloud Administration Retrieve Device Registration Code API
Use the Cloud Administration Retrieve Device Registration Code API to generate a code so that users can register their iOS, Android, and Windows devices.
For information about managing access to this API, see Accessing the Cloud Administration APIs.
Authentication
Clients calling this API must authenticate themselves by including a JSON Web Token in a request. For instructions on using this token, see Authentication for the Cloud Administration APIs .
Software Developer Kit
You can download the API Software Developer Kit (SDK) from Cloud Administration REST API Download.
Request Requirements
Use the following information to generate a device registration code.
| Method | Request URL | Response Content Type | Response Body | Response Codes |
|---|---|---|---|---|
| POST | /AdminInterface/restapi/v1/users/deviceRegistrationCode | application/json | User device registration code | 200, 400, 403, 429, 500 |
Example Request Data
The request does not contain any parameters. The following example displays a request.
POST /AdminInterface/restapi/v1/users/deviceRegistrationCode
Accept: application/json
Authorization: Bearer <JWT token>
Example Request Body
{
"email": "user.one@mycompany.com",
"appId": "1f00c62b-a5c0-49d3-9ffb-92314d717187"
}{
"username": "usersusername",
"appId": "1f00c62b-a5c0-49d3-9ffb-92314d717187"
}| App Type | appId |
|---|---|
| RSA Authenticator app for iOS and Android | 1f00c62b-a5c0-49d3-9ffb-92314d717187 |
| RSA Authenticator app for Windows | N/A |
| RSA Authenticator app for macOS | N/A |
Example Response
The following example response shows a device registration code for a user.
{
"companyID": "MyCompany",
"deviceRegistrationCode": "110690571",
"email": "user.one@mycompany.com",
"expirationDate": "2020-01-10T19:10:30.045Z"
}The following example response is used when the user already has a registered device.
{
"timestamp": 1578675038636,
"status": 403
"error": "Forbidden";
"message": "User already has a registered device.",
"path": "/AdminInterface/restapi/v1/users/deviceRegistrationCode"
}
Response Property Descriptions
The following table describes the properties included in the API response.
| Property | Description | Data Type |
|---|---|---|
| User's email address | String | |
| username | User name | String |
| companyId | Company identifier | String |
| deviceRegistrationCode | Numeric registration code | Number |
| expirationDate | Date when the registration code expires. The code for one-time use. See https://www.w3.org/TR/NOTE-datetime for format information. | String |
| timestamp | Time of response. | Number |
| status | HTTP status code (numeric) sent when generate device registration code is unsuccessful. | Number |
| error | HTTP status code (string) sent when generate device registration code is unsuccessful. | String |
| message | Reason for failure to generate the device registration code. | String |
Response Codes
The following table shows the response codes for this API and their descriptions.
| Code | Description |
|---|---|
| 200 | Successfully generated a device registration code. |
| 400 | Error caused by one of the following:
|
| 403 | Device registration code not generated for one of the following reasons:
|
| 429 | Too many requests. |
| 500 | Cloud Access Service has an internal error and cannot generate the device registration code. |
Related Articles
Change the Auto-Registration Queue Size 18Number of Views Prevent or specify the auto-registration utility for selected subnets in RSA authentication agent 7.4 for Microsoft windows 33Number of Views Automatic Agent Registration 132Number of Views Device Registration Using Password Policy 279Number of Views Authenticator Registration 235Number of Views
Trending Articles
Troubleshooting RSA SecurID Access Identity Router to RSA Authentication Manager test connection failures RSA SecurID Software Token 5.0.2 Downloads for Microsoft Windows RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Governance & Lifecycle 8.0.0 Administrators Guide Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory