> ## Documentation Index
> Fetch the complete documentation index at: https://mako-docs.devinagiffy.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm Draft

> Confirm a draft and create the actual task

<Note>This endpoint requires authentication. Only the draft owner can confirm.</Note>

## Path Parameters

<ParamField path="id" type="string" required>
  Draft UUID
</ParamField>

## Response

Returns the created task.

<ResponseField name="id" type="string">
  Task UUID (different from draft ID)
</ResponseField>

<ResponseField name="title" type="string">
  Task title
</ResponseField>

<ResponseField name="status" type="string">
  Task status: `open`
</ResponseField>

<ResponseField name="priority" type="integer">
  Priority level
</ResponseField>

<ResponseField name="dueDate" type="string">
  Due date if set
</ResponseField>

<ResponseField name="createdAt" type="string">
  Creation timestamp
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.hitler.app/api/tasks/drafts/draft-uuid-123/confirm" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```typescript TypeScript theme={null}
  const task = await api.confirmDraft("draft-uuid-123");
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "task-uuid-456",
    "title": "Review Q4 budget proposal",
    "description": null,
    "priority": 2,
    "status": "open",
    "dueDate": "2024-01-20T17:00:00.000Z",
    "userId": "user-uuid",
    "organizationId": "org-uuid",
    "createdAt": "2024-01-15T10:35:00.000Z"
  }
  ```

  ```json 404 theme={null}
  {
    "statusCode": 404,
    "message": "Draft not found",
    "error": "Not Found"
  }
  ```
</ResponseExample>
