Create OAuth token

Changed on

Exchange OAuth credentials for an access token

post/v1/oauth/token

Request

  • Base URL
    https://api.pipedream.com
  • URL
    https://api.pipedream.com/v1/oauth/token
  • Auth
    none declared

Request body

grant_type'client_credentials' required
client_idstring required
client_secretstring

The client secret, for clients that authenticate with a client secret.

client_assertion_type'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'

Required with client_assertion.

client_assertionstring

For clients that authenticate with a public key: a JWT signed with the client's private key (ES256 or RS256). Claims: iss and sub set to the client ID, aud set to https://api.pipedream.com, exp at most 1 hour ahead, and a unique jti. Sign a new assertion for every request, including retries.

scopestring

Optional space-separated scopes for the access token. Defaults to *.

Response

token created

access_tokenstring required
token_typestring required
expires_ininteger required

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property became optional

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status