Upsert Destination

POST /pipelines/save-destination

Creates or updates a pipeline destination

Request

Headers

An API Key is required to access this endpoint.

NameValue

x-api-key

your_api_key

Body

NameTypeDescription

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.

NameTypeDescription

id

string

Unique ID for the webhook.

config

Config for the webhook.

Config

NameTypeDescription

url

string

Webhook URL.

headers

Array of headers for the webhook.

NameTypeDescription

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