Skip to main content
POST
Register a PIX key entry

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string

Idempotency key for a RANDOM key (keyType 4): any stable string you choose, up to 255 bytes, sent as the X-Idempotency request header (the same header, by the same name, that payment orders, refunds and MED writes take). REQUIRED when keyType is 4: omitting it, sending only whitespace, or sending more than 255 bytes is refused 400 PIX-0061 before anything is read or sent. Send the SAME value again to retry the SAME request: once a random key is registered under it, a resend is answered with that key and DICT is not asked again; while the first request is still being confirmed with DICT, a resend is 409 PIX-0007 (retry later). Keys are scoped to the account. A new random key needs a new value. A value whose random key was deleted or moved to another account registers a new random key. Every other key type is identified by its own value and ignores this header.

Example:

"evp-2026-10-17-0001"

Body

application/json
accountId
string
required

The Midaz ledger account id of the key owner.

Example:

"019a1b2c-3d4e-7f60-8a9b-0c1d2e3f4a5b"

keyType
integer<int64>
required

Numeric eKeyType (0=CPF,1=CNPJ,2=EMAIL,3=PHONE,4=RANDOM).

Example:

2

isValidated
boolean

Ignored: the service always forces validation to start fresh.

Example:

false

ispb
string

The ISPB of the direct participant this operation acts as. This deployment may act as SEVERAL direct SPI participants - one ISPB each, each with its own customers and its own DICT credential - and this field is the only thing on the request that says which of them writes to the national directory. OPTIONAL while it acts as a single participant: omit it and that one acts. REQUIRED once it acts as several - omitted is 422 PIX-0127, and an ISPB this deployment does not act as is 422 PIX-0128. It is ROUTING DATA you supply and guarantee, exactly like payerIspb on a transaction: never a credential, never read from a header or a path, and it never widens what your token can reach. It also selects the DICT credential the call goes out on, so a key registered under the wrong one is declared to Bacen by the wrong institution. Send it as an absent key, not an empty string; an empty value is refused 400 PIX-0061.

Pattern: ^[0-9]{8}$
Example:

"12345678"

key
string

The PIX key value (omit for a RANDOM key).

Example:

"foo@bar.com"

Response

Created

key
string

The PIX key value.

Example:

"11122233300"

keyType
integer<int64>

Numeric eKeyType.

Example:

4

status
integer<int64>

Numeric eKeyStatus.

Example:

1

statusDescription
string

Human-readable eKeyStatus label.

Example:

"ACTIVE"