provider Oauth POST /oauth/token
@utdk/pipedrive /oauth/token
Getting the tokens
After the customer has confirmed the app installation, you will need to exchange the `authorization_code` to a pair of access and refresh tokens. Using an access token, you can access the user's data through the API.
Authorization header required
Base 64 encoded string containing the `client_id` and `client_secret` values. The header value should be `Basic <base64(client_id:client_secret)>`.
string

Try it

Authentication
Configure credentials for Pipedrive API v1
getTokens
POST/oauth/token
After the customer has confirmed the app installation, you will need to exchange the `authorization_code` to a pair of access and refresh tokens. Using an access token, you can access the user's data through the API.

Input

Since you are trying to exchange an authorization code for a pair of tokens, you must use the value "authorization_code"

The authorization code that you received after the user confirmed app installation

The callback URL you provided when you registered your app

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import pipedrive from '@utdk/pipedrive';

await pipedrive.getTokens({
  "grant_type": "authorization_code"
})