Skip to main content
PATCH
/
webhooks
/
endpoints
/
{endpoint_id}
curl -X PATCH https://api.thinnest.ai/webhooks/endpoints/{endpoint_id} \
  -H "Authorization: Bearer $THINNESTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://new-url.com/webhook",
  "event_types": [
    "agent.created",
    "agent.deleted"
  ],
  "is_active": true
}'
{
  "status": "success",
  "endpoint_id": 1
}
curl -X PATCH https://api.thinnest.ai/webhooks/endpoints/{endpoint_id} \
  -H "Authorization: Bearer $THINNESTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://new-url.com/webhook",
  "event_types": [
    "agent.created",
    "agent.deleted"
  ],
  "is_active": true
}'

Path Parameters

endpoint_id
integer
Webhook endpoint ID

Request Body

All fields are optional — only include fields you want to change.
url
string
New HTTPS URL
event_types
array
New list of event types
is_active
boolean
Enable/disable the endpoint
description
string
Updated description
max_retries
integer
Updated retry count (0–5)
timeout_ms
integer
Updated timeout

Response

{
  "status": "success",
  "endpoint_id": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

endpoint_id
integer
required

Body

application/json
url
string | null
event_types
string[] | null
is_active
boolean | null
description
string | null
max_retries
integer | null
timeout_ms
integer | null

Response

Successful Response