Skip to main content
POST
/
automation
/
{slug}
/
trigger
cURL
curl -X POST https://api.tembo.io/automation/myAutomation/trigger \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"issue_url": "https://github.com/org/repo/issues/42"}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "task": "RunWorkflow",
  "status": "pending",
  "priority": 5,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

slug
string
required

The slug of the automation to trigger. Set in the automation's properties panel.

Example:

"myAutomation"

Body

application/json

Arbitrary JSON payload passed to the automation as event context. Your automation instructions can reference any values in this payload.

The body is of type object.

Response

Automation triggered successfully

id
string<uuid>
required

Unique identifier for the queued job

task
string
required

The type of job that was queued

Example:

"RunWorkflow"

status
string
required

Current status of the job

Example:

"pending"

priority
integer
required

Job priority

Example:

5

createdAt
string<date-time>
required
updatedAt
string<date-time>
required