Skip to main content

Create Agent Webhook

POST /agents/{id}/webhooks

Create a new webhook for a specific agent.

Code Examples​

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

Headers​

ParameterTypeRequiredDescription
x-workspace-idintegerNoID of the workspace. If not provided, the user's selected workspace will be used.

Note: This field will be required in a future release of the API. It is highly recommended to set it now to ensure compatibility with future updates.

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​