Skip to main content
POST
Corpo application/x-www-form-urlencoded (RFC 6749). Resposta no formato OAuth2 puro — sem envelope { success, message, data }.

Corpo (form-urlencoded)

string
required
authorization_code ou refresh_token.
string
required
Client ID da aplicação.
string
Obrigatório para clients confidential.
string
Código do callback — com grant_type=authorization_code.
string
Mesma URI usada no authorize.
string
PKCE verifier — com grant_type=authorization_code.
string
Com grant_type=refresh_token. O refresh anterior é invalidado (rotação).
Access tokens expiram em 15 minutos (expires_in: 900). Renove com refresh antes de expirar.

Authorizations

X-API-Key
string
header
required

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
authorization_code,
refresh_token
client_id
string
required
client_secret
string
code
string
redirect_uri
string<uri>
code_verifier
string
refresh_token
string

Response

Tokens emitidos.

access_token
string
required
Example:

"gp_oat_live_..."

token_type
string
required
Example:

"Bearer"

expires_in
integer
required
Example:

900

refresh_token
string
Example:

"gp_ort_..."

scope
string
Example:

"account:read payments:read"