Trigger.dev · Schema
Trigger.dev Run
A single execution of a Trigger.dev background task
Developer-FirstWorkflow-AutomationBackground JobsDurable ExecutionTypeScriptAI AgentsReal-TimeOpen-Source
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique run identifier (prefixed with run_) |
| status | string | Current execution status of the run |
| taskIdentifier | string | The task that this run executes (e.g., process-payment) |
| version | string | Deployment version that ran the task |
| createdAt | string | When the run was created |
| updatedAt | string | |
| startedAt | stringnull | When the run started executing |
| finishedAt | stringnull | When the run completed (null if still running) |
| isTest | boolean | Whether this is a test run |
| payload | object | The payload data passed to the task |
| output | object | The task's return value (only present when completed successfully) |
| tags | array | Tags for filtering and categorizing runs |
| metadata | object | Arbitrary metadata attached to the run |
| relatedRuns | object | Parent/child run hierarchy |
| attempts | array | Execution attempt history |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/api-evangelist/trigger-dev/main/json-schema/trigger-dev-run-schema.json",
"title": "Trigger.dev Run",
"description": "A single execution of a Trigger.dev background task",
"type": "object",
"required": ["id", "status", "taskIdentifier"],
"properties": {
"id": {
"type": "string",
"pattern": "^run_",
"description": "Unique run identifier (prefixed with run_)"
},
"status": {
"type": "string",
"enum": [
"QUEUED", "EXECUTING", "REATTEMPTING", "WAITING_FOR_DEPLOY",
"WAITING_TO_RESUME", "COMPLETED_SUCCESSFULLY", "COMPLETED_WITH_ERRORS",
"INTERRUPTED", "CANCELLED", "CRASHED", "FAILED_TO_RUN",
"TIMED_OUT", "EXPIRED", "DELAYED", "SYSTEM_FAILURE"
],
"description": "Current execution status of the run"
},
"taskIdentifier": {
"type": "string",
"description": "The task that this run executes (e.g., process-payment)"
},
"version": {
"type": "string",
"description": "Deployment version that ran the task"
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "When the run was created"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"startedAt": {
"type": ["string", "null"],
"format": "date-time",
"description": "When the run started executing"
},
"finishedAt": {
"type": ["string", "null"],
"format": "date-time",
"description": "When the run completed (null if still running)"
},
"isTest": {
"type": "boolean",
"description": "Whether this is a test run"
},
"payload": {
"description": "The payload data passed to the task"
},
"output": {
"description": "The task's return value (only present when completed successfully)"
},
"tags": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128
},
"maxItems": 10,
"description": "Tags for filtering and categorizing runs"
},
"metadata": {
"type": "object",
"additionalProperties": true,
"description": "Arbitrary metadata attached to the run"
},
"relatedRuns": {
"type": "object",
"description": "Parent/child run hierarchy",
"properties": {
"root": { "$ref": "#/definitions/RunReference" },
"parent": { "$ref": "#/definitions/RunReference" },
"children": {
"type": "array",
"items": { "$ref": "#/definitions/RunReference" }
}
}
},
"attempts": {
"type": "array",
"items": { "$ref": "#/definitions/RunAttempt" },
"description": "Execution attempt history"
}
},
"definitions": {
"RunReference": {
"type": "object",
"properties": {
"id": { "type": "string", "pattern": "^run_" },
"status": { "type": "string" },
"taskIdentifier": { "type": "string" }
}
},
"RunAttempt": {
"type": "object",
"properties": {
"id": { "type": "string" },
"status": { "type": "string" },
"startedAt": { "type": "string", "format": "date-time" },
"completedAt": { "type": ["string", "null"], "format": "date-time" },
"error": {
"type": "object",
"properties": {
"message": { "type": "string" },
"stack": { "type": "string" }
}
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/trigger-dev-run"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.