Documentation Index
Fetch the complete documentation index at: https://docs.dari.dev/llms.txt
Use this file to discover all available pages before exploring further.
Configure the HTTPS endpoint that receives tool.call_requested webhooks for one agent. See Webhooks for payloads, signing, and result submission.
GET /v1/agents/{agent_id}/webhook
PUT /v1/agents/{agent_id}/webhook
DELETE /v1/agents/{agent_id}/webhook
POST /v1/agents/{agent_id}/webhook/rotate-secret
PUT creates or updates the webhook URL. GET returns the current URL and whether signing is enabled, but never returns the existing secret. POST /rotate-secret replaces the signing secret and returns the new value once. DELETE clears the webhook configuration.
Path Parameters
Bearer token using your Dari API key.
Must be application/json for PUT.
Request Body
Absolute webhook URL. Production URLs must use HTTPS, must not include username/password information, and must resolve to public IP addresses.
Response Fields
Configured webhook URL, or null when no webhook is configured.
Whether Dari signs webhook deliveries for this agent.
Returned only when the secret is created or rotated. Store it immediately.
curl -X PUT https://api.dari.dev/v1/agents/agt_123/webhook \
-H "Authorization: Bearer $DARI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"webhook_url":"https://example.com/dari/webhook"}'
{
"webhook_url": "https://example.com/dari/webhook",
"signing_enabled": true,
"signing_secret": "whsec_..."
}