curl --location 'https://api.snakk.ai/api/tools' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": "a0000000-1111-2222-3333-444455556666",
"name": "book_appointment",
"display_name": "Book appointment",
"description": "Books an appointment in the external calendar",
"type": "webhook",
"webhook_url": "https://example.com/webhooks/book",
"webhook_method": "POST",
"webhook_headers": {
"Authorization": "Bearer ***"
},
"webhook_body_template": "{\"date\":\"{{date}}\",\"name\":\"{{name}}\"}",
"webhook_timezone": "Europe/Oslo",
"parameters": {
"date": {
"type": "string",
"description": "Requested date"
},
"name": {
"type": "string",
"description": "Caller name"
}
},
"requires_identity": false
}'