Skip to main content

Request Device Creation

Request

ENDPOINT
/account/ACCOUNT_KEY/device
METHOD
POST

Path Params

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key.36
Request Body: SMS Authentication
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"session_id": "fae3cb6c-9012-4b1c-9d61-7e8b2a6a5ed2",
"tfa_info": {
"approver_document_number": "98765432100",
"contact_type": "sms",
},
}

Body Params

FieldTypeDescriptionCharacters
device_key *uuidv4Unique device identification key in uuid v4 format, obtained through device_scan (created at this moment by the integrating client).36
session_id *uuidv4Unique session identification key in uuid v4 format, obtained through device_scan (created at this moment by the integrating client).36
tfa_info*ObjectObject containing the approver's document number and contact method or image_key.tfa_info Object

tfa_info Object

FieldTypeDescriptionCharacters
approver_document_number*stringDocument number of the account approver.11
contact_type*stringIndicates the contact method with the person responsible for account approval. Possible values are sms, email, or liveness (when authentication is performed using image_key).

Response

STATUS
202
Response Body: Transaction Requested
{
"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 Code
status
QI Code
code
Title
title
Description (eng)
description
Description (ptbr)
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
403OBD000090No approver permissionGiven document number does not belong to an approver for this account stringNúmero de documento enviado não pertence a um aprovador da conta
400OBD000091tfa_info is requiredClient must send object tfa_infoCliente deve enviar objeto tfa_info.
400OBD000092Invalid device infoSession ID and Device Key must be a valid UUID4A Session ID e o Device Key devem ser um UUID4 válidos
404OBD000093Requester Configuration not foundThere is no Requester Configuration attributed to requester_keyNão há Requester Configuration para a requester_key enviada
403OBD000094Requester not allowed to create a deviceRequester has no permission to create a deviceRequester não possui permissão para criar um dispositivo
400OBD000097Error occurred while sending tokenAn unexpected error occurred while sending tokenUm erro inexperado ocorreu ao tentar enviar token