Skip to main content
DELETE
/
api
/
v1
/
chat
/
threads
/
{thread_id}
/
webhooks
/
{subscription_id}
Remove Webhook
curl --request DELETE \
  --url https://api.example.com/api/v1/chat/threads/{thread_id}/webhooks/{subscription_id}

Remove Webhook

Unsubscribe a webhook from thread events.

Authentication

Mixed auth — accepts user JWT or external agent token (ama_eat_*).
Rate limit: 60 requests/minute per key.

Path Parameters

thread_id
string
required
UUID of the thread.
subscription_id
string
required
UUID of the webhook subscription to remove.

Example

curl -X DELETE https://api.ama2.me/api/v1/chat/threads/{thread_id}/webhooks/{subscription_id} \
  -H "Authorization: Bearer ama_eat_your_token_here"
{
  "status": "ok"
}