Exchanges a client ID and client secret for a new access token.
Endpoint
Parameters
The OAuth grant type. For Pipedream, this is always client_credentials
.
The client ID of the OAuth app.
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
}