Base URL
ypk_test_, production keys with ypk_live_.
Authentication
All/v1/* endpoints authenticate with an API key sent as a Bearer token.
Create keys in the dashboard under Settings > API Keys:
GET /v1/auth/self.
Request headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer ypk_<env>_<kid>_<secret> — your API key. |
Content-Type | Yes (POST/PATCH) | application/json |
X-Idempotency-Key | Yes (write POST) | Unique key for safe retries. See idempotency. |
Response envelope
Successful responses are JSON objects keyed by the resource ({ "payment": {...} },
{ "withdrawal": {...} }, etc.). List responses include a pagination block:
Resources
Payments
Create and manage payments via PIX, direct card charges, hosted card checkout, or boleto.
Withdrawals
Transfer BRL funds from your balance via PIX.
Products
Manage your product catalog.
Customers
Store and manage customer records.
Documents
Generate receipts and account statements.
Balance
Read the company’s available, frozen, held, and total balance.
Authentication
Inspect the API key currently in use.

