Documentation
Authentication
Create an organization token and send it with every API request.
Organization token
Every API request carries a token from an organization. Create one in the dashboard under Integração → Tokens → Criar token (Integration → Tokens → Create token); see API tokens. The token belongs to the organization where it was created: charges and invoices issued with it stay in that organization, and no organization identifier travels in the request.
The public API covers Pix (/v1/pixs), static Pix (/v1/pix-statics), boletos (/v1/boletos), invoices (/v1/fiscal-invoices) and card machine charges (/v1/pinpads), and it accepts only that token. A signed-in site session is not valid on those routes: the response is 403. Credentials, webhooks, tokens, logs and the organization are managed in the dashboard (see API tokens).
Keep the token in an environment variable or a secrets manager, never in your code or repository. To revoke it, delete the token on the same screen; systems that use it stop being accepted immediately.
Request
| Value | |
|---|---|
| Base URL | https://api.intopays.com |
| Header | Authorization: Bearer <token> |
| Content type | application/json |
curl https://api.intopays.com/v1/pixs \
-H "Authorization: Bearer $INTOPAYS_TOKEN"
The value you copy from the dashboard already starts with Bearer : it is the full header value. In the examples in this documentation, $INTOPAYS_TOKEN holds only the part after Bearer .
Active subscription
Creating Pix charges (Pix is Brazil's instant payment system), issuing boletos (Brazilian bank payment slips) and canceling boletos require an active subscription with the organization linked to it (see Organizations). Without it, the API answers 401 even with a valid token.
Authentication errors
| Status | Cause | Fix |
|---|---|---|
401 | Authorization header missing or not in the Bearer <token> format | Send the header exactly as in the table above |
401 | Token invalid, disabled or deleted | Create a new token in Tokens and replace it in your system |
401 | Organization without an active subscription | Subscribe to a plan in Assinaturas (Subscriptions) and link the organization to it |
403 | Request made with a signed-in site session instead of a token; the message starts with This route is for integrations with an organization API token. | Send an organization token in the Authorization header |
Authentication errors come in this format:
{
"status": false,
"message": "Descrição do erro"
}
Environment
The API is at version 0.0.1. The endpoints described in this documentation are the ones supported today.
Missing something on this page? Contact support from the dashboard and we'll update the docs.
