Exchange for Access Token

Once you have obtained the authorization code, you need to convert it to a long-lived (30 days) access token.

Exchange Authorization Code for Access Token

POST https://www.talque.com/oauth2/access-token

Convert the short-lived authentication code into a long-lived access token. Note that the payload must be application/x-www-urlencoded encoded per the OAuth2 specs.

Request Body

Name
Type
Description

grant_type

string

This field should always be: "authorization_code"

code

string

The authorization code received in the first step

client_id

string

Your API client ID

client_secret

string

Your API client secret

{
    "access_token": "R7pLF7F4oqlWUNrDE9KZWU63eyrg9kSCi10rS0il00bw5ITPAeAJ3FLlDynlFQv0sNzjQjZh",
    "expires": 1542055758351,
}

Last updated