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

# Email and edit links

> Understand the handoff to the attorney and what happens after submission.

## Initial email

`sendEmail` defaults to `false`. Set it to `true` on creation to queue an email
to the supplied primary attorney address. Draft creation succeeds independently
of email delivery, and the response always includes an edit link.

| Initial-email state | Meaning |
| - | - |
| `not_requested` | `sendEmail` was omitted or false |
| `pending` | Email is queued for delivery |
| `sent` | The email provider accepted it; this does not confirm inbox delivery |
| `failed` | An attempt failed; the worker will retry |
| `cancelled` | The draft became ineligible before delivery |

Failed attempts retry automatically through an hourly recovery worker.
Delivery stops for submitted, deleted, or superseded drafts, and when existing
high-confidence matching rules identify a later submitted Order for that work.
Replaying creation never requests a second initial email.

> [!NOTE]
>
> `sendEmail: false` does **not** disable normal attorney reminders. Both
> choices retain the usual reminder and follow-up behavior.

## Secure edit links

Anyone with the edit link can open the form without logging in. Share it only
with authorized people, and keep it out of analytics, logs and public pages.
The attorney can correct prefilled information and upload materials.

* An incomplete draft link expires 30 days after it is issued.
* Repeating the original creation request can issue a fresh link to the same draft.
* Issuing a new link does not invalidate earlier links.
* After submission, existing links follow the explicitly linked Order and no
  longer expire, under the normal client editing rules.
* Deleted or superseded targets remain unavailable. A deleted linked Order is
  also unavailable through its old links.

## From draft to Order

A draft appears in EmotionTrac’s normal Drafts workspace. It becomes an Order
only after the attorney satisfies the normal form requirements and submits.
API prefill does not bypass submission validation or create a production project
prematurely.

This API prefills once. There is no partner update endpoint or ongoing synchronization with your system in v1. Later corrections happen through the client edit link.


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