REST API
The REST API under /api/v1 is the API the Web UI itself calls: list DAGs, start and stop runs, read logs, and decide steps that wait for a person. Requests and responses are JSON, apart from log downloads and event streams.
This page covers the basics, the common tasks with curl, and an index of every endpoint. For full request and response schemas, open the interactive reference in the Web UI or fetch GET /api/v1/openapi.json from your server.
The boxes are the run's statusLabel. A step with approval moves the run to waiting; the other arrow labels are calls in Common Tasks.
Start a run, then read its status:
export DAGU_URL=http://localhost:8080/api/v1
export AUTH="Authorization: Bearer dagu_your_api_key"
curl -s -X POST "$DAGU_URL/dags/etl-daily/start" -H "$AUTH" \
-H "Content-Type: application/json" \
-d '{"params": "{\"date\": \"2026-12-03\"}"}'
# {"dagRunId":"0358h6ZJSI2SotSjSrtesc"}
curl -s "$DAGU_URL/dag-runs/etl-daily/0358h6ZJSI2SotSjSrtesc" -H "$AUTH" \
| jq -r .dagRunDetails.statusLabel
# succeededThe run appears in the Web UI like a run started there. Every example below reuses DAGU_URL and AUTH (Authentication lists the header for each method) and uses jq to pick fields.
Basics
Base URL
The API lives at http://<host>:<port><base_path><api_base_path>. With the defaults (port 8080, no base_path, api_base_path: /api/v1), that is http://localhost:8080/api/v1. With base_path: /dagu, it is /dagu/api/v1. The servers entry of GET /openapi.json shows the path your server uses.
Paths on this page are relative to the base URL.
Authentication
Send credentials in the Authorization header. Which methods work depends on the server's auth.mode, which is builtin unless set otherwise.
| Method | Header | Use it for |
|---|---|---|
| API key | Bearer dagu_… | Scripts, CI, and other servers. Needs builtin mode and a key that accepts the rest_api surface. See API Keys. |
| Session token | Bearer <token> | Acting as a user. Get one from POST /auth/login. Needs builtin mode. |
| Basic | Basic <base64 of user:password> | Servers with auth.mode: basic. The account has the admin role. |
| Webhook token | Bearer dagu_wh_… | Only the webhook trigger, with or without an HMAC signature. See Trigger a Webhook. |
| None | Servers with auth.mode: none. |
GET /health, POST /auth/login, and POST /auth/setup need no credentials, and neither does GET /metrics when the server sets metrics: public.
A request without valid credentials gets 401 with an empty body and a WWW-Authenticate header. Valid credentials whose role or workspace access does not allow the call get 403.
Errors
An error response carries a machine-readable code and a message:
{"code": "bad_request", "message": "failed to build DAG: field 'params': unknown parameter(s): \"nope\"; accepted parameters are: date, env"}Some errors add a details object, such as the resume errors that say what was saved.
| Status | code | Meaning |
|---|---|---|
400 | bad_request, not_running | Invalid body, parameters, or YAML, or the run is not in a state that allows the action |
401 | unauthorized | Wrong username or password at sign-in. A missing or invalid credential gets an empty body |
403 | forbidden | The role, a server permission, or workspace access does not allow the call |
404 | not_found | The DAG, run, or step does not exist, or the caller cannot see it |
409 | already_exists, conflict | A singleton or service DAG is already running, the run ID exists, or the run changed meanwhile |
429 | rate_limited | Too many sign-in attempts |
502 | bad_gateway | A remote node or Dagu Console could not be reached |
503 | internal_error, human_task_resume_failed | A decision was saved, but the run could not resume |
Pagination
List endpoints page their results in one of two ways:
- Pages:
page(from 1) andperPage(default 50, at most 200). The response carries apaginationobject. Used by/dags,/wiki,/nodes,/connections, node runs, andforeachitems. - Cursors:
limitandcursor. A response with more results carriesnextCursor; send it back ascursorwith the same filters. Used by run lists, run activity, queue items, artifacts, event logs, and search.
"pagination": {"totalRecords": 14, "currentPage": 1, "totalPages": 14, "nextPage": 2, "prevPage": 1, "hasNextPage": true}Workspace and Remote Node Parameters
| Parameter | Applies to | Meaning |
|---|---|---|
workspace | List and search endpoints, Wiki, secrets | all (the default), default for resources without a workspace label, or a workspace name. |
remoteNode | Most endpoints | Serve the request on a remote node configured on this server. Omitted or local serves it here. |
With remoteNode, the server checks the caller's local role first, then forwards the request with the node's stored credentials. An unknown node name returns 400.
Run and Step Status
Runs and steps report a numeric status and a statusLabel:
status | Run statusLabel | Step statusLabel |
|---|---|---|
0 | not_started | not_started |
1 | running | running |
2 | failed | failed |
3 | aborted | aborted |
4 | succeeded | succeeded |
5 | queued | skipped |
6 | partially_succeeded | partially_succeeded |
7 | waiting | waiting |
8 | rejected | rejected |
9 | retrying |
The status filter of /dag-runs takes the number; repeat it to match several, as in status=1&status=5. Run and step times are RFC 3339 timestamps in UTC with milliseconds, such as 2026-12-04T06:16:54.093Z.
Common Tasks
Sign In for a Token
To act as a user instead of an API key, exchange a username and password for a session token:
TOKEN=$(curl -s -X POST "$DAGU_URL/auth/login" \
-H "Content-Type: application/json" \
-d '{"username": "admin", "password": "your-password"}' | jq -r .token)
export AUTH="Authorization: Bearer $TOKEN"The response holds token, expiresAt, and user. Wrong credentials return 401, and too many attempts return 429. Tokens last for auth.builtin.token.ttl; see Builtin Authentication.
List DAGs
curl -s "$DAGU_URL/dags?labels=team%3Ddata&perPage=20" -H "$AUTH"Example response (trimmed)
{
"dags": [
{
"fileName": "etl-daily",
"dag": {
"name": "etl-daily",
"description": "Extract orders, transform them, and load the warehouse",
"labels": ["etl", "team=data"],
"schedule": [{"expression": "0 2 * * *", "kind": "cron"}]
},
"latestDAGRun": {
"dagRunId": "0358gsMF9tHZKWI1kaujBQ",
"status": 4,
"statusLabel": "succeeded",
"startedAt": "2026-12-04T06:07:33.692Z",
"finishedAt": "2026-12-04T06:07:36.938Z"
},
"nextRun": "2026-12-05T02:00:00Z",
"suspended": false
}
],
"pagination": {"totalRecords": 1, "currentPage": 1, "totalPages": 1, "nextPage": 1, "prevPage": 1, "hasNextPage": false}
}| Parameter | Effect |
|---|---|
name | DAGs whose name contains the text |
labels | Comma-separated terms that all must match: key, key=value, globs with * and ?, and ! to negate |
active | Only DAGs that are not suspended and have a schedule or a restart policy |
sort, order | name, nextRun, status, or lastRun; asc or desc |
workspace, page, perPage | See Basics |
DAG endpoints (/dags/{fileName}) take the file name without .yaml. Run endpoints (/dag-runs/{name}) take the DAG name. Both are the same unless the YAML sets name:.
GET /dags/{fileName} returns one DAG with its parameter definitions in dag.paramDefs, its latest run, and its YAML in spec.
Start a Run
curl -s -X POST "$DAGU_URL/dags/etl-daily/start" -H "$AUTH" \
-H "Content-Type: application/json" \
-d '{"params": "{\"date\": \"2026-12-03\", \"env\": \"prod\"}"}'{"dagRunId": "0358h6ZJSI2SotSjSrtesc"}params is a string: a JSON object of named parameters, or key=value pairs separated by spaces as on the command line. The server checks the values against the DAG's parameter definitions and returns 400 for an unknown name or a wrong type. The body is required; send {} to start with defaults.
| Field | Description |
|---|---|
params | Parameters, as above |
dagRunId | Run ID to use instead of a generated one |
dagName | Record the run under another DAG name |
singleton | Return 409 instead of starting while the DAG has a running run |
labels | Labels added to this run |
profile | Runtime profile for this run. Omit to use the DAG's default; "" runs without one |
scheduleTime | Schedule slot the run is for: latest, a date, a time in the schedule's zone, or RFC 3339 |
workerSelector | Worker labels this run requires, replacing the DAG's worker_selector |
targetNodes | Nodes to narrow the run to |
noReuse | Run build steps without reusing earlier results |
steps | Run only these steps, by name or ID; the rest are recorded as skipped. See Running One Step |
outputsFromRunId, outputsFromRuns, outputs, outputsSources | Where the skipped steps' outputs come from. Need steps |
allowChangedSteps | Carried steps to reuse although they changed since their source run. Needs steps |
reuseFrom | Rerun only the steps that changed since this finished run. See Rerunning Changed Steps. Not combined with steps |
ephemeral | Run the selected steps in a run that leaves no trace. Needs steps |
With scheduleTime, the response also carries the slot as an RFC 3339 scheduleTime, and warnings when the time is not a fire time of the schedule. A slot in the future returns 400.
A DAG that sets restart_policy runs one run at a time, so a start, enqueue, retry, or webhook while its run is active returns 409 with code conflict. See Services.
Ephemeral runs
An ephemeral run executes like any run, and its details, step logs, step outputs, and spec are readable by its ID while it exists.
- Run lists, queues, the dashboard, artifacts, events, and notifications leave it out.
GET /dags/{fileName}/dag-runs?includeEphemeral=truelists it. - Retry, reschedule, and edited retry return
409. It does not count toward history retention. - The server removes it 10 minutes after it ends, and removes ended ephemeral runs at startup.
- Its run details carry
ephemeral: true, and the audit log marks the start request.
POST /dags/{fileName}/start-sync, which waits until the run ends, is deprecated. Start the run and check its status instead.
Check Run Status
curl -s "$DAGU_URL/dag-runs/etl-daily/0358h6ZJSI2SotSjSrtesc" -H "$AUTH" \
| jq -r '.dagRunDetails.nodes[] | "\(.step.name)\t\(.statusLabel)"'extract succeeded
load succeededUse latest in place of the run ID to read the DAG's newest run. The run details hold the run's status, statusLabel, params, and times, and one entry in nodes per step.
Example response (trimmed)
{
"dagRunDetails": {
"name": "etl-daily",
"dagRunId": "0358h6ZJSI2SotSjSrtesc",
"attemptId": "355f1c",
"status": 4,
"statusLabel": "succeeded",
"triggerType": "manual",
"params": "date=2026-12-03 env=prod",
"startedAt": "2026-12-04T06:16:54.093Z",
"finishedAt": "2026-12-04T06:16:56.234Z",
"nodes": [
{
"step": {"id": "extract", "name": "extract"},
"status": 4,
"statusLabel": "succeeded",
"startedAt": "2026-12-04T06:16:54.145Z",
"finishedAt": "2026-12-04T06:16:55.201Z",
"retryCount": 0
},
{
"step": {"id": "load", "name": "load", "depends": ["extract"]},
"status": 4,
"statusLabel": "succeeded",
"startedAt": "2026-12-04T06:16:55.201Z",
"finishedAt": "2026-12-04T06:16:56.234Z",
"retryCount": 0
}
]
}
}To wait for the end of a run, poll until the label leaves queued and running:
RUN=0358h6ZJSI2SotSjSrtesc
until status=$(curl -s "$DAGU_URL/dag-runs/etl-daily/$RUN" -H "$AUTH" | jq -r .dagRunDetails.statusLabel) \
&& [ "$status" != queued ] && [ "$status" != running ]; do
sleep 5
done
echo "$status"A run that stops at waiting needs a person: see Approve or Reject. A queued run carries conditions that say why it has not started; see Queued Runtime Conditions. GET /dag-runs/{name}/{dagRunId}/outputs returns the outputs the run collected.
To find runs, GET /dag-runs lists runs of every DAG, newest first, filtered by name, status, labels, fromDate and toDate (Unix seconds), and dagRunId, with up to limit (default 100, at most 500) per page.
Read Logs
curl -s "$DAGU_URL/dag-runs/etl-daily/0358h6ZJSI2SotSjSrtesc/steps/extract/log?stream=stdout&tail=100" -H "$AUTH"{"content": "extracting orders for 2026-12-03 in prod", "lineCount": 1, "totalLines": 1}| Endpoint | Returns |
|---|---|
GET /dag-runs/{name}/{dagRunId}/steps/{stepName}/log | A step's stdout or stderr (stream) |
GET /dag-runs/{name}/{dagRunId}/log | The run's own log: steps starting and ending, and the result |
…/log/download on either path | The whole log as a text file |
GET /dag-runs/{name}/{dagRunId}/steps/log/download | Every step log as one ZIP |
Select lines with tail, head, or offset (from 1) plus limit; each count is at most 10000. hasMore is true when lines remain outside the selection.
Enqueue a Run
POST /dags/{fileName}/enqueue adds a run to the DAG's queue instead of starting it. The queue starts it when it has room. The body takes the same params, dagRunId, dagName, labels, profile, scheduleTime, workerSelector, targetNodes, and noReuse fields as a start, plus queue to use another queue.
curl -s -X POST "$DAGU_URL/dags/etl-daily/enqueue" -H "$AUTH" \
-H "Content-Type: application/json" \
-d '{"params": "{\"date\": \"2026-12-04\"}"}'
# {"dagRunId":"0358h7uhhOfL39u4Dg6pY3"}With singleton: true, the request returns 409 while the DAG has a running or queued run. GET /queues shows each queue's running and queued runs, and GET /dag-runs/{name}/{dagRunId}/dequeue removes a queued run.
Stop, Retry, and Reschedule
| Call | Effect |
|---|---|
POST /dag-runs/{name}/{dagRunId}/stop | Stop a running run. It ends aborted. |
POST /dag-runs/{name}/{dagRunId}/retry | Run the same run again under the same ID, as a new attempt |
POST /dag-runs/{name}/{dagRunId}/reschedule | Create a new run with the earlier run's parameters |
POST /dags/{fileName}/stop-all | Stop every running run of a DAG |
curl -s -X POST "$DAGU_URL/dag-runs/etl-daily/$RUN/stop" -H "$AUTH"
curl -s -X POST "$DAGU_URL/dag-runs/etl-daily/$RUN/retry" -H "$AUTH" \
-H "Content-Type: application/json" \
-d "{\"dagRunId\": \"$RUN\", \"stepName\": \"load\"}"Stop and retry return 200 with an empty body.
- Stop also ends a root run that waits for an approval or a human task, as
abortedand without running its remaining steps, and cancels a failed run that waits for a DAG-level automatic retry. A run that is not running returns400with codenot_running; remove a queued run withdequeueinstead. A waiting sub DAG run cannot be stopped alone: stop its root run. - Retry needs
dagRunIdin the body, equal to the one in the path.stepNameresets only that step,includeDownstream: truealso resets every step downstream of it, andbypassPreconditions: trueskips the preconditions of the reset steps. A run that is still active or waiting returns409. - Reschedule returns
{"dagRunId": "...", "queued": true}. It takes an optionaldagRunId,dagName,scheduleTime,useCurrentDagFile: trueto use the DAG file as it is now instead of the YAML the run stored, anddryRun: trueto check the request without creating the run.
To fix a definition and run again, POST /dag-runs/{name}/{dagRunId}/edit-retry starts a new run from edited YAML in spec, with skipSteps keeping the earlier outputs of the steps it skips. …/edit-retry/preview reports which steps would be skipped and run.
Approve or Reject a Waiting Step
A step with approval puts the run in waiting after it succeeds. Find the waiting step in the run details (its statusLabel is waiting), then decide it by step name:
STEP=$DAGU_URL/dag-runs/deploy-approval/$RUN/steps/approve
curl -s -X POST "$STEP/approve" -H "$AUTH" -H "Content-Type: application/json" -d '{}'
# {"dagRunId":"0358h8yQH2XNcagQeahnpW","resumed":true,"stepName":"approve"}
curl -s -X POST "$STEP/reject" -H "$AUTH" -H "Content-Type: application/json" \
-d '{"reason": "Change freeze until Monday"}'
# {"dagRunId":"0358h9MS9jtWqw5nY9EgT2","stepName":"approve"}| Call | Body | Result |
|---|---|---|
…/steps/{stepName}/approve | Optional inputs: values for the step's approval.input | The step succeeds and the run resumes. resumed: true means the resume was accepted, not that it started. |
…/steps/{stepName}/reject | Optional reason | The step and the run end rejected. The steps after it do not run. |
…/steps/{stepName}/push-back | Optional inputs as feedback | The step, or its approval.rewind_to step and everything after it, runs again and then waits again. Returns approvalIteration. |
/dag-runs/{name}/{dagRunId}/resume | None | Retry the resume of an approval that was saved. |
Approving without a value listed in approval.required, or deciding a step that is not waiting, returns 400. The step records who decided in approvedBy and approvedById, rejectedBy and rejectedById, or each pushBackHistory entry's by and byId. They can be absent when authentication is off.
An approval is saved before the run resumes. If the resume fails, approve returns 503 with approvalStored: true and resumePending: true in details, or 409 if the run changed first. Do not approve again: call resume, which is safe to repeat.
For a step inside a sub DAG run, use the same calls under /dag-runs/{name}/{dagRunId}/sub-dag-runs/{subDAGRunId}/steps/{stepName}/. The sub DAG run resumes once none of its steps wait, and its approve returns resumed: false instead of 503 when the resume fails. Steps with action: human.task use the human task endpoints instead.
Trigger a Webhook
A webhook lets an outside system queue a run of one DAG with a token that can do nothing else. Create it in the Web UI or with POST /dags/{fileName}/webhook, then call:
curl -s -X POST "$DAGU_URL/webhooks/deploy-app" \
-H "Authorization: Bearer $WEBHOOK_TOKEN" \
-H "Content-Type: application/json" \
-d '{"payload": {"branch": "main", "commit": "abc123"}}'{"dagRunId": "0358hB4tW2mXc8LrQe7yNd", "dagName": "deploy-app"}The run is queued, and it receives payload as JSON in WEBHOOK_PAYLOAD. A dagRunId in the body makes retries safe: a second call with the same ID returns 409 instead of queuing another run. Webhooks need builtin auth; on other servers the trigger returns 404. See Webhooks for HMAC signing, profile tokens, and forwarded headers.
Run Inline YAML
POST /dag-runs starts a run from YAML in the request, without saving a DAG file. POST /dag-runs/enqueue queues one instead.
curl -s -X POST "$DAGU_URL/dag-runs" -H "$AUTH" \
-H "Content-Type: application/json" \
-d '{"name": "adhoc-hello", "spec": "steps:\n - id: hello\n run: echo hello\n"}'
# {"dagRunId":"0358hAMCUUSXmN51moZVAR"}spec is required, and name names the run when the YAML has no name. params, dagRunId, singleton, labels, profile, and the step selection fields work as in Start a Run. draftOf names the DAG file the YAML is an unsaved edit of, so the run takes that DAG's default profile. Invalid YAML returns 400 with the problem:
{"code": "bad_request", "message": "failed to build DAG: Step \"hello\": unknown field \"runx\". Did you mean \"run\"?"}Inline YAML has no source directory, so it cannot carry file dependencies. A distributed run of inline YAML that declares dependencies is refused before dispatch; save the workflow as a DAG file and start that instead.
To check YAML without running it, use POST /dags/validate.
Suspend Scheduling
Suspend one DAG so the scheduler starts no runs from its schedule:
curl -s -X POST "$DAGU_URL/dags/etl-daily/suspend" -H "$AUTH" \
-H "Content-Type: application/json" -d '{"suspend": true}'Send {"suspend": false} to resume it. To pause the schedules of every DAG at once, an admin sends {"paused": true, "reason": "database migration"} to POST /services/scheduler/pause. Manual, webhook, and sub DAG runs keep working while paused. See Pausing the Scheduler.
Endpoint Details
Human Tasks
These endpoints decide the action: human.task steps of a root run. They need permission to run DAGs in the run's workspace.
| Call | Body | Does |
|---|---|---|
POST /dag-runs/{name}/{dagRunId}/human-tasks/{stepId}/complete | The form values as one object; {} for an acknowledgement | Check the values against the stored form and complete the task |
POST …/human-tasks/{stepId}/push-back | The feedback values as one object | Reset the task's with.push_back target and everything after it, with the feedback |
POST …/human-tasks/resume | None | Queue the resume again after a 503 |
The body is the values themselves, not wrapped in inputs, and is limited to 16 MiB. Push-back feedback is limited to 16 KiB. Push-back takes an optional expectedIteration query parameter, the iteration the caller reviewed (0 before the first push-back), and returns 409 when the task has moved on.
A decision is stored first, then the run is queued, never started directly. A completion queues the run when it lets a step run or when no manual step is left waiting; otherwise it returns queued: false and the run keeps waiting. Repeating an identical request is safe. Different values for a task already decided return 409.
| Response field | Meaning |
|---|---|
dagName, dagRunId, stepId | The run and the task |
queued | This request added the run to the queue |
resumeRequested | The run was ready to resume, whether this request or a concurrent one queued it |
alreadyCompleted, alreadyPushedBack | Identical values had already decided the task |
remainingWaitingSteps | Complete only: manual steps still waiting |
rewindTo, iteration | Push-back only: the step that runs first, and the push-back iteration |
| Status | Complete or push-back | Resume |
|---|---|---|
400 | The body is not an object or fails the form; push-back without with.push_back | |
404 | The run or task does not exist or is not visible | The run does not exist |
409 | The task is not open, the run changed, or other values decided it | Manual steps wait and none can run, or nothing is stored to resume |
413 | The body is over 16 MiB | |
503 | Stored, but the run could not be queued | Queueing failed again |
Retry the Resume Queue
A 503 from complete or push-back has code human_task_resume_failed and details with completionStored: true or pushBackStored: true, and resumePending: true. Do not ask the person for the values again. Repeat the identical request, or queue the resume without a body:
curl -s -X POST "$DAGU_URL/dag-runs/release-workflow/$RUN/human-tasks/resume" -H "$AUTH"{"dagName": "release-workflow", "dagRunId": "0358hC1rVd7qKp3sYw9mTe", "queued": true}queued is false when the resume was already queued or the run already resumed. The call is safe to repeat.
Build Execution Data
For a build workflow, the run details carry noReuse, and each node carries a build object that explains its decision:
"build": {
"decision": "reuse",
"phase": "complete",
"reason": "matched",
"detail": "recipe, inputs, and output match the committed manifest",
"fingerprint": "sha256:...",
"producerRun": {"name": "report-pipeline", "id": "previous-run-id"},
"producerAttemptId": "previous-attempt-id"
}| Field | Values |
|---|---|
decision | none, always, execute, reuse, or deferred |
phase | precondition, evaluate, execute, verify, commit, or complete |
reason | Stable code for programs |
detail | Explanation for people |
fingerprint, materializationKey | What the decision compared |
producerRun, producerAttemptId | The run that produced a reused result |
Service DAGs
GET /service-dags lists the DAGs that set restart_policy, each with its state. The list has no pages and takes workspace. excludeServiceDAGRuns=true on GET /dag-runs keeps their runs out of run lists.
state | Meaning |
|---|---|
pending | Not suspended, and it has no run, or a run the scheduler did not queue waits to start |
running | A run is alive |
waiting | A run is alive and waits for a person |
restarting | The latest run succeeded, or an operator stopped the latest run of an always DAG, and the next run is due; or a run the scheduler queued waits to start |
failing | The latest run did not succeed and the next run is due, or the latest run cannot be read (readError) |
suspended | The DAG gets no new run |
stopped | An operator stopped the latest run of an unless-stopped DAG |
Each entry also carries queue, restartWaitSec, consecutiveFailures (up to 10), and latestRun with its error once it ended without success. With restarting and failing, nextRestartAt says when the next run is due, or restartHold says why none comes: paused or noScheduler.
Nodes
The node endpoints manage this server's node inventories and list its nodes: the SSH hosts of the inventories and the workers. A request that names a remote node in remoteNode returns 403. Credentials appear as secret references and key paths, never as values.
GET /nodeslists nodes in name order. Filter withlabels(a selector, as a step'snodesfield takes it),inventory(ID or name), andname(contained text), and page withpageandperPage.- A change to an inventory or one of its nodes names the
versionquery parameter it is based on. An older version returns409with the current inventory. A change that breaks a rule returns400with every broken rule and stores nothing. POST /node-connection-tests,POST /inventories/{inventoryId}/node-tests, andPOST /node-host-keysanswer with a server-sent event stream: aresultevent per node, then adoneevent. A test never trusts a host key.- Any signed-in user can read. Testing stored nodes needs operator or above; changing inventories, testing an unsaved node, and trusting host keys need developer or above; forgetting a worker node (
DELETE /nodes/{nodeName}) needs admin.
curl -N -X POST "$DAGU_URL/node-connection-tests" -H "$AUTH" \
-H "Content-Type: application/json" -d '{"labels": "web,env=prod"}'The node runs of a run are read with GET /dag-runs/{name}/{dagRunId}/node-runs: one row per node, with failed, aborted, and rejected rows first. failedOnly=true keeps only those. Run details carry targetNodes for a narrowed run and boundNode for a child run bound to one node, and each step with nodes carries nodeRuns, its node run counts by status.
Public URLs
A webhook can get a public URL through Dagu Cloud, so services on the internet can reach a server without a public address. A public URL needs the server connected to Dagu Cloud. Reading needs developer, manager, or admin; changes need admin.
| Call | Does |
|---|---|
GET /dags/{fileName}/webhook/public | The URL, its state, the latest deliveries, and missed counts |
POST /dags/{fileName}/webhook/public | Give the webhook a public URL. 400 when the server is not connected or the plan allows no more |
DELETE /dags/{fileName}/webhook/public | Remove the URL. Requests waiting at Dagu Cloud are dropped |
POST /dags/{fileName}/webhook/public/regenerate | Replace the URL. Requests already taken through the old one are still delivered |
PUT /dags/{fileName}/webhook/public/sender | Set the sender, its signing secret, and the events that start runs |
DELETE /dags/{fileName}/webhook/public/missed | Clear the missed counts |
state is active once Dagu Cloud holds the URL, connecting before then, overLimit when the plan allows fewer public URLs than the server has, or error. Each delivery's outcome is started, waiting, rejected (signature check failed), skipped (an event that starts no run), ignored (webhook disabled), or failed.
The sender body takes sender (github, stripe, slack, or standard; omit it to accept anyone with the URL), secret, generateSecret for a new GitHub secret, and events, at most 50; empty takes every event. A secret that Dagu makes is returned once as secret.
Git Sync
Git Sync items are DAGs, Wiki pages and their assets, calendars, and supporting files. DAG, Wiki page, and calendar IDs omit .yaml, .yml, and .md; supporting file IDs keep their full path and extension. URL-encode IDs in paths: scripts/report.py becomes scripts%2Freport.py.
| Call | Body | Response |
|---|---|---|
GET /sync/status | summary, items with itemId, kind, and status, and counts | |
POST /sync/pull | Sync result: success, synced, deleted, modified, conflicts, errors | |
POST /sync/publish-all | message, itemIds (omit to publish every change) | Sync result |
POST /sync/items/{itemId}/publish | message, force | Sync result, or 409 with remoteCommit, remoteAuthor, and remoteMessage |
POST /sync/items/{itemId}/move | newItemId, message, force | message, or 409 like publish |
POST /sync/items/{itemId}/delete | message, force | message |
POST /sync/delete-batch | itemIds, message, force | deleted, message |
POST /sync/delete-missing | message | deleted, message |
GET /sync/items/{itemId}/diff | localContent and remoteContent, or sizes for a binary file |
discard, forget, and cleanup take no body. Reading needs access to every workspace. Changes also need permission to write DAGs, and PUT /sync/config and POST /sync/test-connection need admin.
Self-Upgrade
POST /system/upgrade starts upgrading Dagu to the latest stable release and returns 202; GET /system/upgrade returns the progress. Both are admin only. The upgrade is offered only for a binary install run by the service the installer set up, with allow_web_upgrade on; otherwise, or while an upgrade runs, POST returns 409.
The state carries available, state, and, once known, targetVersion, downloadedBytes, and totalBytes. state moves through idle, downloading, installing, and restarting, when Dagu exits so its service starts the new binary. On failed, error says why and the binary is unchanged. After restarting, poll GET /health until version changes. See Self-Upgrade.
Interactive Reference
Every server serves its own OpenAPI 3 document at /openapi.json under the base URL, behind the same authentication as the rest of the API. The Web UI renders it under Configure > API Reference, with each endpoint's parameters, request and response schemas, and code samples. With builtin auth, it fills in your session token. Raw JSON opens the document itself.
Endpoint Index
Every operation of /api/v1, grouped by area. Paths are relative to the base URL.
Server and Scheduler
| Method | Path | Purpose |
|---|---|---|
GET | /health | Health and version. Needs no credentials |
GET | /openapi.json | OpenAPI document of this server |
GET | /metrics | Prometheus metrics. Needs no credentials with metrics: public |
GET | /services/scheduler | Status of the scheduler instances |
GET | /services/scheduler/pause | Whether scheduled runs are paused, and by whom |
POST | /services/scheduler/pause | Pause or resume scheduled runs of every DAG. See Suspend Scheduling |
GET | /services/coordinator | Status of the coordinator instances |
GET | /services/tunnel | Status of the Tailscale tunnel |
GET | /services/resources/history | Resource usage history of the server |
GET | /system/upgrade | State of an upgrade started from the Web UI. See Self-Upgrade |
POST | /system/upgrade | Upgrade to the latest release |
Sign-In, Users, and API Keys
| Method | Path | Purpose |
|---|---|---|
POST | /auth/setup | Create the first admin account. Needs no credentials; refused once any user exists |
POST | /auth/login | Exchange a username and password for a token. Needs no credentials |
GET | /auth/me | The signed-in user |
POST | /auth/change-password | Change your own password |
GET | /users | List users |
POST | /users | Create a user |
GET | /users/{userId} | Read a user |
PATCH | /users/{userId} | Update a user |
DELETE | /users/{userId} | Delete a user |
POST | /users/{userId}/reset-password | Set a new password for a user |
GET | /api-keys | List API keys, without secrets |
POST | /api-keys | Create an API key. The response holds the secret once |
GET | /api-keys/{keyId} | Read an API key |
PATCH | /api-keys/{keyId} | Update an API key |
DELETE | /api-keys/{keyId} | Delete an API key |
DAGs
| Method | Path | Purpose |
|---|---|---|
GET | /dags | List DAGs with filters, sorting, and pages |
POST | /dags | Create a DAG file, optionally from YAML |
POST | /dags/validate | Validate YAML without saving it |
GET | /dags/{fileName} | DAG details, parameter definitions, and latest run |
DELETE | /dags/{fileName} | Delete a DAG file |
GET | /dags/{fileName}/spec | Read the DAG's YAML |
PUT | /dags/{fileName}/spec | Replace the DAG's YAML |
POST | /dags/{fileName}/rename | Rename the DAG file |
POST | /dags/{fileName}/suspend | Suspend or resume scheduling. See Suspend Scheduling |
PUT | /dags/{fileName}/pin | Pin the DAG to the top of the DAG list |
DELETE | /dags/{fileName}/pin | Remove the pin |
GET | /dags/{fileName}/settings | Server-side settings: the default runtime profile |
PUT | /dags/{fileName}/settings | Set the default runtime profile |
DELETE | /dags/{fileName}/settings | Remove the server-side settings |
GET | /dags/search | Full-text search across DAG definitions |
GET | /dags/labels | Every label in use |
GET | /dags/tags | Deprecated alias of /dags/labels |
GET | /dag-list-activity | Recent run activity of the named DAGs |
GET | /dag-run-changes | DAG files whose runs changed lately |
GET | /service-dags | DAGs with a restart policy, and their state. See Service DAGs |
GET | /dags/{fileName}/run-history/samples | Runs of a service DAG in time buckets |
GET | /dags/{fileName}/run-history/events | Failures, recoveries, and gaps of a service DAG |
GET | /dags/{fileName}/run-history/availability | Availability of a service DAG over 24 hours to 365 days |
DELETE | /dags/{fileName}/browser-cache | Clear the browser operations the DAG's browser steps replay |
Start Runs
| Method | Path | Purpose |
|---|---|---|
POST | /dags/{fileName}/start | Start a run. See Start a Run |
POST | /dags/{fileName}/start-preview | Preview the steps a selected-steps run carries |
POST | /dags/{fileName}/start-sync | Deprecated. Start a run and wait until it ends |
POST | /dags/{fileName}/enqueue | Queue a run. See Enqueue a Run |
GET | /dags/{fileName}/slot-preview | Resolve the schedule slot a run would get |
POST | /dag-runs | Start a run from inline YAML. See Run Inline YAML |
POST | /dag-runs/preview | Preview a selected-steps run of inline YAML |
POST | /dag-runs/enqueue | Queue a run from inline YAML |
DAG Runs
… stands for /dag-runs/{name}/{dagRunId}.
| Method | Path | Purpose |
|---|---|---|
GET | /dag-runs | Runs of every DAG, newest first, with filters |
GET | /dag-runs/{name} | Runs of one DAG name |
GET | /dags/{fileName}/dag-runs | Run history of a DAG file |
GET | /dags/{fileName}/dag-runs/{dagRunId} | One run of a DAG file |
GET | /dag-runs/{name}/{dagRunId} | Run details. latest works as the run ID |
DELETE | /dag-runs/{name}/{dagRunId} | Delete a finished run and its data |
GET | …/spec | The YAML the run used |
POST | …/stop | Stop a run. See Stop, Retry, and Reschedule |
POST | /dags/{fileName}/stop-all | Stop every running run of a DAG |
POST | …/retry | Retry a run, or one step, under the same run ID |
POST | …/reschedule | Create a new run with the parameters of an earlier one |
POST | …/edit-retry/preview | Check an edited definition against an earlier run |
POST | …/edit-retry | Start a new run from an edited definition, skipping chosen steps |
GET | …/dequeue | Remove a queued run from its queue |
POST | …/resume | Resume a run whose approval is saved. See Approve or Reject |
GET | …/outputs | Outputs the run collected |
GET | /dag-run-activity | Runs created in a time window, and what needs attention |
GET | …/node-runs | Node runs of a run. See Nodes |
GET | …/sub-dag-runs | Sub DAG runs of a run, with timing |
Logs and Artifacts
… stands for /dag-runs/{name}/{dagRunId}.
| Method | Path | Purpose |
|---|---|---|
GET | …/log | The run's own log |
GET | …/log/download | Download the run's log |
GET | …/steps/{stepName}/log | A step's stdout or stderr |
GET | …/steps/{stepName}/log/download | Download a step's log |
GET | …/steps/log/download | Download every step log as a ZIP |
POST | …/steps/log/download | The same ZIP, for a browser form post |
GET | /artifacts | Recent runs that stored artifacts |
GET | …/artifacts | Artifact file tree of a run |
GET | …/artifacts/preview | Preview one artifact |
GET | …/artifacts/download | Download one artifact |
Steps
… stands for /dag-runs/{name}/{dagRunId}/steps/{stepName}.
| Method | Path | Purpose |
|---|---|---|
GET | …/outputs | Outputs of one step |
PATCH | …/status | Set a step's status by hand |
POST | …/approve | Approve a waiting step. See Approve or Reject |
POST | …/reject | Reject a waiting step |
POST | …/push-back | Send a waiting step back with feedback |
GET | …/foreach | Items of a foreach step |
GET | …/foreach/{item} | One foreach item and its body steps |
GET | …/foreach/{item}/steps/{bodyStepName}/log | Log of a body step of a foreach item |
GET | …/foreach/{item}/steps/{bodyStepName}/log/download | Download that log |
GET | …/messages | Chat messages of an LLM step |
POST | …/agent-interactions/{interactionId}/respond | Answer a managed agent's question |
POST | …/agent-session/restart | Restart a managed agent's session |
GET | …/samples | Executions of a continuous step in time buckets |
GET | …/events | Starts, stops, failures, and recoveries of a continuous step |
GET | …/availability | Availability of a continuous step |
Human Tasks
… stands for /dag-runs/{name}/{dagRunId}/human-tasks.
| Method | Path | Purpose |
|---|---|---|
POST | …/{stepId}/complete | Complete a human task. See Human Tasks |
POST | …/{stepId}/push-back | Push a human task back to its rewind target |
POST | …/resume | Queue the resume of a stored human-task decision again |
Sub DAG Runs
… stands for /dag-runs/{name}/{dagRunId}, the root run. Each endpoint does what its root-run counterpart does, for one sub DAG run.
| Method | Path | Purpose |
|---|---|---|
GET | …/sub-dag-runs/{subDAGRunId} | Details of a sub DAG run |
GET | …/sub-dag-runs/{subDAGRunId}/spec | The YAML the sub DAG run used |
GET | …/sub-dag-runs/{subDAGRunId}/log | The sub DAG run's own log |
GET | …/sub-dag-runs/{subDAGRunId}/log/download | Download that log |
GET | …/sub-dag-runs/{subDAGRunId}/steps/log/download | Download every step log as a ZIP |
POST | …/sub-dag-runs/{subDAGRunId}/steps/log/download | The same ZIP, for a browser form post |
GET | …/sub-dag-runs/{subDAGRunId}/artifacts | Artifact file tree |
GET | …/sub-dag-runs/{subDAGRunId}/artifacts/preview | Preview one artifact |
GET | …/sub-dag-runs/{subDAGRunId}/artifacts/download | Download one artifact |
GET | …/sub-dag-runs/{subDAGRunId}/node-runs | Node runs |
Sub DAG Run Steps
… stands for /dag-runs/{name}/{dagRunId}/sub-dag-runs/{subDAGRunId}/steps/{stepName}. Each endpoint does what its counterpart in Steps does, for a step of one sub DAG run.
| Method | Path | Purpose |
|---|---|---|
GET | …/log | A step's stdout or stderr |
GET | …/log/download | Download a step's log |
GET | …/foreach | Items of a foreach step |
GET | …/foreach/{item} | One foreach item |
GET | …/foreach/{item}/steps/{bodyStepName}/log | Log of a body step of a foreach item |
GET | …/foreach/{item}/steps/{bodyStepName}/log/download | Download that log |
GET | …/messages | Chat messages of an LLM step |
PATCH | …/status | Set a step's status by hand |
POST | …/approve | Approve a waiting step |
POST | …/reject | Reject a waiting step |
POST | …/push-back | Send a waiting step back with feedback |
POST | …/agent-interactions/{interactionId}/respond | Answer a managed agent's question |
POST | …/agent-session/restart | Restart a managed agent's session |
Backfills
| Method | Path | Purpose |
|---|---|---|
POST | /dags/{fileName}/backfills | Plan and submit a backfill over past schedule slots |
GET | /dags/{fileName}/missed-slots | Slots that came due while the DAG did not run |
POST | /dags/{fileName}/missed-slots/dismissal | Hide the missed slots |
GET | /dags/{fileName}/slots | Schedule slots in a range, with their state |
GET | /backfills | List backfills |
GET | /backfills/{backfillId} | Read a backfill |
GET | /backfills/{backfillId}/slots | Slots of a backfill, with their runs |
POST | /backfills/{backfillId}/cancel | Cancel an open backfill |
POST | /backfills/{backfillId}/resume | Run the slots that did not succeed again |
Queues
| Method | Path | Purpose |
|---|---|---|
GET | /queues | Queues with running and queued counts |
GET | /queues/{name} | One queue |
GET | /queues/{name}/items | Runs waiting in a queue |
Search
| Method | Path | Purpose |
|---|---|---|
GET | /search/dags | Search DAGs, a page at a time |
GET | /search/dags/{fileName}/matches | Matching snippets of one DAG |
GET | /search/wiki | Search Wiki pages, a page at a time |
GET | /search/wiki/matches | Matching snippets of one Wiki page |
Webhooks
The trigger endpoints take a webhook token, not an API key. See Webhooks.
| Method | Path | Purpose |
|---|---|---|
POST | /webhooks/{fileName} | Queue a run of the DAG. See Trigger a Webhook |
POST | /webhooks/{project}/{fileName} | Queue a run of a project's DAG. Answers 404 while projects are off |
GET | /webhooks | List the webhooks of every DAG |
GET | /dags/{fileName}/webhook | Read a DAG's webhook |
POST | /dags/{fileName}/webhook | Create a webhook. The response holds the token once |
DELETE | /dags/{fileName}/webhook | Delete the webhook |
POST | /dags/{fileName}/webhook/regenerate | Replace the token |
POST | /dags/{fileName}/webhook/toggle | Turn the webhook on or off |
PUT | /dags/{fileName}/webhook/profile-selection | Runtime profiles callers may select |
POST | /dags/{fileName}/webhook/profile-tokens | Create a token bound to one runtime profile |
DELETE | /dags/{fileName}/webhook/profile-tokens/{tokenId} | Revoke a profile token |
POST | /dags/{fileName}/webhook/hmac/enable | Require HMAC signatures |
POST | /dags/{fileName}/webhook/hmac/configure | Change the HMAC settings |
POST | /dags/{fileName}/webhook/hmac/regenerate | Replace the HMAC secret |
POST | /dags/{fileName}/webhook/hmac/disable | Stop checking HMAC signatures |
GET | /dags/{fileName}/webhook/public | Public URL and its latest deliveries. See Public URLs |
POST | /dags/{fileName}/webhook/public | Give the webhook a public URL |
DELETE | /dags/{fileName}/webhook/public | Remove the public URL |
POST | /dags/{fileName}/webhook/public/regenerate | Replace the public URL |
PUT | /dags/{fileName}/webhook/public/sender | Sender, signing secret, and events of the public URL |
DELETE | /dags/{fileName}/webhook/public/missed | Clear the missed delivery counts |
Notifications
The /notification-settings/connection endpoints are part of connections and answer 404 while connections are off.
| Method | Path | Purpose |
|---|---|---|
GET | /notification-settings | Notification settings, such as email delivery |
PUT | /notification-settings | Update notification settings |
GET | /notification-routes | Global and workspace routes |
GET | /notification-routes/global | Global routes |
PUT | /notification-routes/global | Replace the global routes |
GET | /notification-routes/workspaces/{workspaceName} | Routes of one workspace |
PUT | /notification-routes/workspaces/{workspaceName} | Replace the routes of one workspace |
GET | /notification-channels | List channels |
POST | /notification-channels | Create a channel |
GET | /notification-channels/{channelId} | Read a channel |
PUT | /notification-channels/{channelId} | Update a channel |
DELETE | /notification-channels/{channelId} | Delete a channel |
POST | /notification-channels/{channelId}/test | Send a test notification through a channel |
GET | /dags/{fileName}/notifications | Notification settings of a DAG |
PUT | /dags/{fileName}/notifications | Update a DAG's notification settings |
DELETE | /dags/{fileName}/notifications | Remove a DAG's notification settings |
POST | /dags/{fileName}/notifications/test | Send a test notification for a DAG |
GET | /notification-settings/connection | The connection that email notifications sign in with |
POST | /notification-settings/connection | Create that connection |
DELETE | /notification-settings/connection | Remove that connection |
POST | /notification-settings/connection/authorization | Start connecting it |
GET | /notification-settings/connection/authorization | Read the connect session |
DELETE | /notification-settings/connection/authorization | Cancel the connect session |
POST | /notification-settings/connection/authorization/complete | Complete a loopback or paste session |
POST | /notification-settings/connection/authorization/confirm | Confirm the account of the session |
POST | /notification-settings/connection/token | Fetch a token without a user |
Incidents
| Method | Path | Purpose |
|---|---|---|
GET | /incident-providers | List incident connections |
POST | /incident-providers | Create an incident connection |
GET | /incident-providers/{providerId} | Read an incident connection |
PUT | /incident-providers/{providerId} | Update an incident connection |
DELETE | /incident-providers/{providerId} | Delete an incident connection |
POST | /incident-providers/{providerId}/test | Send a test incident |
GET | /incident-policies | Global, workspace, and DAG routing |
GET | /incident-policies/global | Global routing |
PUT | /incident-policies/global | Replace the global routing |
GET | /incident-policies/workspaces/{workspaceName} | Routing of one workspace |
PUT | /incident-policies/workspaces/{workspaceName} | Replace the routing of one workspace |
GET | /dags/{fileName}/incidents | Routing of a DAG |
PUT | /dags/{fileName}/incidents | Replace a DAG's routing |
DELETE | /dags/{fileName}/incidents | Remove a DAG's routing |
Audit and Event Logs
| Method | Path | Purpose |
|---|---|---|
GET | /audit | Audit log entries |
GET | /event-logs | Operational event log entries |
Git Sync
See Git Sync for request bodies and permissions.
| Method | Path | Purpose |
|---|---|---|
GET | /sync/status | Sync status and tracked items |
POST | /sync/pull | Pull from the remote repository |
POST | /sync/publish-all | Publish changed items |
POST | /sync/test-connection | Test repository access |
GET | /sync/config | Read the Git Sync configuration |
PUT | /sync/config | Update the Git Sync configuration |
GET | /sync/items/{itemId}/diff | Local and remote content of an item |
POST | /sync/items/{itemId}/publish | Publish one item |
POST | /sync/items/{itemId}/discard | Discard local changes of an item |
POST | /sync/items/{itemId}/forget | Drop the sync state of an item |
POST | /sync/items/{itemId}/delete | Delete an item locally and remotely |
POST | /sync/items/{itemId}/move | Rename an item locally and remotely |
POST | /sync/delete-missing | Delete every missing item from the remote |
POST | /sync/delete-batch | Delete selected items |
POST | /sync/cleanup | Drop the sync state of every missing item |
Wiki
Page paths are relative to the workspace and omit .md. See Wiki.
| Method | Path | Purpose |
|---|---|---|
GET | /wiki | Page tree, or a flat list with flat=true |
POST | /wiki | Create a page |
GET | /wiki/search | Search page content |
GET | /wiki/backlinks | Pages that link to a page |
GET | /wiki/page | Read a page |
PATCH | /wiki/page | Replace a page's content |
DELETE | /wiki/page | Delete a page |
POST | /wiki/page/rename | Rename or move a page or directory |
POST | /wiki/delete-batch | Delete several pages or directories |
GET | /wiki/page/revisions | Saved revisions of a page |
GET | /wiki/page/revision | Read one revision |
PUT | /wiki/page/attachment | Upload an attachment as raw bytes |
GET | /wiki/page/attachment | Download an attachment |
Calendars
See Business Calendars.
| Method | Path | Purpose |
|---|---|---|
GET | /calendars | Built-in calendars and calendar files |
POST | /calendars | Create a calendar |
GET | /calendars/{name} | Read a calendar, its problems, and its dependents |
PUT | /calendars/{name} | Replace a calendar's content |
DELETE | /calendars/{name} | Delete a calendar no DAG or calendar uses |
POST | /calendars/{name}/preview | Apply unsaved content to the dates of a year |
Secrets
Secret values are write-only. See Secrets.
| Method | Path | Purpose |
|---|---|---|
GET | /secrets | List secrets |
POST | /secrets | Create a secret, optionally with a value |
GET | /secrets/{secretId} | Read a secret's metadata |
PATCH | /secrets/{secretId} | Update a secret's metadata |
DELETE | /secrets/{secretId} | Delete a secret |
POST | /secrets/{secretId}/versions | Write a new value |
POST | /secrets/{secretId}/disable | Disable a secret |
POST | /secrets/{secretId}/enable | Enable a secret |
Runtime Profiles
Secret values are never returned. See Profiles.
| Method | Path | Purpose |
|---|---|---|
GET | /profiles | List profiles and their entries |
POST | /profiles | Create a profile |
GET | /profiles/{profileName} | Read a profile |
PATCH | /profiles/{profileName} | Update a profile's metadata |
DELETE | /profiles/{profileName} | Delete a profile |
PUT | /profiles/{profileName}/variables/{key} | Set a variable |
PUT | /profiles/{profileName}/secrets/{key} | Set a secret |
DELETE | /profiles/{profileName}/entries/{key} | Delete a variable or secret |
GET | /profiles/_global | Global defaults |
PATCH | /profiles/_global | Update the global defaults |
PUT | /profiles/_global/variables/{key} | Set a global default variable |
PUT | /profiles/_global/secrets/{key} | Set a global default secret |
DELETE | /profiles/_global/entries/{key} | Delete a global default entry |
GET | /profiles/_workspaces/{workspaceName} | Defaults of one workspace |
PATCH | /profiles/_workspaces/{workspaceName} | Update a workspace's defaults |
PUT | /profiles/_workspaces/{workspaceName}/variables/{key} | Set a workspace default variable |
PUT | /profiles/_workspaces/{workspaceName}/secrets/{key} | Set a workspace default secret |
DELETE | /profiles/_workspaces/{workspaceName}/entries/{key} | Delete a workspace default entry |
Connections
Connections are experimental. These endpoints answer 404 until connections are turned on.
| Method | Path | Purpose |
|---|---|---|
GET | /oauth-apps | List OAuth apps |
POST | /oauth-apps | Create an OAuth app |
GET | /oauth-apps/{appId} | Read an OAuth app |
PATCH | /oauth-apps/{appId} | Update an OAuth app |
DELETE | /oauth-apps/{appId} | Delete an OAuth app |
GET | /connections | List connections |
POST | /connections | Create a connection |
GET | /connections/{name} | Read a connection |
PATCH | /connections/{name} | Update a connection's metadata |
DELETE | /connections/{name} | Remove a connection |
GET | /connection-attention | Count the connections that need reconnecting |
GET | /connection-providers | List connection providers |
GET | /connection-templates | Starter DAGs for a connection |
POST | /connections/{name}/authorization | Start a connect or reconnect |
GET | /connections/{name}/authorization | Read a connect session |
DELETE | /connections/{name}/authorization | Cancel a connect session |
POST | /connections/{name}/authorization/complete | Complete a loopback or paste session |
POST | /connections/{name}/authorization/confirm | Confirm the account of a connect session |
POST | /connections/{name}/token | Fetch a token without a user |
POST | /connections/{name}/import | Create a connection from an existing refresh token |
POST | /connections/{name}/test | Test a connection |
GET | /connections/{name}/tools | MCP tools of a connection |
POST | /connections/{name}/tools/{tool}/call | Try an MCP tool |
POST | /connections/{name}/calls/{call}/confirmation | Answer a tool's confirmation request |
Nodes and Inventories
See Nodes.
| Method | Path | Purpose |
|---|---|---|
GET | /nodes | List nodes, with label, inventory, and name filters |
GET | /nodes/{nodeName} | Read a node |
DELETE | /nodes/{nodeName} | Forget an offline worker node |
GET | /node-labels | Labels of every node |
GET | /inventories | List inventories |
POST | /inventories | Create an inventory |
GET | /inventories/{inventoryId} | Read an inventory and its version |
PUT | /inventories/{inventoryId} | Replace an inventory |
DELETE | /inventories/{inventoryId} | Delete an inventory |
POST | /inventories/{inventoryId}/nodes | Add a node |
PUT | /inventories/{inventoryId}/nodes/{nodeName} | Add or replace a node |
DELETE | /inventories/{inventoryId}/nodes/{nodeName} | Remove a node |
POST | /inventories/{inventoryId}/node-tests | Test a node before adding it |
POST | /inventory-imports | Import inventories as dagu nodes export prints them |
POST | /node-connection-tests | Test connections to nodes |
POST | /node-host-keys | Trust SSH host keys |
Remote Nodes
See Remote Nodes.
| Method | Path | Purpose |
|---|---|---|
GET | /remote-nodes | Remote nodes from the config file and the store |
POST | /remote-nodes | Add a remote node |
GET | /remote-nodes/{remoteNodeId} | Read a remote node |
PATCH | /remote-nodes/{remoteNodeId} | Update a remote node |
DELETE | /remote-nodes/{remoteNodeId} | Delete a remote node |
POST | /remote-nodes/{remoteNodeId}/test-connection | Test the connection to a remote node |
Workers
| Method | Path | Purpose |
|---|---|---|
GET | /workers | Connected workers, their labels, and running tasks |
GET | /workers/invites | Worker invites, without secrets |
POST | /workers/invites | Create an invite for a worker on another host |
DELETE | /workers/invites/{inviteId} | Delete an invite |
POST | /workers/removals | Revoke the certificate of a joined worker |
GET | /workers/join-readiness | Whether workers on other hosts can join each coordinator |
License and Dagu Console
| Method | Path | Purpose |
|---|---|---|
GET | /license/status | License status, without credentials |
POST | /license/activate | Activate a license key |
POST | /license/deactivate | Release the license and return to community mode |
POST | /license/connect | Request a license from Dagu Console |
GET | /license/connect | State of the request |
DELETE | /license/connect | Cancel the request |
POST | /license/refresh | Check in with Dagu Console now |
PUT | /license/server-name | Rename this server in Dagu Console |
GET | /license/monitoring | What this server reports to Dagu Console |
PUT | /license/monitoring | Choose what this server reports |
POST | /license/monitoring/dismiss-notice | Stop asking admins what to report |
GET | /license/remote-access | How far calls from Dagu Cloud may go on this server |
PUT | /license/remote-access | Set how far calls from Dagu Cloud may go |
Workspaces and Projects
Projects are a preview of v3.0. The /projects endpoints answer 404 while projects are off. See Workspaces.
| Method | Path | Purpose |
|---|---|---|
GET | /workspaces | List workspaces |
POST | /workspaces | Create a workspace |
GET | /workspaces/{workspaceId} | Read a workspace |
PATCH | /workspaces/{workspaceId} | Rename or describe a workspace |
DELETE | /workspaces/{workspaceId} | Delete a workspace record |
GET | /workspaces/deprecation | Workspace settings that v3.0 moves into projects |
GET | /projects | List projects |
POST | /projects | Create a project |
PATCH | /projects/{projectName} | Change a project's display name |
DELETE | /projects/{projectName} | Delete a project |
Base Configuration, Views, and Skills
| Method | Path | Purpose |
|---|---|---|
GET | /settings/base-config | Read the base DAG configuration |
PUT | /settings/base-config | Validate and save the base DAG configuration |
GET | /settings/workspaces/{workspaceName}/base-config | Read a workspace's base configuration |
PUT | /settings/workspaces/{workspaceName}/base-config | Save a workspace's base configuration |
GET | /views | Saved views |
POST | /views | Create a saved view |
GET | /views/{viewId} | Read a saved view |
PUT | /views/{viewId} | Update a saved view |
DELETE | /views/{viewId} | Delete a saved view |
GET | /skills | Skills in the DAGs directory |
GET | /skills/{name} | A skill's SKILL.md, files, and errors |
PUT | /skills/{name} | Create or replace SKILL.md |
DELETE | /skills/{name} | Delete a skill |
GET | /skills/{name}/files | Download one file of a skill |
PUT | /skills/{name}/files | Create or replace one file of a skill |
DELETE | /skills/{name}/files | Delete one file of a skill |
GET | /skills/{name}/download | Download a skill as a ZIP |
POST | /skills-download | Download several skills as one ZIP |



