Upsert Destination

POST /pipelines/save-destination

Creates or updates a pipeline destination

Request

Headers

An API Key is required to access this endpoint.

Name
Value

x-api-key

your_api_key

Body

Name
Type
Description

id

string

Unique ID for the pipeline.

destinationType

enum

Supported enums: webhook

webhook

Webhook object.

Webhook

Webhook ID is required when updating an existing webhook.

Name
Type
Description

id

string

Unique ID for the webhook.

config

Config for the webhook.

Config

Name
Type
Description

url

string

Webhook URL.

headers

Array of headers for the webhook.

Name
Type
Description

key

string

Name of the header.

value

string

Value associated with the header.

Example

{
  "destinationType": "webhook",
  "webhook": {
    "headers": [
      {
        "key": "Authorization",
        "value": "Bearer your_token_here"
      }
    ],
    "url": "https://your-webhook-url.com"
  }
}

Response

The API returns the response in JSON format.

Each response includes a success boolean.

Example

{
  "success": true
}

Last updated