Skip to main content
GET
/
v1
/
tasks
/
{taskId}
/
automations
/
runs
Get all automation runs for a task
curl --request GET \
  --url https://api.trycomp.ai/v1/tasks/{taskId}/automations/runs \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "ear_abc123def456",
    "status": "PENDING",
    "trigger": "MANUAL",
    "createdAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z",
    "error": {}
  }
]

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

taskId
string
required

Task ID

Example:

"tsk_abc123def456"

Response

200 - application/json

Automation runs retrieved successfully

id
string
Example:

"ear_abc123def456"

status
enum<string>
Available options:
PENDING,
RUNNING,
COMPLETED,
FAILED
trigger
enum<string>
Available options:
MANUAL,
SCHEDULED,
EVENT
createdAt
string<date-time>
completedAt
string<date-time> | null
error
object | null
I