> For the complete documentation index, see [llms.txt](https://apidocs.onekeypayments.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.onekeypayments.com/api-reference/cashouts-api/validate-bank-accounts/pix-keys-validator.md).

# Pix keys validator

## Validate one or more Pix Keys

> This endpoint allows you to verify whether a Pix Key exists or not. All Pix Key types can be verified with this API.

```json
{"openapi":"3.0.0","info":{"title":"Pix Key Validation API","version":"v5"},"servers":[{"url":"https://api-stg.onekeypayments.com/v5","description":"Staging Server"}],"paths":{"/account/pix_key/validate":{"post":{"summary":"Validate one or more Pix Keys","description":"This endpoint allows you to verify whether a Pix Key exists or not. All Pix Key types can be verified with this API.","operationId":"validatePixKeys","parameters":[{"name":"Content-Type","in":"header","required":true,"description":"Media type of the request.","schema":{"type":"string"}},{"name":"X-Date","in":"header","required":true,"description":"ISO8601 Datetime with Timezone.","schema":{"type":"string","format":"date-time"}},{"name":"X-Login","in":"header","required":true,"description":"Merchant X-Login Cashouts API Key.","schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"description":"Authorization control hash.","schema":{"type":"string"}}],"requestBody":{"description":"A JSON array of Pix Key objects to be validated.","required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PixKey"}}}}},"responses":{"200":{"description":"OK - A list of validation results for each submitted Pix Key.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ValidationResult"}}}}},"401":{"description":"Unauthorized - The provided credentials are not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"PixKey":{"type":"object","required":["pix"],"properties":{"pix":{"type":"string","description":"The Pix Key to validate (e.g., CPF, Email, Phone Number)."}}},"ValidationResult":{"type":"object","properties":{"pix":{"type":"string","description":"The Pix Key that was validated."},"valid":{"type":"boolean","description":"Indicates if the Pix Key is valid."}}},"Error":{"type":"object","properties":{"code":{"type":"integer","description":"An internal error code."},"description":{"type":"string","description":"A human-readable description of the error."},"type":{"type":"string","description":"The type of error that occurred."}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apidocs.onekeypayments.com/api-reference/cashouts-api/validate-bank-accounts/pix-keys-validator.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
