3. Sending the request
Your POST must be sent to https://sandbox.pagbrasil.com/api/oauth/token setting the content-type of the request header and body as "x-www-form-urlencoded".
Please note that this URL shall only be used for integration and testing procedures. Use the production endpoint in live environments.
Authentication method:
This endpoint requires Basic Authentication.
The credentials (Client ID and Client Secret) are provided in the PagBrasil Dashboard and must be sent in the Authorization header, encoded in Base64:
Authorization: Basic base64(client_id:client_secret)
Request body parameters:
Field | Description | Required |
|---|---|---|
grant_type | Send the value | Yes |