Skip to main content
POST
Gerar Access Token

Corpo

application/json
client_id
string
obrigatório

Identificador da credencial (mp_live_* produção, mp_test_* sandbox)

Exemplo:

"mp_live_9f0167e71b269509b9eba5b5"

client_secret
string
obrigatório

Secret da credencial (exibido uma única vez na criação)

Resposta

Token gerado com sucesso

access_token
string
obrigatório

Token JWT para usar no header Authorization

Exemplo:

"eyJhbGciOiJSUzI1NiIs..."

token_type
string
obrigatório
Exemplo:

"Bearer"

expires_in
integer
obrigatório

Validade do token em segundos

Exemplo:

300