Skip to main content
PUT
/
v1
/
connect
/
{project_id}
/
webhook
Set project environment webhook
curl --request PUT \
  --url https://api.pipedream.com/v1/connect/{project_id}/webhook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-pd-environment: <x-pd-environment>' \
  --data '
{
  "url": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "url": "<string>",
    "signing_key_set": true,
    "created_at": 123,
    "updated_at": 123,
    "signing_key": "<string>"
  }
}
Pipedream signs webhook emits for deployed triggers using HMAC-SHA256. See Validating signatures for details on how to verify webhook payloads.

Authorizations

Authorization
string
header
required

A short-lived OAuth access token for server-side requests. Generate one via the Generate OAuth Token flow or automatically when initializing the SDK client.

Headers

x-pd-environment
enum<string>
required

The environment in which the server client is running

Available options:
development,
production

Path Parameters

project_id
string
required

The project ID, which starts with proj_.

Pattern: ^proj_[a-zA-Z0-9]+$

Body

application/json

Request options for setting a webhook URL

url
string<uri>
required

The webhook URL to set

Response

webhook updated

Response received when creating or updating a webhook

data
object
required

A webhook object that may include the signing key. The signing key is returned when a webhook is created, but omitted when an existing webhook is updated.