Skip to content

/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 ​

ItemValue
MethodPOST
Path/pix/key/info
Content-Typeapplication/json
PurposeQuery 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.

FieldLocationTypeMax LengthRequiredDescription
keyBodystring64YesThe 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.

FieldTypeMax LengthAlways ReturnedDescription
statusint4YesResponse code.
msgstring128YesMessage corresponding to status; sucesso on success.
dataobjectN/ANoPix Key details; it may be omitted when the request fails at the signature verification or protocol parsing stage.
data.keystring64YesThe Pix Key or receiving identifier; same as chave.
data.chavestring64YesThe Pix Key (Portuguese chave); may be masked.
data.tipoChaveint4YesPix Key type code (Portuguese tipoChave).
data.nomeCorrentistastring256YesAccount holder's name or business name (Portuguese nomeCorrentista).
data.nomeFantasiastring256YesHolder's trade name (Portuguese nomeFantasia, i.e. business name); an empty string when there is none.
data.tipoPessoaint4YesHolder type code (Portuguese tipoPessoa), distinguishing natural persons from legal entities.
data.documentoFederalstring64YesHolder's tax ID (Portuguese documentoFederal): CPF for individuals, CNPJ for businesses; may be masked.
data.contaobjectN/AYesReceiving account information.
data.conta.contastring32YesAccount number.
data.conta.tipoContaint4YesAccount type code.
data.conta.agenciastring8YesBranch number.
data.conta.ispbstring8YesISPB code of the institution holding the account (8 digits, handled as a string to preserve leading zeros).
data.bancoobjectN/AYesReceiving bank information.
data.banco.descricaostring128YesBank name.
data.banco.numerostring8YesBank number; an empty string when there is none.
data.banco.ispbstring8YesISPB code of the bank.
data.detalhesConsultanullN/AYesQuery details (Portuguese detalhesConsulta); currently always null.
data.ticketstring64YesQuery ticket (Portuguese ticket); an empty string when there is none.
data.sucessobooleanN/AYesWhether this Pix Key query succeeded (Portuguese sucesso).
data.mensagemstring128YesQuery message (Portuguese mensagem); an empty string when there is none.
data.ownerobjectN/AYesHolder information (English).
data.owner.namestring256YesHolder's name or business name.
data.owner.taxIdNumberstring64YesHolder's tax ID; may be masked.
data.accountobjectN/AYesAccount information (English).
data.account.bankNamestring128YesBank name.
data.subMerchantNostring64NoSub-merchant ID, additionally returned only when the query is made by a partner.

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"
    },
    "subMerchantNo": "SUB00000001"
  }
}

subMerchantNo is returned only for partner queries; it is absent for merchant queries.

Response Error Codes ​