πŸ”‘Auth Token

POST https://api.agilizepay.com/auth/token

How use your Auth Token in requests http

Before making any request to the integration APIs, you need to include the Client ID in the request header using the client_id parameter and cert_client. The cert_client key should be encoded in base64 format.

SUMMARY:

CERT_CLIENT = Your certificate public key encoded in base64

CLIENT_ID = Your client_id can be found within the dashboard.

const cert_client = 'cert_client' + Buffer.from('cert_client').toString('base64');

Here is an example of how to use your API Key in a CURL command, which demonstrates including the API Key in the header. You can also use this example for making requests via Postman.

1. CURL

curl --request POST \
--url https://api.agilizepay.com/auth/token
--header 'Accept: application/json' \
--header 'client_id: {CLIENT_ID}'
--header 'cert_client: {cert_client}' -- toBase64

ATTENTION: Monitor the requests and try making new token requests every 3600 SECONDS.

Finally, if the API Key is not informed and/or is invalid, requests will issue a 403 error with the return:

🟒 200 - Successfully

Response body

πŸ”΄400 - Bad request

πŸ”΄401 - Unauthorized

πŸ”΄500 - Internal server error

Last updated