Get an access token.
POST
/oauth/token
Authentication
Resource | Read Scope | Write Scope | Accessible Using |
---|---|---|---|
Pix | pix.read | pix.write | Corporate token |
Billets | billets.read | billets.write | Corporate token |
Webhook | webhook.read | webhook.write | Corporate token |
Transactions | transactions.read | Corporate token | |
Account | account.read | Corporate token | |
Infractions | infractions.read | infractions.write | Corporate token |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://infopago.apidog.io//oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"clientSecret": "string",
"grantType": "client_credentials",
"scope": "string"
}'
Response Response Example
201 - Exemplo 1
{
"tokenType": "string",
"expiresAt": 0,
"refreshExpiresIn": 0,
"notBeforePolicy": 0,
"accessToken": "string",
"scope": "string"
}
Requisição
Parâmetros Bodyapplication/json