---
title: "Reject Draft"
method: POST
path: "/api/ai-agents/drafts/{draft_id}/reject"
tags: ["ai-agents", "ai-agents"]
---

# Reject Draft

`POST /api/ai-agents/drafts/{draft_id}/reject`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/drafts/{draft_id}/reject`
- Auth: none declared

## Path parameters

- `draft_id` integer, required

## Request body

- RejectDraftRequest
  - `reason` string, nullable

## Response `200`

Successful Response

- AutoReplyDraftResponse
  - `id` integer, required
  - `thread_id` integer, required
  - `channel_account_id` integer, required
  - `thread_title` string, nullable
  - `channel_type` string, nullable
  - `channel_ref` string, nullable
  - `trigger_message_id` string, nullable
  - `trigger_text` string, nullable
  - `trigger_sender_name` string, nullable
  - `trigger_timestamp` string, date-time, nullable
  - `response_text` string, required
  - `status` string, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, nullable
  - `edited_text` string, nullable
  - `draft_type` string, nullable
  - `group_id` integer, nullable
  - `prompt_source` string, nullable
  - `attachment_file_ids` integer[]
  - `attachments` AttachmentInfo[]
    - `file_id` integer, required
    - `filename` string, nullable
    - `mime_type` string, nullable
    - `byte_size` integer, nullable
  - `agent_name` string, nullable
  - `agent_id` integer, nullable
  - `trace_id` string, nullable
  - `model_used` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
