sangtao.ai
API key

Webhooks

Delete an endpoint

Delete an endpoint. Nothing more is sent to it.

DELETEhttps://api.sangtao.ai/v2/webhooks/{id}

Authorization

  • X-Api-Keystring · headerrequired

    Your API key, from the API keys page of your account.

Path parameters

  • idstringrequired

    The ID in the path.

data is { "deleted": true }. Deliveries still waiting are canceled.

Errors

StatuserrorCodeWhen
404WEBHOOK_NOT_FOUNDNo endpoint of yours with this id
DELETE/webhooks/{id}
curl -X DELETE "https://api.sangtao.ai/v2/webhooks/whk_4nP8rT2xK" \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "deleted": true
  }
}