provider Oauth POST /oauth/token/
@utdk/pipedrive /oauth/token/
Refreshing the tokens
The `access_token` has a lifetime. After a period of time, which was returned to you in `expires_in` JSON property, the `access_token` will be invalid, and you can no longer use it to get data from our API. To refresh the `access_token`, you must use the `refresh_token`.
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
refreshTokens
POST/oauth/token/
The `access_token` has a lifetime. After a period of time, which was returned to you in `expires_in` JSON property, the `access_token` will be invalid, and you can no longer use it to get data from our API. To refresh the `access_token`, you must use the `refresh_token`.

Input

Since you are to refresh your access_token, you must use the value "refresh_token"

The refresh token that you received after you exchanged the authorization code

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.refreshTokens({
  "grant_type": "refresh_token"
})