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

## Changes

- **2026-08-07** (v1) `8110676aca90` — 1 warning
  - added the new `teams` enum value to the `results/items/provider` response property for the response status `200`
- **2026-08-01** (v1) `17f1f49a7b2a` — 1 info
  - added the new `dag.run.partially_succeeded` enum value to the request property `eventType`
- **2026-07-23** (v1) `75b8e91aaf57` — 9 warning
  - added the new `conflict` enum value to the `code` response property for the response status `400`
  - added the new `conflict` enum value to the `code` response property for the response status `404`
  - added the new `conflict` enum value to the `code` response property for the response status `default`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `400`
  - …5 more
- **2026-05-24** (v1) `8a2d5d3e9608` — 3 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `400`
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-05-17** (v1) `0cce8472f3ba` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/dagucloud/apis/dagu/changes/dags/:fileName/notifications/test/post.md)

---

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