curl --request POST \
--url https://api.trycordage.com/api/webhooks/{key}/trigger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A beautiful sunset over mountains"
}
'
{
"run_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "running",
"message": "Workflow started",
"node_count": 5
}{
"error": "Webhook is disabled"
}{
"error": "Unauthorized. Provide valid API key in Authorization header."
}{
"error": "Insufficient credits"
}{
"error": "Access denied. API key workspace does not match webhook canvas workspace."
}{
"error": "Webhook not found"
}{
"error": "Rate limit exceeded.",
"retry_after": 30
}{
"error": "Internal server error"
}Workflows
Trigger Workflow
Starts a workflow run using the specified webhook. The workflow executes asynchronously and returns immediately with a run ID that can be used to track progress.
Rate Limit: 60 requests per minute per API key.
POST
/
{key}
/
trigger
curl --request POST \
--url https://api.trycordage.com/api/webhooks/{key}/trigger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A beautiful sunset over mountains"
}
'
{
"run_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "running",
"message": "Workflow started",
"node_count": 5
}{
"error": "Webhook is disabled"
}{
"error": "Unauthorized. Provide valid API key in Authorization header."
}{
"error": "Insufficient credits"
}{
"error": "Access denied. API key workspace does not match webhook canvas workspace."
}{
"error": "Webhook not found"
}{
"error": "Rate limit exceeded.",
"retry_after": 30
}{
"error": "Internal server error"
}Authorizations
Path Parameters
Body
application/json
Optional input data to pass to the workflow. This data is accessible to nodes in your workflow.
Optional key-value pairs to pass as input to the workflow. The structure depends on your workflow's input nodes.
Response
Workflow triggered successfully
⌘I
