Webhook

Create new Webhook

Changed on

Create new Webhook

post/v1/workspaces/{workspaceId}/webhooks

Request

  • Base URL
    https://api-gw.sendspark.com
  • Auth
    API key in header x-api-key and API key in header x-api-secret

Path parameters

workspaceIdstring required

Request body

namestring required
descriptionstring
extraHeadersstring[]
urlstring required
module'global' | 'dynamics' required
identifiersstring[]
eventsModel143[]

Example request

{
  "name": "Production Webhook",
  "description": "Webhook for production environment",
  "extraHeaders": [
    "Authorization",
    "Content-Type"
  ],
  "url": "https://example.com/webhook",
  "module": "global | dynamics",
  "identifiers": [
    "sdfgh2345werty345678dfghj"
  ],
  "events": [
    "video_watched",
    "video_played",
    "video_cta_clicked",
    "video_viewed",
    "video_liked",
    "video_request_received",
    "video_generated_dv",
    "video_mp4_ready",
    "video_generated_error"
  ]
}

Response

Successful

CreateWebhookResponseSchema required

Changes