Skip to main content
POST
Create a webhook endpoint

Authorizations

x-api-key
string
header
required

API key for authentication. Get your API key from Settings → API Keys in your Spott dashboard.

Body

application/json
url
string<uri>
required

The https URL that receives the webhook messages.

Maximum string length: 2048
events
object[]
required

The events to deliver, by ID as listed by GET /webhooks/events.

Required array length: 1 - 100 elements
description
string
Maximum string length: 4096
disabled
boolean

Response

Webhook endpoint created successfully. Returns the ID and the secret.

id
string
required
Minimum string length: 1
secret
string
required

The secret that signs the webhook messages. It is only returned here and by the rotate secret route, and cannot be read later.