---
title: "Send a test DAG notification"
method: POST
path: "/dags/{fileName}/notifications/test"
tags: ["notifications"]
---

# Send a test DAG notification

`POST /dags/{fileName}/notifications/test`

Sends a test notification to one target or every enabled target for a DAG. Developer, manager, or admin only.

## Path parameters

- `fileName` string, regex, required — Name of the DAG file

## Query parameters

- `remoteNode` string

## Request body

- TestDAGNotificationRequest — Request to send a test notification
  - `targetId` string — Optional DAG-local target ID, subscription ID, or channel ID. When omitted, every enabled target and subscription is tested.
  - `eventType` 'dag.run.waiting' | 'dag.run.succeeded' | 'dag.run.partially_succeeded' | 'dag.run.failed' | 'dag.run.aborted' | 'dag.run.rejected' — DAG run event that can trigger server-side notifications. Rules configured for dag.run.succeeded also match dag.run.partially_succeeded; rules configured only for dag.run.partially_succeeded do not match clean successes.

## Response `200`

Test notification delivery attempted

- TestDAGNotificationResponse — Result of test notification delivery
  - `results` TestDAGNotificationResult[], required
    - `targetId` string, required
    - `targetName` string, required
    - `provider` 'email' | 'webhook' | 'slack' | 'telegram' | 'teams', required — Notification delivery provider
    - `delivered` boolean, required
    - `error` string

## Other responses

- `400` — Invalid test notification request
- `404` — DAG or target not found
- `default` — Unexpected error

---

[API](https://skmtc.net/dagucloud/apis/dagu.md) · [All operations](https://skmtc.net/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/93cc41f2018a/schema)
