Skip to main content

Your first PIX charge

Follow this guide to create your first PIX charge in a few minutes.
1

Get your credentials

Open the Safefy Dashboard and create an API credential.You will receive:
  • clientId - Public identifier of your application
  • clientSecret - Secret key (shown only once, keep it safe!)
2

Generate an access token

With your credentials, request a JWT token:
Response:
3

Create a PIX charge

Use the token to create your first charge:
Response:
4

Receive the payment

When the payment is confirmed, you will receive a webhook at the configured URL:

Next steps

Authentication

Learn how OAuth2 authentication works.

Webhooks

Configure real-time notifications.

Sandbox

Test payments in a development environment.

Create transaction

See the full endpoint reference.