<script>
tag<script>
tag. You can run the latest version:
production
or development
) where resources will live in your project.
Always set the environment when you create the SDK client:
X-PD-Environment
header in HTTP requests:
external_user_id
parameter when initiating account connections and retrieving credentials. This is your user’s ID, in your system — whatever you use to uniquely identify them.
Pipedream associates this ID with user accounts, so you can retrieve credentials for a specific user, and invoke workflows on their behalf.
External User IDs are limited to 250 characters.
API Endpoint | Rate Limit |
---|---|
POST /token | 100 requests per minute per external_user_id |
/accounts/* | 100 requests per minute per project |
POST /components/* | 100 requests per minute per project* |
GET /components/* | 3000 requests per 5 minutes per project* |
/proxy | 1000 requests per 5 minutes per project |
/components
, /actions
, /triggers
.
If you need higher rate limits, please reach out.
rate_limit_token
that you’ll need to include in future /connect/
requests:window_size_seconds
integer
Define the size of the time window in seconds.
requests_per_window
integer
Define the number of requests you want to allow per time window.
Example request
project_id
string
The project’s ID
external_user_id
string
The ID of your end user. Use whatever ID uniquely identifies the user in your system.
allowed_origins
string array
When using the Connect API to make requests from a client environment like a browser, you must specify the allowed origins for the token. Otherwise, this field is optional. This is a list of URLs that are allowed to make requests with the token. For example:
success_redirect_uri
string (optional)
When using Connect Link, you can optionally redirect your end user to the success_redirect_uri
on successful completion of the auth flow.
error_redirect_uri
string (optional)
When using Connect Link, you can optionally redirect your end user to the error_redirect_uri
on any errors in the auth flow. This lets you handle errors in whatever way you want in your own app.
webhook_uri
string (optional)
Pipedream will send events on successful auth, or any errors, to this URL via webhook. See the webhooks docs for more information.
createConnectToken
method. In our example app, this code is in app/server.ts
.
In other languages, you’ll need to make an HTTP POST request to the /tokens
endpoint to create a token, then return the token to your frontend. Click into other tabs to see examples in additional languages.
project_id
string
The project’s ID
app
string (optional)
The ID or name slug the app you’d like to retrieve. For example, Slack’s unique app ID is app_OkrhR1
, and its name slug is slack
.
You can find the app’s ID in the response from the List apps endpoint, and the name slug under the Authentication section of any app page.
oauth_app_id
string (optional)
The ID of the OAuth app you’d like to retrieve accounts for.
external_user_id
string (optional)
The external user ID in your system that you want to retrieve accounts for.
include_credentials
boolean (optional)
Pass include_credentials=true
as a query-string parameter to include the account credentials in the response.
project_id
string
The project’s ID
account_id
string
The ID of the account you want to retrieve
include_credentials
boolean (optional)
Pass include_credentials=true
as a query-string parameter to include the account credentials in the response.
include_credentials=true
)project_id
string
The project’s ID
account_id
string
204 No Content
response on successful account deletion
project_id
string
The project’s ID
app_id
string
The app ID for which you want to delete all connected accounts. app_id
can be oauth_app_id
for OAuth apps or name slug for key-based apps, which you can find under the Authentication section of any app page
204 No Content
response on successful account deletion
project_id
string
The project’s ID
external_user_id
string
The external user ID in your system
204 No Content
response on successful account deletion
component_type
string
Either triggers
, actions
, or components
.
app
string (optional)
The ID or name slug the app you’d like to retrieve. For example, Slack’s unique app ID is app_OkrhR1
, and its name slug is slack
.
You can find the app’s ID in the response from the List apps endpoint, and the name slug under the Authentication section of any app page.
q
string (optional)
A search query to filter the components by key (see the component structure table).
component_type
string
Either triggers
, actions
, or components
.
component_key
string
The key that identifies the component (see the component structure table).
component_type
string
Either triggers
, actions
, or components
.
configured_props
object
The props that have already been configured for the component. This is a JSON-serializable object with the prop names as keys and the configured values as values.
external_user_id
string
The external user ID in your system that you want to retrieve accounts for.
id
string
The key that identifies the component (see the component structure table).
prop_name
string
The name of the component’s prop to configure.
component_type
string
Either triggers
, actions
, or components
.
configured_props
object
The props that have already been configured for the component. This is a JSON-serializable object with the prop names as keys and the configured values as values.
external_user_id
string
The external user ID in your system that you want to retrieve accounts for.
id
string
The key that identifies the component (see the component structure table).
dynamic_props_id
string (optional)
The ID of the last prop reconfiguration (or none when reconfiguring the props for the first time).
id
string
The key that identifies the action component (see the component structure table).
configured_props
object
The props that have already been configured for the component. This is a JSON-serializable object with the prop names as keys and the configured values as values.
external_user_id
string
The external user ID in your system on behalf of which you want to execute the action.
dynamic_props_id
string (optional)
The ID of the last prop reconfiguration (if applicable).
stash_id
string|boolean (optional)
When passed, this parameter enables File Stash, which syncs files from the /tmp
directory with a Pipedream File Store. This makes files accessible outside of the execution environment via presigned URLs.
You can pass one of the following values:
""
) to generate a new stash ID"NEW"
to generate a new stash IDtrue
to generate a new stash IDid
string
The key that identifies the action component (see the component structure table).
configured_props
object
The props that have already been configured for the component. This is a JSON-serializable object with the prop names as keys and the configured values as values.
external_user_id
string
The external user ID in your system on behalf of which you want to execute the action.
webhook_url
string (optional)
The URL to which the trigger will send events.
workflow_id
string (optional)
The Pipedream workflow ID to which you want to emit events (ex, p_1234567
).
dynamic_props_id
string (optional)
The ID of the last prop reconfiguration (if applicable).
emitter_type
string (optional)
Specify the type of emitter to retrieve deployed triggers from one of these options:
source
: default if no other emitter_type
is specified, includes any app-based event sourcehttp
: native HTTP webhook triggertimer
: native schedule triggeremail
: native email triggerexternal_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to retrieve (ex, dc_xxxxxxx
, hi_xxxxxxx
, ti_xxxxxxx
, or ei_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to retrieve (ex, dc_xxxxxxx
, hi_xxxxxxx
, ti_xxxxxxx
, or ei_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
204 No Content
response on successful deletion
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to update (ex, dc_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to update the trigger.
active
boolean (optional)
The state to which the trigger should be updated.
configured_props
object (optional)
The new configuration props for the trigger.
name
string (optional)
The new name of the trigger.
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to retrieve (ex, dc_xxxxxxx
, hi_xxxxxxx
, ti_xxxxxxx
, or ei_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
n
number (optional)
The number of events to retrieve. Defaults to 10, and it’s capped at 100.
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to retrieve (ex, dc_xxxxxxx
, hi_xxxxxxx
, ti_xxxxxxx
, or ei_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to retrieve (ex, dc_xxxxxxx
, hi_xxxxxxx
, ti_xxxxxxx
, or ei_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
webhook_urls
string[]
The list of webhook URLs that will listen to the deployed trigger.
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to retrieve (ex, dc_xxxxxxx
, hi_xxxxxxx
, ti_xxxxxxx
, or ei_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
deployed_trigger_id
string
The deployed trigger ID for the trigger you’d like to retrieve (ex, dc_xxxxxxx
, hi_xxxxxxx
, ti_xxxxxxx
, or ei_xxxxxxx
).
external_user_id
string
The external user ID in your system on behalf of which you want to deploy the trigger.
workflow_ids
string[]
The list of workflow IDs that will listen to the deployed trigger.