> ## Documentation Index
> Fetch the complete documentation index at: https://emotion-trac.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a draft

> Prefill a Client Intake Form and receive a secure attorney edit link.

```http theme={null}
POST https://intake.emotiontrac.com/api/partner/v1/drafts
Authorization: Bearer YOUR_PARTNER_API_KEY
Content-Type: application/json
```

| Body field | Type | Required | Meaning |
| - | - | - | - |
| `requestId` | string | Yes | Your stable identity for one intentional form |
| `sendEmail` | boolean | No | Queue an initial email to the attorney; defaults to `false` |
| `form` | object | Yes | Required contacts and any supported optional form fields |

Only `form.contacts.firmName`, `attorneyFirstName`, `attorneyLastName`, and
`attorneyEmail` are required form fields. A case name or case ID is not required.
See the [complete field reference](https://emotion-trac.mintlify.site/fields.md).

## Add optional fields

```json theme={null}
{
  "requestId": "example-request-003",
  "sendEmail": true,
  "form": {
    "contacts": {
      "firmName": "Example Law Firm",
      "attorneyFirstName": "Alex",
      "attorneyLastName": "Taylor",
      "attorneyEmail": "alex.taylor@example.com"
    },
    "case": {
      "caseName": "Sample v. Example Transport",
      "typeOfCase": "Personal injury",
      "litifyNumber": "EXAMPLE-1042"
    },
    "materials": {
      "supportingLinks": "https://example.com/materials/case-folder"
    }
  }
}
```

Link fields accept one HTTP(S) URL per line. EmotionTrac does not download the
linked material during creation. The attorney can add files through the form.

## Response

`201 Created` means a new draft was saved. `200 OK` means an identical request
resolved to the existing draft.

| Field | Meaning |
| - | - |
| `draftId` | Stable UUID; store this for status lookup |
| `status` | `in_progress` or `submitted` |
| `createdAt` | Original creation time, in UTC |
| `submittedAt` | Submission time in UTC, or `null` |
| `editUrl` | Secure link to the draft or its submitted Order |
| `editUrlExpiresAt` | Draft link expiry in UTC; `null` after submission |
| `initialEmail.status` | `not_requested`, `pending`, `sent`, `failed`, or `cancelled` |
| `initialEmail.sentAt` | Time the email provider accepted the initial email, or `null` |

A replay may return a fresh link to the same target. Earlier links remain valid
under their normal lifecycle. Replays never replace the attorney’s changes,
reset draft activity, or queue another initial email or sales notification.

Changing original creation data, including `sendEmail`, returns `409`.
Deleted or superseded drafts and deleted linked Orders return `404`.

[Retries and error responses](https://emotion-trac.mintlify.site/errors.md) · [Email and link lifecycle](https://emotion-trac.mintlify.site/lifecycle.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.