Upsert Webhook

POST /save-webhook

Creates or updates a webhook

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 webhook.

headers

Array of headers for the webhook.

isEnabled

boolean

Whether webhook is active.

url

string

Webhook URL.

Parameter ID is required when updating an existing parameter.

NameTypeDescription

key

string

Name of the header.

value

string

Value associated with the header.

Example

{
  "id": "fe66acaa-2c30-4d92-ac11-c6ece7cc25c0",
  "headers": [
    {
      "key": "Authorization",
      "value": "Bearer your_token_here"
    }
  ],
  "isEnabled": true,
  "url": "https://your-webhook-url.com"
}

Response

The API returns the response in JSON format.

Each response includes a success boolean and webhookId.

Example

{ 
  "webhookId": "ee66acaa-2c30-4d92-ac11-c6ece7cc25c0",
  "success": true
}

Last updated