Skip to content

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:

bash
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
# succeeded

The 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.

MethodHeaderUse it for
API keyBearer dagu_…Scripts, CI, and other servers. Needs builtin mode and a key that accepts the rest_api surface. See API Keys.
Session tokenBearer <token>Acting as a user. Get one from POST /auth/login. Needs builtin mode.
BasicBasic <base64 of user:password>Servers with auth.mode: basic. The account has the admin role.
Webhook tokenBearer dagu_wh_…Only the webhook trigger, with or without an HMAC signature. See Trigger a Webhook.
NoneServers 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:

json
{"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.

StatuscodeMeaning
400bad_request, not_runningInvalid body, parameters, or YAML, or the run is not in a state that allows the action
401unauthorizedWrong username or password at sign-in. A missing or invalid credential gets an empty body
403forbiddenThe role, a server permission, or workspace access does not allow the call
404not_foundThe DAG, run, or step does not exist, or the caller cannot see it
409already_exists, conflictA singleton or service DAG is already running, the run ID exists, or the run changed meanwhile
429rate_limitedToo many sign-in attempts
502bad_gatewayA remote node or Dagu Console could not be reached
503internal_error, human_task_resume_failedA decision was saved, but the run could not resume

Pagination ​

List endpoints page their results in one of two ways:

  • Pages: page (from 1) and perPage (default 50, at most 200). The response carries a pagination object. Used by /dags, /wiki, /nodes, /connections, node runs, and foreach items.
  • Cursors: limit and cursor. A response with more results carries nextCursor; send it back as cursor with the same filters. Used by run lists, run activity, queue items, artifacts, event logs, and search.
json
"pagination": {"totalRecords": 14, "currentPage": 1, "totalPages": 14, "nextPage": 2, "prevPage": 1, "hasNextPage": true}

Workspace and Remote Node Parameters ​

ParameterApplies toMeaning
workspaceList and search endpoints, Wiki, secretsall (the default), default for resources without a workspace label, or a workspace name.
remoteNodeMost endpointsServe 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:

statusRun statusLabelStep statusLabel
0not_startednot_started
1runningrunning
2failedfailed
3abortedaborted
4succeededsucceeded
5queuedskipped
6partially_succeededpartially_succeeded
7waitingwaiting
8rejectedrejected
9retrying

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:

bash
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 ​

bash
curl -s "$DAGU_URL/dags?labels=team%3Ddata&perPage=20" -H "$AUTH"
Example response (trimmed)
json
{
  "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}
}
ParameterEffect
nameDAGs whose name contains the text
labelsComma-separated terms that all must match: key, key=value, globs with * and ?, and ! to negate
activeOnly DAGs that are not suspended and have a schedule or a restart policy
sort, ordername, nextRun, status, or lastRun; asc or desc
workspace, page, perPageSee 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 ​

bash
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\"}"}'
json
{"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.

FieldDescription
paramsParameters, as above
dagRunIdRun ID to use instead of a generated one
dagNameRecord the run under another DAG name
singletonReturn 409 instead of starting while the DAG has a running run
labelsLabels added to this run
profileRuntime profile for this run. Omit to use the DAG's default; "" runs without one
scheduleTimeSchedule slot the run is for: latest, a date, a time in the schedule's zone, or RFC 3339
workerSelectorWorker labels this run requires, replacing the DAG's worker_selector
targetNodesNodes to narrow the run to
noReuseRun build steps without reusing earlier results
stepsRun only these steps, by name or ID; the rest are recorded as skipped. See Running One Step
outputsFromRunId, outputsFromRuns, outputs, outputsSourcesWhere the skipped steps' outputs come from. Need steps
allowChangedStepsCarried steps to reuse although they changed since their source run. Needs steps
reuseFromRerun only the steps that changed since this finished run. See Rerunning Changed Steps. Not combined with steps
ephemeralRun 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=true lists 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 ​

bash
curl -s "$DAGU_URL/dag-runs/etl-daily/0358h6ZJSI2SotSjSrtesc" -H "$AUTH" \
  | jq -r '.dagRunDetails.nodes[] | "\(.step.name)\t\(.statusLabel)"'
text
extract	succeeded
load	succeeded

Use 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)
json
{
  "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:

bash
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 ​

bash
curl -s "$DAGU_URL/dag-runs/etl-daily/0358h6ZJSI2SotSjSrtesc/steps/extract/log?stream=stdout&tail=100" -H "$AUTH"
json
{"content": "extracting orders for 2026-12-03 in prod", "lineCount": 1, "totalLines": 1}
EndpointReturns
GET /dag-runs/{name}/{dagRunId}/steps/{stepName}/logA step's stdout or stderr (stream)
GET /dag-runs/{name}/{dagRunId}/logThe run's own log: steps starting and ending, and the result
…/log/download on either pathThe whole log as a text file
GET /dag-runs/{name}/{dagRunId}/steps/log/downloadEvery 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.

bash
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 ​

CallEffect
POST /dag-runs/{name}/{dagRunId}/stopStop a running run. It ends aborted.
POST /dag-runs/{name}/{dagRunId}/retryRun the same run again under the same ID, as a new attempt
POST /dag-runs/{name}/{dagRunId}/rescheduleCreate a new run with the earlier run's parameters
POST /dags/{fileName}/stop-allStop every running run of a DAG
bash
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 aborted and without running its remaining steps, and cancels a failed run that waits for a DAG-level automatic retry. A run that is not running returns 400 with code not_running; remove a queued run with dequeue instead. A waiting sub DAG run cannot be stopped alone: stop its root run.
  • Retry needs dagRunId in the body, equal to the one in the path. stepName resets only that step, includeDownstream: true also resets every step downstream of it, and bypassPreconditions: true skips the preconditions of the reset steps. A run that is still active or waiting returns 409.
  • Reschedule returns {"dagRunId": "...", "queued": true}. It takes an optional dagRunId, dagName, scheduleTime, useCurrentDagFile: true to use the DAG file as it is now instead of the YAML the run stored, and dryRun: true to 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:

bash
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"}
CallBodyResult
…/steps/{stepName}/approveOptional inputs: values for the step's approval.inputThe step succeeds and the run resumes. resumed: true means the resume was accepted, not that it started.
…/steps/{stepName}/rejectOptional reasonThe step and the run end rejected. The steps after it do not run.
…/steps/{stepName}/push-backOptional inputs as feedbackThe step, or its approval.rewind_to step and everything after it, runs again and then waits again. Returns approvalIteration.
/dag-runs/{name}/{dagRunId}/resumeNoneRetry 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:

bash
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"}}'
json
{"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.

bash
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:

json
{"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:

bash
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.

CallBodyDoes
POST /dag-runs/{name}/{dagRunId}/human-tasks/{stepId}/completeThe form values as one object; {} for an acknowledgementCheck the values against the stored form and complete the task
POST …/human-tasks/{stepId}/push-backThe feedback values as one objectReset the task's with.push_back target and everything after it, with the feedback
POST …/human-tasks/resumeNoneQueue 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 fieldMeaning
dagName, dagRunId, stepIdThe run and the task
queuedThis request added the run to the queue
resumeRequestedThe run was ready to resume, whether this request or a concurrent one queued it
alreadyCompleted, alreadyPushedBackIdentical values had already decided the task
remainingWaitingStepsComplete only: manual steps still waiting
rewindTo, iterationPush-back only: the step that runs first, and the push-back iteration
StatusComplete or push-backResume
400The body is not an object or fails the form; push-back without with.push_back
404The run or task does not exist or is not visibleThe run does not exist
409The task is not open, the run changed, or other values decided itManual steps wait and none can run, or nothing is stored to resume
413The body is over 16 MiB
503Stored, but the run could not be queuedQueueing 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:

bash
curl -s -X POST "$DAGU_URL/dag-runs/release-workflow/$RUN/human-tasks/resume" -H "$AUTH"
json
{"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:

json
"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"
}
FieldValues
decisionnone, always, execute, reuse, or deferred
phaseprecondition, evaluate, execute, verify, commit, or complete
reasonStable code for programs
detailExplanation for people
fingerprint, materializationKeyWhat the decision compared
producerRun, producerAttemptIdThe 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.

stateMeaning
pendingNot suspended, and it has no run, or a run the scheduler did not queue waits to start
runningA run is alive
waitingA run is alive and waits for a person
restartingThe 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
failingThe latest run did not succeed and the next run is due, or the latest run cannot be read (readError)
suspendedThe DAG gets no new run
stoppedAn 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 /nodes lists nodes in name order. Filter with labels (a selector, as a step's nodes field takes it), inventory (ID or name), and name (contained text), and page with page and perPage.
  • A change to an inventory or one of its nodes names the version query parameter it is based on. An older version returns 409 with the current inventory. A change that breaks a rule returns 400 with every broken rule and stores nothing.
  • POST /node-connection-tests, POST /inventories/{inventoryId}/node-tests, and POST /node-host-keys answer with a server-sent event stream: a result event per node, then a done event. 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.
bash
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.

CallDoes
GET /dags/{fileName}/webhook/publicThe URL, its state, the latest deliveries, and missed counts
POST /dags/{fileName}/webhook/publicGive the webhook a public URL. 400 when the server is not connected or the plan allows no more
DELETE /dags/{fileName}/webhook/publicRemove the URL. Requests waiting at Dagu Cloud are dropped
POST /dags/{fileName}/webhook/public/regenerateReplace the URL. Requests already taken through the old one are still delivered
PUT /dags/{fileName}/webhook/public/senderSet the sender, its signing secret, and the events that start runs
DELETE /dags/{fileName}/webhook/public/missedClear 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.

CallBodyResponse
GET /sync/statussummary, items with itemId, kind, and status, and counts
POST /sync/pullSync result: success, synced, deleted, modified, conflicts, errors
POST /sync/publish-allmessage, itemIds (omit to publish every change)Sync result
POST /sync/items/{itemId}/publishmessage, forceSync result, or 409 with remoteCommit, remoteAuthor, and remoteMessage
POST /sync/items/{itemId}/movenewItemId, message, forcemessage, or 409 like publish
POST /sync/items/{itemId}/deletemessage, forcemessage
POST /sync/delete-batchitemIds, message, forcedeleted, message
POST /sync/delete-missingmessagedeleted, message
GET /sync/items/{itemId}/difflocalContent 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.

The API Reference page lists endpoints by tag next to the server URL and authenticationThe API Reference page lists endpoints by tag next to the server URL and authentication

Endpoint Index ​

Every operation of /api/v1, grouped by area. Paths are relative to the base URL.

Server and Scheduler ​

MethodPathPurpose
GET/healthHealth and version. Needs no credentials
GET/openapi.jsonOpenAPI document of this server
GET/metricsPrometheus metrics. Needs no credentials with metrics: public
GET/services/schedulerStatus of the scheduler instances
GET/services/scheduler/pauseWhether scheduled runs are paused, and by whom
POST/services/scheduler/pausePause or resume scheduled runs of every DAG. See Suspend Scheduling
GET/services/coordinatorStatus of the coordinator instances
GET/services/tunnelStatus of the Tailscale tunnel
GET/services/resources/historyResource usage history of the server
GET/system/upgradeState of an upgrade started from the Web UI. See Self-Upgrade
POST/system/upgradeUpgrade to the latest release

Sign-In, Users, and API Keys ​

MethodPathPurpose
POST/auth/setupCreate the first admin account. Needs no credentials; refused once any user exists
POST/auth/loginExchange a username and password for a token. Needs no credentials
GET/auth/meThe signed-in user
POST/auth/change-passwordChange your own password
GET/usersList users
POST/usersCreate a user
GET/users/{userId}Read a user
PATCH/users/{userId}Update a user
DELETE/users/{userId}Delete a user
POST/users/{userId}/reset-passwordSet a new password for a user
GET/api-keysList API keys, without secrets
POST/api-keysCreate 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 ​

MethodPathPurpose
GET/dagsList DAGs with filters, sorting, and pages
POST/dagsCreate a DAG file, optionally from YAML
POST/dags/validateValidate YAML without saving it
GET/dags/{fileName}DAG details, parameter definitions, and latest run
DELETE/dags/{fileName}Delete a DAG file
GET/dags/{fileName}/specRead the DAG's YAML
PUT/dags/{fileName}/specReplace the DAG's YAML
POST/dags/{fileName}/renameRename the DAG file
POST/dags/{fileName}/suspendSuspend or resume scheduling. See Suspend Scheduling
PUT/dags/{fileName}/pinPin the DAG to the top of the DAG list
DELETE/dags/{fileName}/pinRemove the pin
GET/dags/{fileName}/settingsServer-side settings: the default runtime profile
PUT/dags/{fileName}/settingsSet the default runtime profile
DELETE/dags/{fileName}/settingsRemove the server-side settings
GET/dags/searchFull-text search across DAG definitions
GET/dags/labelsEvery label in use
GET/dags/tagsDeprecated alias of /dags/labels
GET/dag-list-activityRecent run activity of the named DAGs
GET/dag-run-changesDAG files whose runs changed lately
GET/service-dagsDAGs with a restart policy, and their state. See Service DAGs
GET/dags/{fileName}/run-history/samplesRuns of a service DAG in time buckets
GET/dags/{fileName}/run-history/eventsFailures, recoveries, and gaps of a service DAG
GET/dags/{fileName}/run-history/availabilityAvailability of a service DAG over 24 hours to 365 days
DELETE/dags/{fileName}/browser-cacheClear the browser operations the DAG's browser steps replay

Start Runs ​

MethodPathPurpose
POST/dags/{fileName}/startStart a run. See Start a Run
POST/dags/{fileName}/start-previewPreview the steps a selected-steps run carries
POST/dags/{fileName}/start-syncDeprecated. Start a run and wait until it ends
POST/dags/{fileName}/enqueueQueue a run. See Enqueue a Run
GET/dags/{fileName}/slot-previewResolve the schedule slot a run would get
POST/dag-runsStart a run from inline YAML. See Run Inline YAML
POST/dag-runs/previewPreview a selected-steps run of inline YAML
POST/dag-runs/enqueueQueue a run from inline YAML

DAG Runs ​

… stands for /dag-runs/{name}/{dagRunId}.

MethodPathPurpose
GET/dag-runsRuns of every DAG, newest first, with filters
GET/dag-runs/{name}Runs of one DAG name
GET/dags/{fileName}/dag-runsRun 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…/specThe YAML the run used
POST…/stopStop a run. See Stop, Retry, and Reschedule
POST/dags/{fileName}/stop-allStop every running run of a DAG
POST…/retryRetry a run, or one step, under the same run ID
POST…/rescheduleCreate a new run with the parameters of an earlier one
POST…/edit-retry/previewCheck an edited definition against an earlier run
POST…/edit-retryStart a new run from an edited definition, skipping chosen steps
GET…/dequeueRemove a queued run from its queue
POST…/resumeResume a run whose approval is saved. See Approve or Reject
GET…/outputsOutputs the run collected
GET/dag-run-activityRuns created in a time window, and what needs attention
GET…/node-runsNode runs of a run. See Nodes
GET…/sub-dag-runsSub DAG runs of a run, with timing

Logs and Artifacts ​

… stands for /dag-runs/{name}/{dagRunId}.

MethodPathPurpose
GET…/logThe run's own log
GET…/log/downloadDownload the run's log
GET…/steps/{stepName}/logA step's stdout or stderr
GET…/steps/{stepName}/log/downloadDownload a step's log
GET…/steps/log/downloadDownload every step log as a ZIP
POST…/steps/log/downloadThe same ZIP, for a browser form post
GET/artifactsRecent runs that stored artifacts
GET…/artifactsArtifact file tree of a run
GET…/artifacts/previewPreview one artifact
GET…/artifacts/downloadDownload one artifact

Steps ​

… stands for /dag-runs/{name}/{dagRunId}/steps/{stepName}.

MethodPathPurpose
GET…/outputsOutputs of one step
PATCH…/statusSet a step's status by hand
POST…/approveApprove a waiting step. See Approve or Reject
POST…/rejectReject a waiting step
POST…/push-backSend a waiting step back with feedback
GET…/foreachItems of a foreach step
GET…/foreach/{item}One foreach item and its body steps
GET…/foreach/{item}/steps/{bodyStepName}/logLog of a body step of a foreach item
GET…/foreach/{item}/steps/{bodyStepName}/log/downloadDownload that log
GET…/messagesChat messages of an LLM step
POST…/agent-interactions/{interactionId}/respondAnswer a managed agent's question
POST…/agent-session/restartRestart a managed agent's session
GET…/samplesExecutions of a continuous step in time buckets
GET…/eventsStarts, stops, failures, and recoveries of a continuous step
GET…/availabilityAvailability of a continuous step

Human Tasks ​

… stands for /dag-runs/{name}/{dagRunId}/human-tasks.

MethodPathPurpose
POST…/{stepId}/completeComplete a human task. See Human Tasks
POST…/{stepId}/push-backPush a human task back to its rewind target
POST…/resumeQueue 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.

MethodPathPurpose
GET…/sub-dag-runs/{subDAGRunId}Details of a sub DAG run
GET…/sub-dag-runs/{subDAGRunId}/specThe YAML the sub DAG run used
GET…/sub-dag-runs/{subDAGRunId}/logThe sub DAG run's own log
GET…/sub-dag-runs/{subDAGRunId}/log/downloadDownload that log
GET…/sub-dag-runs/{subDAGRunId}/steps/log/downloadDownload every step log as a ZIP
POST…/sub-dag-runs/{subDAGRunId}/steps/log/downloadThe same ZIP, for a browser form post
GET…/sub-dag-runs/{subDAGRunId}/artifactsArtifact file tree
GET…/sub-dag-runs/{subDAGRunId}/artifacts/previewPreview one artifact
GET…/sub-dag-runs/{subDAGRunId}/artifacts/downloadDownload one artifact
GET…/sub-dag-runs/{subDAGRunId}/node-runsNode 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.

MethodPathPurpose
GET…/logA step's stdout or stderr
GET…/log/downloadDownload a step's log
GET…/foreachItems of a foreach step
GET…/foreach/{item}One foreach item
GET…/foreach/{item}/steps/{bodyStepName}/logLog of a body step of a foreach item
GET…/foreach/{item}/steps/{bodyStepName}/log/downloadDownload that log
GET…/messagesChat messages of an LLM step
PATCH…/statusSet a step's status by hand
POST…/approveApprove a waiting step
POST…/rejectReject a waiting step
POST…/push-backSend a waiting step back with feedback
POST…/agent-interactions/{interactionId}/respondAnswer a managed agent's question
POST…/agent-session/restartRestart a managed agent's session

Backfills ​

MethodPathPurpose
POST/dags/{fileName}/backfillsPlan and submit a backfill over past schedule slots
GET/dags/{fileName}/missed-slotsSlots that came due while the DAG did not run
POST/dags/{fileName}/missed-slots/dismissalHide the missed slots
GET/dags/{fileName}/slotsSchedule slots in a range, with their state
GET/backfillsList backfills
GET/backfills/{backfillId}Read a backfill
GET/backfills/{backfillId}/slotsSlots of a backfill, with their runs
POST/backfills/{backfillId}/cancelCancel an open backfill
POST/backfills/{backfillId}/resumeRun the slots that did not succeed again

Queues ​

MethodPathPurpose
GET/queuesQueues with running and queued counts
GET/queues/{name}One queue
GET/queues/{name}/itemsRuns waiting in a queue
MethodPathPurpose
GET/search/dagsSearch DAGs, a page at a time
GET/search/dags/{fileName}/matchesMatching snippets of one DAG
GET/search/wikiSearch Wiki pages, a page at a time
GET/search/wiki/matchesMatching snippets of one Wiki page

Webhooks ​

The trigger endpoints take a webhook token, not an API key. See Webhooks.

MethodPathPurpose
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/webhooksList the webhooks of every DAG
GET/dags/{fileName}/webhookRead a DAG's webhook
POST/dags/{fileName}/webhookCreate a webhook. The response holds the token once
DELETE/dags/{fileName}/webhookDelete the webhook
POST/dags/{fileName}/webhook/regenerateReplace the token
POST/dags/{fileName}/webhook/toggleTurn the webhook on or off
PUT/dags/{fileName}/webhook/profile-selectionRuntime profiles callers may select
POST/dags/{fileName}/webhook/profile-tokensCreate a token bound to one runtime profile
DELETE/dags/{fileName}/webhook/profile-tokens/{tokenId}Revoke a profile token
POST/dags/{fileName}/webhook/hmac/enableRequire HMAC signatures
POST/dags/{fileName}/webhook/hmac/configureChange the HMAC settings
POST/dags/{fileName}/webhook/hmac/regenerateReplace the HMAC secret
POST/dags/{fileName}/webhook/hmac/disableStop checking HMAC signatures
GET/dags/{fileName}/webhook/publicPublic URL and its latest deliveries. See Public URLs
POST/dags/{fileName}/webhook/publicGive the webhook a public URL
DELETE/dags/{fileName}/webhook/publicRemove the public URL
POST/dags/{fileName}/webhook/public/regenerateReplace the public URL
PUT/dags/{fileName}/webhook/public/senderSender, signing secret, and events of the public URL
DELETE/dags/{fileName}/webhook/public/missedClear the missed delivery counts

Notifications ​

The /notification-settings/connection endpoints are part of connections and answer 404 while connections are off.

MethodPathPurpose
GET/notification-settingsNotification settings, such as email delivery
PUT/notification-settingsUpdate notification settings
GET/notification-routesGlobal and workspace routes
GET/notification-routes/globalGlobal routes
PUT/notification-routes/globalReplace 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-channelsList channels
POST/notification-channelsCreate 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}/testSend a test notification through a channel
GET/dags/{fileName}/notificationsNotification settings of a DAG
PUT/dags/{fileName}/notificationsUpdate a DAG's notification settings
DELETE/dags/{fileName}/notificationsRemove a DAG's notification settings
POST/dags/{fileName}/notifications/testSend a test notification for a DAG
GET/notification-settings/connectionThe connection that email notifications sign in with
POST/notification-settings/connectionCreate that connection
DELETE/notification-settings/connectionRemove that connection
POST/notification-settings/connection/authorizationStart connecting it
GET/notification-settings/connection/authorizationRead the connect session
DELETE/notification-settings/connection/authorizationCancel the connect session
POST/notification-settings/connection/authorization/completeComplete a loopback or paste session
POST/notification-settings/connection/authorization/confirmConfirm the account of the session
POST/notification-settings/connection/tokenFetch a token without a user

Incidents ​

MethodPathPurpose
GET/incident-providersList incident connections
POST/incident-providersCreate 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}/testSend a test incident
GET/incident-policiesGlobal, workspace, and DAG routing
GET/incident-policies/globalGlobal routing
PUT/incident-policies/globalReplace 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}/incidentsRouting of a DAG
PUT/dags/{fileName}/incidentsReplace a DAG's routing
DELETE/dags/{fileName}/incidentsRemove a DAG's routing

Audit and Event Logs ​

MethodPathPurpose
GET/auditAudit log entries
GET/event-logsOperational event log entries

Git Sync ​

See Git Sync for request bodies and permissions.

MethodPathPurpose
GET/sync/statusSync status and tracked items
POST/sync/pullPull from the remote repository
POST/sync/publish-allPublish changed items
POST/sync/test-connectionTest repository access
GET/sync/configRead the Git Sync configuration
PUT/sync/configUpdate the Git Sync configuration
GET/sync/items/{itemId}/diffLocal and remote content of an item
POST/sync/items/{itemId}/publishPublish one item
POST/sync/items/{itemId}/discardDiscard local changes of an item
POST/sync/items/{itemId}/forgetDrop the sync state of an item
POST/sync/items/{itemId}/deleteDelete an item locally and remotely
POST/sync/items/{itemId}/moveRename an item locally and remotely
POST/sync/delete-missingDelete every missing item from the remote
POST/sync/delete-batchDelete selected items
POST/sync/cleanupDrop the sync state of every missing item

Wiki ​

Page paths are relative to the workspace and omit .md. See Wiki.

MethodPathPurpose
GET/wikiPage tree, or a flat list with flat=true
POST/wikiCreate a page
GET/wiki/searchSearch page content
GET/wiki/backlinksPages that link to a page
GET/wiki/pageRead a page
PATCH/wiki/pageReplace a page's content
DELETE/wiki/pageDelete a page
POST/wiki/page/renameRename or move a page or directory
POST/wiki/delete-batchDelete several pages or directories
GET/wiki/page/revisionsSaved revisions of a page
GET/wiki/page/revisionRead one revision
PUT/wiki/page/attachmentUpload an attachment as raw bytes
GET/wiki/page/attachmentDownload an attachment

Calendars ​

See Business Calendars.

MethodPathPurpose
GET/calendarsBuilt-in calendars and calendar files
POST/calendarsCreate 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}/previewApply unsaved content to the dates of a year

Secrets ​

Secret values are write-only. See Secrets.

MethodPathPurpose
GET/secretsList secrets
POST/secretsCreate 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}/versionsWrite a new value
POST/secrets/{secretId}/disableDisable a secret
POST/secrets/{secretId}/enableEnable a secret

Runtime Profiles ​

Secret values are never returned. See Profiles.

MethodPathPurpose
GET/profilesList profiles and their entries
POST/profilesCreate 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/_globalGlobal defaults
PATCH/profiles/_globalUpdate 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.

MethodPathPurpose
GET/oauth-appsList OAuth apps
POST/oauth-appsCreate 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/connectionsList connections
POST/connectionsCreate a connection
GET/connections/{name}Read a connection
PATCH/connections/{name}Update a connection's metadata
DELETE/connections/{name}Remove a connection
GET/connection-attentionCount the connections that need reconnecting
GET/connection-providersList connection providers
GET/connection-templatesStarter DAGs for a connection
POST/connections/{name}/authorizationStart a connect or reconnect
GET/connections/{name}/authorizationRead a connect session
DELETE/connections/{name}/authorizationCancel a connect session
POST/connections/{name}/authorization/completeComplete a loopback or paste session
POST/connections/{name}/authorization/confirmConfirm the account of a connect session
POST/connections/{name}/tokenFetch a token without a user
POST/connections/{name}/importCreate a connection from an existing refresh token
POST/connections/{name}/testTest a connection
GET/connections/{name}/toolsMCP tools of a connection
POST/connections/{name}/tools/{tool}/callTry an MCP tool
POST/connections/{name}/calls/{call}/confirmationAnswer a tool's confirmation request

Nodes and Inventories ​

See Nodes.

MethodPathPurpose
GET/nodesList nodes, with label, inventory, and name filters
GET/nodes/{nodeName}Read a node
DELETE/nodes/{nodeName}Forget an offline worker node
GET/node-labelsLabels of every node
GET/inventoriesList inventories
POST/inventoriesCreate 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}/nodesAdd a node
PUT/inventories/{inventoryId}/nodes/{nodeName}Add or replace a node
DELETE/inventories/{inventoryId}/nodes/{nodeName}Remove a node
POST/inventories/{inventoryId}/node-testsTest a node before adding it
POST/inventory-importsImport inventories as dagu nodes export prints them
POST/node-connection-testsTest connections to nodes
POST/node-host-keysTrust SSH host keys

Remote Nodes ​

See Remote Nodes.

MethodPathPurpose
GET/remote-nodesRemote nodes from the config file and the store
POST/remote-nodesAdd 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-connectionTest the connection to a remote node

Workers ​

See Distributed Execution.

MethodPathPurpose
GET/workersConnected workers, their labels, and running tasks
GET/workers/invitesWorker invites, without secrets
POST/workers/invitesCreate an invite for a worker on another host
DELETE/workers/invites/{inviteId}Delete an invite
POST/workers/removalsRevoke the certificate of a joined worker
GET/workers/join-readinessWhether workers on other hosts can join each coordinator

License and Dagu Console ​

MethodPathPurpose
GET/license/statusLicense status, without credentials
POST/license/activateActivate a license key
POST/license/deactivateRelease the license and return to community mode
POST/license/connectRequest a license from Dagu Console
GET/license/connectState of the request
DELETE/license/connectCancel the request
POST/license/refreshCheck in with Dagu Console now
PUT/license/server-nameRename this server in Dagu Console
GET/license/monitoringWhat this server reports to Dagu Console
PUT/license/monitoringChoose what this server reports
POST/license/monitoring/dismiss-noticeStop asking admins what to report
GET/license/remote-accessHow far calls from Dagu Cloud may go on this server
PUT/license/remote-accessSet 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.

MethodPathPurpose
GET/workspacesList workspaces
POST/workspacesCreate 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/deprecationWorkspace settings that v3.0 moves into projects
GET/projectsList projects
POST/projectsCreate a project
PATCH/projects/{projectName}Change a project's display name
DELETE/projects/{projectName}Delete a project

Base Configuration, Views, and Skills ​

MethodPathPurpose
GET/settings/base-configRead the base DAG configuration
PUT/settings/base-configValidate and save the base DAG configuration
GET/settings/workspaces/{workspaceName}/base-configRead a workspace's base configuration
PUT/settings/workspaces/{workspaceName}/base-configSave a workspace's base configuration
GET/viewsSaved views
POST/viewsCreate 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/skillsSkills 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}/filesDownload one file of a skill
PUT/skills/{name}/filesCreate or replace one file of a skill
DELETE/skills/{name}/filesDelete one file of a skill
GET/skills/{name}/downloadDownload a skill as a ZIP
POST/skills-downloadDownload several skills as one ZIP

Dagu is open source under the GNU General Public License v3.0.