This endpoint is used to list all registered webhooks.
curl -i -X POST \
https://v1.api.aana.ai/webhooks \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"url": "http://example.com",
"events": [
"task.completed"
]
}'
{ "id": "00000000-0000-0000-0000-000000000000", "url": "http://example.com", "events": [ "task.completed" ] }
curl -i -X GET \
'https://v1.api.aana.ai/webhooks/{webhook_id}' \
-H 'x-api-key: YOUR_API_KEY_HERE'
{ "id": "00000000-0000-0000-0000-000000000000", "url": "http://example.com", "events": [ "task.completed" ] }
curl -i -X PUT \
'https://v1.api.aana.ai/webhooks/{webhook_id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"url": "http://example.com",
"events": [
"task.completed"
]
}'
{ "id": "00000000-0000-0000-0000-000000000000", "url": "http://example.com", "events": [ "task.completed" ] }
curl -i -X DELETE \
'https://v1.api.aana.ai/webhooks/{webhook_id}' \
-H 'x-api-key: YOUR_API_KEY_HERE'
{ "id": "00000000-0000-0000-0000-000000000000", "url": "http://example.com", "events": [ "task.completed" ] }