Request token resend
A new token will be generated and sent to the approver responsible for creating the device (only for email or SMS contact cases). If the token validation attempt limit is exceeded, resending will not be allowed.
Request
ENDPOINT
/account/ACCOUNT_KEY/device/DEVICE_KEY/resend_tokenMETHOD
PATCHPath Params
| Field | Type | Description | Characters |
|---|---|---|---|
account_key | uuidv4 | Unique account identification key. | 36 |
device_key | uuidv4 | Unique device identification key. | 36 |
Body Params
| Field | Type | Description | Characters |
|---|---|---|---|
contact_type* | string | Indicates the contact method with the person responsible for account approval. Possible values are sms, email | contact_type Enumerator |
Information
If no contact_type is sent, the token will be sent in the originally requested format.
| Enumerator | Description |
|---|---|
| sms | Send via Text Message to mobile phone |
| Send via electronic mail |
Response
STATUS
202Response Body: Resend Requested
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"device_status": "pending_2fa_approval",
"created_at": "2024-12-22T20:30:23.459Z"
}
STATUS
4xxResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Codestatus | QI Codecode | Titletitle | Description (eng)description | Description (ptbr)translation |
|---|---|---|---|---|
| 400 | QIT000001 | Bad Request | Schema Error | Erro de Schema |
| 404 | OBD000002 | Not Found | Bank account not found | Conta não encontrada |
| 400 | OBD000088 | Bad Request | Account blocked or closed can not perform this action | A conta bloqueada ou fechada não pode executar esta ação |
| 400 | OBD000089 | Bad Request | Hub account can not perform this action | A conta hub não pode executar esta ação |
| 400 | OBD000097 | Error occurred while sending token | An unexpected error occurred while sending token | Um erro inexperado ocorreu ao tentar enviar token |
| 400 | OBD000099 | Number of token validation attempts exceeded | The maximum number of failed token validation attempts has been reached | Número máximo de tentativas de validação de token atingida |
| 404 | OBD000100 | Device not found | No device is associated with the provided device_key. | Nenhum dispositivo está associado à device_key fornecida. |