Skip to main content

Create Agent Webhook

POST /api/agents/{id}/webhooks

Create a new webhook for a specific agent.

Code Examples

curl --request POST \
--url 'https://tess.pareto.io/api/agents/{id}/webhooks' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://example.com/webhook",
"method": "POST",
"status": "active"
}'

Path Parameters

ParameterTypeRequiredDescription
idintegerYesThe agent ID

Body Parameters

ParameterTypeRequiredDescription
urlstringYesThe URL that will receive webhook notifications
methodstringYesThe HTTP method to use for the webhook (POST)
statusstringNoThe status of the webhook (active or inactive)

Response

{
"template_id": 8794,
"user_id": 0,
"url": "https://webhook.site/3bea4d55-0734-4bbd-aab9-95639585e539",
"method": "POST",
"status": "active",
"updated_at": "2025-01-05T23:35:20.000000Z",
"created_at": "2025-01-05T23:35:20.000000Z",
"id": 18
}

Try it out!

Authentication

This endpoint requires Bearer token authentication.

Test Endpoint