✅ Tokens are short-lived
✅ OAuth clients support scopes, limiting access to specific operations
✅ Limit access to specific Pipedream projects (coming soon!)
Since API requests are meant to be made server-side, and since grants are not tied to individual end users, all OAuth clients are Client Credentials applications.
Creating an OAuth client
- Visit the API settings for your Pipedream workspace.
- Click the New OAuth Client button.
- Name your client and click Create.
- Copy the client secret. It will not be accessible again. Click Close.
- Copy the client ID from the list.
OAuth scopes
OAuth clients support scopes to limit access to specific operations. When creating an access token, you can optionally specify a space-separated list of scopes. If no scope is specified, the token defaults to*
(full access).
Available scopes:
Scope | Description |
---|---|
* | Full access to every OAuth-protected endpoint |
connect:* | Full access to all Connect API endpoints (components, projects, triggers, accounts, etc.) |
connect:actions:* | Full access to Connect actions |
connect:triggers:* | Full access to Connect triggers |
connect:accounts:read | List and fetch Connect accounts for an external user |
connect:accounts:write | Create or remove Connect accounts |
connect:deployed_triggers:read | Read deployed triggers and related data like events, pipelines and webhooks |
connect:deployed_triggers:write | Modify or delete deployed triggers |
connect:users:read | List and fetch external users |
connect:users:write | Delete external users |
connect:tokens:create | Create Connect session tokens |
connect:proxy | Invoke the Connect proxy |
connect:workflow:invoke | Invoke Connect workflows on behalf of a user |
How to get an access token
In the client credentials model, you exchange your OAuth client ID and secret for an access token. Then you use the access token to make API requests. Pipedream offers TypeScript, Python, and Java SDKs, which abstract the process of generating and refreshing fresh access tokens./oauth/token
API endpoint:
scope
parameter is optional and accepts a space-separated list of scopes. If omitted, the token defaults to *
(full access).
Access tokens expire after 1 hour. Store access tokens securely, server-side.
Revoking a client secret
- Visit your workspace’s API settings.
- Click the … button to the right of the OAuth client whose secret you want to revoke, then click Rotate client secret.
- Copy the new client secret. It will not be accessible again.