cURL
curl --request POST \
--url https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-pd-environment: <x-pd-environment>' \
--data '
{
"id": "<string>",
"external_user_id": "<string>",
"version": "1.0.0",
"configured_props": {},
"dynamic_props_id": "<string>",
"workflow_id": "<string>",
"webhook_url": "<string>",
"emit_on_deploy": true
}
'import { PipedreamClient } from "@pipedream/sdk";
const client = new PipedreamClient({
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
projectId: "YOUR_PROJECT_ID"
});
await client.triggers.deploy({
id: "id",
externalUserId: "external_user_id",
configuredProps: { key: "value" }
});
from pipedream import Pipedream
client = Pipedream(
project_id="YOUR_PROJECT_ID",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.triggers.deploy(
id="id",
external_user_id="external_user_id",
configured_props={ "key": "value" },
)
package com.example.usage;
import com.pipedream.api.BaseClient;
import com.pipedream.api.resources.triggers.requests.DeployTriggerOpts;
public class Example {
public static void main(String[] args) {
BaseClient client = BaseClient.withCredentials("<clientId>", "<clientSecret>")
.projectId("YOUR_PROJECT_ID")
.build()
;
client.triggers().deploy(
DeployTriggerOpts
.builder()
.id("id")
.externalUserId("external_user_id")
.configuredProps(Map.of("key", "value"))
.build()
);
}
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"external_user_id\": \"<string>\",\n \"version\": \"1.0.0\",\n \"configured_props\": {},\n \"dynamic_props_id\": \"<string>\",\n \"workflow_id\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"emit_on_deploy\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-pd-environment", "<x-pd-environment>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": "<string>",
"owner_id": "<string>",
"component_id": "<string>",
"configurable_props": [
{
"name": "<string>",
"type": "alert",
"content": "<string>",
"label": "<string>",
"description": "<string>",
"optional": true,
"disabled": true,
"readOnly": true,
"hidden": true,
"remoteOptions": true,
"useQuery": true,
"reloadProps": true,
"withLabel": true,
"alertType": "info"
}
],
"configured_props": {},
"active": true,
"created_at": 123,
"updated_at": 123,
"name": "<string>",
"name_slug": "<string>",
"type": "DeployedComponent",
"component_key": "<string>",
"callback_observations": "<unknown>",
"emit_on_deploy": true,
"webhook_signing_key": "<string>"
}
}{
"error": "Throttled"
}Deploy trigger
Deploy a trigger to listen for and emit events
POST
/
v1
/
connect
/
{project_id}
/
triggers
/
deploy
cURL
curl --request POST \
--url https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-pd-environment: <x-pd-environment>' \
--data '
{
"id": "<string>",
"external_user_id": "<string>",
"version": "1.0.0",
"configured_props": {},
"dynamic_props_id": "<string>",
"workflow_id": "<string>",
"webhook_url": "<string>",
"emit_on_deploy": true
}
'import { PipedreamClient } from "@pipedream/sdk";
const client = new PipedreamClient({
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
projectId: "YOUR_PROJECT_ID"
});
await client.triggers.deploy({
id: "id",
externalUserId: "external_user_id",
configuredProps: { key: "value" }
});
from pipedream import Pipedream
client = Pipedream(
project_id="YOUR_PROJECT_ID",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.triggers.deploy(
id="id",
external_user_id="external_user_id",
configured_props={ "key": "value" },
)
package com.example.usage;
import com.pipedream.api.BaseClient;
import com.pipedream.api.resources.triggers.requests.DeployTriggerOpts;
public class Example {
public static void main(String[] args) {
BaseClient client = BaseClient.withCredentials("<clientId>", "<clientSecret>")
.projectId("YOUR_PROJECT_ID")
.build()
;
client.triggers().deploy(
DeployTriggerOpts
.builder()
.id("id")
.externalUserId("external_user_id")
.configuredProps(Map.of("key", "value"))
.build()
);
}
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"external_user_id\": \"<string>\",\n \"version\": \"1.0.0\",\n \"configured_props\": {},\n \"dynamic_props_id\": \"<string>\",\n \"workflow_id\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"emit_on_deploy\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-pd-environment", "<x-pd-environment>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": "<string>",
"owner_id": "<string>",
"component_id": "<string>",
"configurable_props": [
{
"name": "<string>",
"type": "alert",
"content": "<string>",
"label": "<string>",
"description": "<string>",
"optional": true,
"disabled": true,
"readOnly": true,
"hidden": true,
"remoteOptions": true,
"useQuery": true,
"reloadProps": true,
"withLabel": true,
"alertType": "info"
}
],
"configured_props": {},
"active": true,
"created_at": 123,
"updated_at": 123,
"name": "<string>",
"name_slug": "<string>",
"type": "DeployedComponent",
"component_key": "<string>",
"callback_observations": "<unknown>",
"emit_on_deploy": true,
"webhook_signing_key": "<string>"
}
}{
"error": "Throttled"
}Run components by key, not by saved component ID. Referencing a component by its saved component ID (
sc_…) is deprecated for new integrations. Publish the component (from the public registry, or privately as a custom tool) and pass its key as id: for example slack-send-message or ~/my-custom-action. When you need an exact version to stay fixed, pin it with key@version (for example ~/my-custom-action@0.1.2) or the version parameter.Saved component IDs keep working for components that are published to the public registry or published by your workspace for the request’s environment. A component that was created but never published cannot be run or configured by ID, and the API returns 403 with a message asking you to publish it first.See Setting the polling interval for details on defining the schedule for polling-based triggers.
When you pass a
webhook_url, Pipedream returns a signing key you can use to verify webhook signatures on incoming event deliveries.Authorizations
ConnectTokenOAuth2
Headers
Path Parameters
Body
application/json
Request options for deploying a trigger
Was this page helpful?

