跳到主要内容

申请重发令牌

将生成新令牌并发送给负责创建设备的审批人(仅限通过电子邮件或 SMS 联系的情况)。若超出令牌验证尝试次数限制,则不允许重发。

Request

ENDPOINT
/account/ACCOUNT_KEY/device/DEVICE_KEY/resend_token
MÉTODO
PATCH

路径参数

字段类型描述字符数
account_keyuuidv4账户唯一标识键。36
device_keyuuidv4设备唯一标识键。36

Body 参数

字段类型描述字符数
contact_type*string指定与账户审批负责人的联系方式。可能的值为 smsemailcontact_type 枚举值
说明

若未发送 contact_type,令牌将按原始申请的方式发送。

枚举值描述
sms通过短信发送至手机
email通过电子邮件发送

Response

STATUS
202
Response Body: 重发已申请
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"device_status": "pending_2fa_approval",
"created_at": "2024-12-22T20:30:23.459Z"
}
STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 代码
status
QI 代码
code
标题
title
描述(英文)
description
描述(葡文)
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
404OBD000002Not FoundBank account not foundConta não encontrada
400OBD000088Bad RequestAccount blocked or closed can not perform this actionA conta bloqueada ou fechada não pode executar esta ação
400OBD000089Bad RequestHub account can not perform this actionA conta hub não pode executar esta ação
400OBD000097Error occurred while sending tokenAn unexpected error occurred while sending tokenUm erro inexperado ocorreu ao tentar enviar token
400OBD000099Number of token validation attempts exceededThe maximum number of failed token validation attempts has been reachedNúmero máximo de tentativas de validação de token atingida
404OBD000100Device not foundNo device is associated with the provided device_key.Nenhum dispositivo está associado à device_key fornecida.