API ReferenceWebhooks
Delete a webhook endpoint
Removes a webhook endpoint. Bag will stop sending events to this URL immediately. Any pending deliveries for this endpoint are cancelled.
Authorization
privy AuthorizationBearer <token>
Privy JWT authentication for dashboard and management endpoints. This is used internally by the Bag Dashboard and is not intended for direct API integrations. Use API keys instead.
In: header
Query Parameters
id*string
The ID of the webhook endpoint to delete.
Format
uuidResponse Body
application/json
application/json
application/json
curl -X DELETE "https://api.justusebag.xyz/api/webhooks?id=f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c"{
"status": "success",
"message": "Webhook endpoint deleted"
}{
"status": "error",
"message": "Invalid or revoked API key",
"code": "UNAUTHORIZED",
"hint": "Include a valid API key in the Authorization header: Bearer bag_live_sk_..."
}{
"status": "error",
"message": "Not found",
"code": "NOT_FOUND"
}