Create PIX key
POST /order/v1/banking/accounts/{accountId}/keys
Create a PIX key for the given account. For EMAIL and PHONE keys, this starts a confirmation flow instead of creating the key right away: the response comes back as PENDING and a confirmation code is sent to the informed target. Call POST :accountId/keys/confirm with the returned validationId and the code to finish creating the key. CPF, CNPJ and RANDOM keys are created immediately, without OTP.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Identifier of the account
Header Parameters
Section titled “Header Parameters ”A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).
Request Body required
Section titled “Request Body required ”object
Type of PIX key to be created. RANDOM creates a random (EVP) key; EVP is accepted as an alias of RANDOM and the created key is returned with type EVP. EMAIL and PHONE start a confirmation flow instead of creating the key right away (see POST …/keys/confirm).
Example
CPFPIX key value (required unless type is RANDOM)
Example
122345678900OTP delivery channel. Only accepted when type is PHONE — SMS is the default when omitted. Ignored/rejected for other types.
Example
smsResponses
Section titled “ Responses ”The resource was returned successfully
object
Identifier of the PIX key
Example
a8f2b9c4-1e6a-4c3f-9d7b-2a1e8f9c5d10Type of the PIX key
Example
CPFPIX key value
Example
122345678900Creation date of the PIX key
Example
2025-12-18T10:15:30ZDate when the key was associated to the account
Example
2025-12-18T10:15:30ZValidation started for EMAIL/PHONE keys; call the confirm endpoint next.
object
Identifier of the validation. Must be sent back on the confirm endpoint.
Example
a8f2b9c4-1e6a-4c3f-9d7b-2a1e8f9c5d10Status of the validation
Example
PENDINGExpiration date of the confirmation code
Example
2025-12-18T10:15:30Zobject
Example
INVALID_REQUESTobject
Example
[ { "field": "field_name", "issue": "INVALID", "description": "Field is invalid" }]Unauthorized Request
object
Example
UNAUTHORIZEDExample
Unauthorized Requestobject
Example
[]object
Example
INTERNAL_ERRORobject
Example
[]