Create a new webhook for an agent
Yumeru API (1.0.0)
Download OpenAPI description
Languages
Servers
Mock server
https://api-docs.yumeru.ai/_mock/openapi/
- Mock server
https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"url": "http://example.com",
"enabled": true,
"events": [
"call_started",
"call_ended",
"call_analyzed"
]
}'
Response
application/json
{ "success": true, "data": { "id": 0, "agentId": 0, "url": "http://example.com", "secret": "string", "enabled": true, "events": [ … ], "createdAt": "string", "updatedAt": "string" } }
- Mock server
https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Response
application/json
{ "success": true, "data": [ { … } ] }
- Mock server
https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks/{webhookId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks/{webhookId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Response
application/json
{ "success": true, "data": { "id": 0, "agentId": 0, "url": "http://example.com", "secret": "string", "enabled": true, "events": [ … ], "createdAt": "string", "updatedAt": "string" } }
- Mock server
https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks/{webhookId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks/{webhookId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"url": "http://example.com",
"enabled": true,
"events": [
"call_started",
"call_ended",
"call_analyzed"
]
}'
Response
application/json
{ "success": true, "data": { "id": 0, "agentId": 0, "url": "http://example.com", "secret": "string", "enabled": true, "events": [ … ], "createdAt": "string", "updatedAt": "string" } }
- Mock server
https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks/{webhookId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api-docs.yumeru.ai/_mock/openapi/agents/{agentId}/webhooks/{webhookId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Response
application/json
{ "success": true, "data": null }