Create Trigger
Agent Schedules & Triggers
Create Trigger
Create a webhook trigger for an agent
POST
Create Trigger
Authentication
Requires JWT token or Platform API key viaAuthorization: Bearer <token> header.
Path Parameters
Agent UUID
Body Parameters
Trigger name (1-255 characters)
Message to send when webhook fires. Supports
{{payload.*}} dot-path substitution from JSON payloadWhether the trigger is active
Example Request
Response
Webhook URL
The returnedwebhook_url is the endpoint external systems should POST to:
Webhook Authentication
Include the secret in one of two ways:Option 1: X-Webhook-Secret Header (Recommended)
Option 2: X-Hub-Signature-256 (GitHub-style HMAC)
Template Variable Substitution
Themessage_template supports {{payload.*}} dot-path access to any field in the webhook JSON payload.
Example Payload:
Use Cases
GitHub Webhooks
- Deployment status updates
- Pull request events
- CI/CD pipeline notifications
- Issue/PR comments
Monitoring & Alerts
- PagerDuty incidents
- Datadog/New Relic alerts
- CloudWatch alarms
- Sentry error notifications
Business Events
- Stripe payment notifications
- Customer signup webhooks
- Order fulfillment status
- API usage alerts
Error Responses
400 Bad Request
- Missing required fields
- Invalid message template
- Name exceeds 255 characters
404 Not Found
- Agent not found or you don’t have access
429 Too Many Requests
- Rate limit exceeded

