Skip to Content
Uncodie Market Fit está disponible 🎉
Rest APIAgentsList Available Triggers

List Available Triggers

Retrieve a list of all available triggers that can be used to activate agents.

Endpoint

GET /api/agents/triggers

Query Parameters

ParameterTypeRequiredDescription
typestringNoFilter triggers by type (e.g., “webhook”, “schedule”, “event”)
statusstringNoFilter triggers by status (“active”, “beta”, “deprecated”)

Response

Success Response

{ "success": true, "data": { "triggers": [ { "id": "trigger_123", "name": "Webhook Trigger", "description": "Triggers an agent when a webhook is received", "type": "webhook", "status": "active", "version": "1.0.0", "configuration": { "endpoint": "/api/webhooks/{trigger_id}", "methods": ["POST"], "headers": { "Content-Type": "application/json" } }, "example": { "payload": { "event": "website_updated", "data": { "url": "https://example.com", "timestamp": "2024-03-13T12:00:00Z" } } } } ], "total": 1, "page": 1, "per_page": 10 } }

Error Response

{ "success": false, "error": { "code": "INVALID_FILTER", "message": "Invalid filter parameters provided" } }

Error Codes

CodeDescription
INVALID_FILTERThe provided filter parameters are invalid
SERVER_ERRORAn error occurred while retrieving the triggers

Notes

  • Triggers are paginated with 10 items per page by default
  • Use the type parameter to filter triggers by their activation method
  • Use the status parameter to filter triggers by their current status
  • Each trigger includes its configuration details and example payload
  • Webhook triggers provide a unique endpoint URL for receiving events
Last updated on