Skip to main content

Obtener access token

Recurso para autenticar un cliente con un Oauth Application asociado

POST https://oauth.increase.app/oauth2/token

Headers

Content-Type: application/x-www-form-urlencoded
Accept: application/json
Authorization: Basic <base64(client_id + ":" + client_secret)>

Recordá concatenar el client id con el client secret que te hayamos compartido, uniéndolos con ":", y luego encodearlo a base64. El resultado es lo que envías en el header Authorization

Body

{
"grant_type": "client_credentials"
}
curl -X POST https://oauth.increase.app/oauth2/token --header 'content-type: application/x-www-form-urlencoded' --data grant_type=client_credentials -u '<client_id>:<client_secret>'

Success response

{
"access_token": "jssGCOGOuI9ObnH13ALToaLoXt2YTpZCoeHumzCmdNc.YLC_SzNNchw7QF5igo7E4zyyhBSuOWjzIrhTvrh2mAE",
"expires_in": 3599,
"scope": "",
"token_type": "bearer"
}