POST access_tokens/generate_otp
This method generates a one-time password (OTP) for an access token, by providing the access token identifier. A single access token otp can be generated by each call.
Resource URL
http://host_name/crmapi/rest/$version/access_tokens/generate_otp
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
access_token_identifier (mandatory) | Access Token identifier | The identifier of the access token for which a one-time password will be generated. The allowed access token identifier fields are the following:
| ||||||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the related access token |
number | String | The number of the related access token |
one_time_password | Integer | The generated one-time password (OTP) |
expiration_date | Date | The date when the one-time password generated will be expired |