/pix/key/info Query Pix Key Info
Background
/pix/key/info queries the Pix Key type, holder, and tax ID by the payee's Pix Key. The endpoint is shared by merchants and partners.
This endpoint returns sensitive information such as names, tax IDs, and Pix Keys. Callers should use it only for transaction confirmation scenarios and avoid recording it in plaintext in logs.
Endpoint
| Item | Value |
|---|---|
| Method | POST |
| Path | /pix/key/info |
| Content-Type | application/json |
| Purpose | Query the payee that corresponds to a Pix Key |
Access Requirements
Request Fields
For authentication headers, see Authentication; they are not listed in the table below.
| Field | Location | Type | Max Length | Required | Description |
|---|---|---|---|---|---|
key | Body | string | 64 | Yes | The payee Pix Key to query; email, mobile number, CPF, CNPJ, or EVP are supported. |
The request body is JSON, and Digest is computed over the raw request body bytes actually sent.
Request Example
http
POST /pix/key/info HTTP/1.1
Content-Type: application/json
X-Merchant-Id: 92315566000120
X-Timestamp: 1786867200
X-Nonce: 550e8400-e29b-41d4-a716-446655440003
Digest: SHA-256=<Base64 digest>
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"
{
"key": "14912345647"
}Response Fields
The endpoint uses the standard status, msg, and data response structure. Most fields in data use Portuguese names (chave, tipoChave, etc.); key represents the same information as chave.
| Field | Type | Max Length | Always Returned | Description |
|---|---|---|---|---|
status | int | 4 | Yes | Response code. |
msg | string | 128 | Yes | Message corresponding to status; sucesso on success. |
data | object | N/A | No | Pix Key details; it may be omitted when the request fails at the signature verification or protocol parsing stage. |
data. | string | 64 | Yes | The Pix Key or receiving identifier; same as chave. |
data. | string | 64 | Yes | The Pix Key (Portuguese chave); may be masked. |
data. | int | 4 | Yes | Pix Key type code (Portuguese tipoChave). |
data. | string | 256 | Yes | Account holder's name or business name (Portuguese nomeCorrentista). |
data. | string | 256 | Yes | Holder's trade name (Portuguese nomeFantasia, i.e. business name); an empty string when there is none. |
data. | int | 4 | Yes | Holder type code (Portuguese tipoPessoa), distinguishing natural persons from legal entities. |
data. | string | 64 | Yes | Holder's tax ID (Portuguese documento): CPF for individuals, CNPJ for businesses; may be masked. |
data. | object | N/A | Yes | Receiving account information. |
data. | string | 32 | Yes | Account number. |
data. | int | 4 | Yes | Account type code. |
data. | string | 8 | Yes | Branch number. |
data. | string | 8 | Yes | ISPB code of the institution holding the account (8 digits, handled as a string to preserve leading zeros). |
data. | object | N/A | Yes | Receiving bank information. |
data. | string | 128 | Yes | Bank name. |
data. | string | 8 | Yes | Bank number; an empty string when there is none. |
data. | string | 8 | Yes | ISPB code of the bank. |
data. | null | N/A | Yes | Query details (Portuguese detalhes); currently always null. |
data. | string | 64 | Yes | Query ticket (Portuguese ticket); an empty string when there is none. |
data. | boolean | N/A | Yes | Whether this Pix Key query succeeded (Portuguese sucesso). |
data. | string | 128 | Yes | Query message (Portuguese mensagem); an empty string when there is none. |
data. | object | N/A | Yes | Holder information (English). |
data. | string | 256 | Yes | Holder's name or business name. |
data. | string | 64 | Yes | Holder's tax ID; may be masked. |
data. | object | N/A | Yes | Account information (English). |
data. | string | 128 | Yes | Bank name. |
Response Example
json
{
"status": 200,
"msg": "sucesso",
"data": {
"chave": "14*******47",
"tipoChave": 0,
"nomeCorrentista": "Fulano de tal",
"nomeFantasia": "",
"tipoPessoa": 1,
"documentoFederal": "***815687**",
"conta": {
"conta": "000001",
"tipoConta": 1,
"agencia": "0001",
"ispb": "35535240"
},
"banco": {
"descricao": "SAQ BANK",
"numero": "",
"ispb": "30306294"
},
"detalhesConsulta": null,
"ticket": "",
"sucesso": true,
"mensagem": "",
"key": "14*******47",
"owner": {
"name": "Fulano de tal",
"taxIdNumber": "***815687**"
},
"account": {
"bankName": "SAQ BANK"
}
}
}