curl --request POST \
--url https://api.pipedream.com/v1/connect/{project_id}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-pd-environment: <x-pd-environment>' \
--data '
{
"external_user_id": "<string>",
"allowed_origins": [
"<string>"
],
"error_redirect_uri": "<string>",
"success_redirect_uri": "<string>",
"webhook_uri": "<string>"
}
'{
"connect_link_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"token": "<string>"
}Create a Connect token for a user
curl --request POST \
--url https://api.pipedream.com/v1/connect/{project_id}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-pd-environment: <x-pd-environment>' \
--data '
{
"external_user_id": "<string>",
"allowed_origins": [
"<string>"
],
"error_redirect_uri": "<string>",
"success_redirect_uri": "<string>",
"webhook_uri": "<string>"
}
'{
"connect_link_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"token": "<string>"
}{
"allowed_origins": ["https://myapp.com"]
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The access token received from the authorization server in the OAuth 2.0 flow.
The environment in which the server client is running
development, production The project ID, which starts with proj_.
Request object for creating a connect token
Was this page helpful?