Skip to main content
PATCH
/
webhooks
/
{webhook_id}
Update webhook
curl --request PATCH \
  --url https://api.spikelabs.com/v1/webhooks/{webhook_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "conversation.started"
  ],
  "enabled": true
}
'
{
  "id": "wh_abc123",
  "object": "webhook",
  "url": "<string>",
  "events": [
    "conversation.started"
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "secret": "<string>",
  "enabled": true
}

Authorizations

Authorization
string
header
required

API key authentication. Use your secret key (starts with sk_) as a Bearer token.

Path Parameters

webhook_id
string
required

Body

application/json
url
string<uri>
events
enum<string>[]
Available options:
conversation.started,
conversation.ended,
video.completed,
video.failed,
knowledge.processed,
memory.created
enabled
boolean

Response

Webhook updated

id
string
required
Example:

"wh_abc123"

object
enum<string>
required
Available options:
webhook
url
string<uri>
required
events
enum<string>[]
required
Available options:
conversation.started,
conversation.ended,
video.completed,
video.failed,
knowledge.processed,
memory.created
created_at
string<date-time>
required
secret
string

Signing secret (only on create)

enabled
boolean
default:true