---
title: "Connect this server to Dagu Console"
method: POST
path: "/license/connect"
tags: ["system"]
---

# Connect this server to Dagu Console

`POST /license/connect`

## Request

- Base URL: `http://localhost/api/v1`
- URL: `http://localhost/api/v1/license/connect`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
  - none

Starts a request for a license from Dagu Console, or returns the pending one. Open connectUrl to approve it; the license is installed once a workspace owner approves. A report level, when given, chooses what this server reports to Dagu Console, starting once the license is installed, unless cloud.report in the configuration sets it. Admin only.

## Query parameters

- `remoteNode` string

## Request body

- object
  - `report` 'off' | 'health' | 'runs' | 'errors': How much this server reports to Dagu Console: off sends nothing but one report saying so after health, runs, or errors, health sends its version and which services run, runs also sends the status of finished DAG runs and the runs in progress, and errors also sends the error messages of failed runs

## Response `200`

Current connection request

- LicenseConnectStatus: Request to connect this server to Dagu Console
  - `state` 'idle' | 'pending' | 'granted' | 'failed' | 'expired', required: Progress of the request
  - `connectUrl` string: Dagu Console page that approves the request. Its report query parameter names what this server reports once connected, and is absent when it reports nothing
  - `code` string: Short code Dagu Console shows so the approver can confirm the request
  - `expiresAt` string: When the request expires unless approved
  - `error` string: Why the request failed

## Other responses

- `400`: Unknown report level
- `403`: Insufficient permissions
- `409`: The license is set outside Dagu or the server already has a license
- `default`: Unexpected error

## Changes

> 208 revisions in range; 1 not diffed.

- **2026-10-20** (v1) `9e73d150ef9d`: 1 info
  - added the new `errors` enum value to the request property `report`
- **2026-10-17** (v1) `c93026137d80`: 2 info
  - added optional request body
  - added the non-success response with the status `400`
- **2026-10-09** (v1) `e2fde4da38bd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dagucloud/apis/dagu/changes/license/connect/post.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) - [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) - [OpenAPI document](https://skmtc.dev/dagucloud/apis/dagu/revisions/742c8ecb39ce?raw)
