POST
/
oauth
/
token
curl https://api.pipedream.com/v1/oauth/token \
  -H 'Content-Type: application/json' \
  -d '{ "grant_type": "client_credentials", "client_id": "<client_id>", "client_secret": "<client secret>" }'
{
  "access_token": "<access token (a JWT)>",
  "token_type": "Bearer",
  "expires_in": 3600,
  "created_at": 1645142400
}

Exchanges a client ID and client secret for a new access token.

Endpoint

POST /oauth/token

Parameters

grant_type
string

The OAuth grant type. For Pipedream, this is always client_credentials.


client_id
string

The client ID of the OAuth app.


client_secret
string

The client secret of the OAuth app.

curl https://api.pipedream.com/v1/oauth/token \
  -H 'Content-Type: application/json' \
  -d '{ "grant_type": "client_credentials", "client_id": "<client_id>", "client_secret": "<client secret>" }'
{
  "access_token": "<access token (a JWT)>",
  "token_type": "Bearer",
  "expires_in": 3600,
  "created_at": 1645142400
}