List runs
Lists runs of the app, most recently started first by default. Runs with at least one unresolved human-feedback or approval request are reported with the synthetic awaiting_input status. The list holds every caller's runs, so it needs an Access Key with access to the app's project even when the app is public.
Authorization
accessKey Organization or project Access Key created in the Dynamiq console. Valid only on synapse-served hosts: deployed app hostnames, knowledge base hostnames, the AI Gateway (router.*), and the traces collector (collector.*). Prefix dynamiq_acc_. NOT accepted by the management API (api.*). Send as Authorization: Bearer <access-key>.
In: header
Query Parameters
Filter by run status. Repeat the parameter to filter by several statuses. awaiting_input is a synthetic status matching paused/started runs that have an unresolved input request.
Filter by the caller-supplied user identifier.
Filter by session UUID.
Page number (1-based).
Number of items per page. Values below the minimum or above the maximum are clamped to the nearest bound.
Comma-separated sort fields. Prefix a field with - for descending order, e.g. sort=-started_at.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/runs"{
"data": [
{
"id": "8c2c8e2e-2f0a-4f4e-9f4f-6e1a52f0a001",
"status": "completed",
"started_at": "2026-06-10T09:15:21Z",
"ended_at": "2026-06-10T09:15:34Z",
"input": {
"ticket_subject": "Charged twice for June invoice",
"ticket_body": "Hi, my card was charged twice this month..."
},
"output": {
"category": "billing",
"priority": "high",
"suggested_reply": "Hi! Sorry about the duplicate charge..."
},
"user_id": "customer-7421",
"session_id": "3d3e8a1f-09a6-4f64-9d68-1d2f3a4b5c6d"
}
],
"pagination": {
"page": 1,
"page_size": 25,
"page_count": 1,
"total_count": 1
}
}{
"error": {
"code": "bad_request",
"message": "Bad Request",
"details": {
"input": "cannot be blank"
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized"
}
}{
"error": {
"code": "forbidden",
"message": "Forbidden"
}
}{
"error": {
"code": "not_found",
"message": "Not Found"
}
}Upload a file
Uploads a file to the app's storage so it can later be attached to a run via `file_ids`. The maximum request size is 128 MiB.
Create a run
Starts a run of the deployed app. Three execution modes are supported: **synchronous** (default — the request blocks until the run reaches a terminal state and returns the final run), **background** (`background: true` — returns `202 Accepted` immediately with the created run), and **streaming** (`stream: true` — the response is a Server-Sent Events stream of run events). `stream` and `background` cannot both be true. Files can be attached either by referencing previously uploaded files via `file_ids` or by sending the request as `multipart/form-data` with one or more `files` parts (max 128 MiB).