POST
/
oauth
/
token
curl --request POST \
  --url https://app.attio.com/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data client_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
  --data 'client_secret=<string>' \
  --data grant_type=authorization_code \
  --data 'code=<string>'
{
  "access_token": "<string>",
  "token_type": "Bearer"
}

Body

application/x-www-form-urlencoded
client_id
string
required

The client ID of your integration (this can be found in your integration settings page).

client_secret
string
required

The client secret of your integration (this can be found in your integration settings page).

grant_type
enum<string>
required

The grant type. This should always be authorization_code.

Available options:
authorization_code
Example:

"authorization_code"

code
string
required

The code which you received after redirecting from the /authorize endpoint.

Response

200 - application/json
Success
access_token
string
required

An access token for this workspace.

token_type
enum<string>
required

The type of token.

Available options:
Bearer