{
  "openapi": "3.1.0",
  "info": {
    "title": "EmotionTrac Partner Intake API",
    "version": "1.0.0",
    "description": "Create a prefilled Client Intake Draft and track submission. Your integration maps fields; attorneys complete the normal EmotionTrac form. Only firm name and attorney email, first name and last name are required form fields. Server-to-server use only."
  },
  "servers": [
    {
      "url": "https://intake.emotiontrac.com/api/partner/v1"
    }
  ],
  "security": [
    {
      "partnerKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "partnerKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Partner-specific key supplied securely by EmotionTrac."
      }
    }
  },
  "paths": {
    "/drafts": {
      "post": {
        "operationId": "createDraft",
        "summary": "Create a Client Intake Draft",
        "tags": [
          "Client Intake Drafts"
        ],
        "description": "64 KiB maximum JSON body. requestId identifies one intentional form within your partner account. Identical retries return the same draft without overwriting attorney edits or queuing duplicate notifications; changed original data returns 409. sendEmail defaults to false and controls only the initial email. Normal reminders continue. Supplied links are not fetched. Dates must be real YYYY-MM-DD dates and must be today or later when creating a new draft. Identical retries of an existing request remain valid as time passes. Phone fields accept US numbers with 10 digits and optional leading 1. Link fields contain one HTTP(S) URL per line (maximum 2048 characters each), without embedded credentials. Optional fields do not need to satisfy completion-only requirements until the attorney submits. All responses are private, no-store.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "sendEmail": {
                    "default": false,
                    "type": "boolean"
                  },
                  "form": {
                    "type": "object",
                    "properties": {
                      "clientStatus": {
                        "type": "string",
                        "enum": [
                          "new",
                          "existing"
                        ]
                      },
                      "testType": {
                        "type": "string",
                        "enum": [
                          "Valuation Test",
                          "Liability Test",
                          "Litigation Test",
                          "Litigation Study Plus",
                          "Big Data Litigation Test"
                        ]
                      },
                      "recordingPreference": {
                        "type": "string",
                        "enum": [
                          "I'll record it myself",
                          "Record with EmotionTrac",
                          "I've already booked my recording",
                          "Slide Presentation Video",
                          "I'll submit my materials later",
                          "Other"
                        ]
                      },
                      "contacts": {
                        "type": "object",
                        "properties": {
                          "firmName": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "attorneyFirstName": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "attorneyLastName": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "attorneyEmail": {
                            "type": "string",
                            "maxLength": 254,
                            "format": "email",
                            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                          },
                          "attorneyPhone": {
                            "type": "string",
                            "maxLength": 32
                          },
                          "attorneyMobilePhone": {
                            "type": "string",
                            "maxLength": 32
                          },
                          "additionalContacts": {
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "firstName": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "lastName": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 254,
                                      "format": "email",
                                      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "phone": {
                                  "type": "string",
                                  "maxLength": 32
                                },
                                "role": {
                                  "type": "string",
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "firmName",
                          "attorneyFirstName",
                          "attorneyLastName",
                          "attorneyEmail"
                        ],
                        "additionalProperties": false
                      },
                      "case": {
                        "type": "object",
                        "properties": {
                          "caseName": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "typeOfCase": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "eventType": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "litifyNumber": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "scheduledEventDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "needResultsBy": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "strategy": {
                        "type": "object",
                        "properties": {
                          "caseOverview": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "originalOffer": {
                            "type": "string",
                            "maxLength": 250
                          },
                          "oppositionArguments": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "testingForDamages": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "damages": {
                        "type": "object",
                        "properties": {
                          "economic": {
                            "type": "object",
                            "properties": {
                              "selections": {
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "Funeral and Burial Expenses",
                                    "Household Services Expenses",
                                    "Loss of Business Opportunities or Profits",
                                    "Lost Wages or Earnings Capacity",
                                    "Medical Expenses (Past and Future)",
                                    "Out-of-Pocket Expenses",
                                    "Property Damage",
                                    "Rehabilitation and Therapy Costs",
                                    "Vocational Retraining Costs",
                                    "Other"
                                  ]
                                }
                              },
                              "otherText": {
                                "type": "string",
                                "maxLength": 10000
                              }
                            },
                            "additionalProperties": false
                          },
                          "human": {
                            "type": "object",
                            "properties": {
                              "selections": {
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "Emotional Distress",
                                    "Humiliation and Embarrassment",
                                    "Inconvenience",
                                    "Loss of Consortium or Companionship",
                                    "Loss of Enjoyment of Life",
                                    "Loss of Reputation",
                                    "Mental Anguish",
                                    "Pain and Suffering",
                                    "Physical Impairment, Disfigurement, Scarring and Disability",
                                    "Other"
                                  ]
                                }
                              },
                              "otherText": {
                                "type": "string",
                                "maxLength": 10000
                              }
                            },
                            "additionalProperties": false
                          },
                          "punitive": {
                            "type": "object",
                            "properties": {
                              "selections": {
                                "maxItems": 8,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "Conscious Disregard for Safety of Others",
                                    "Fraudulent Conduct",
                                    "Gross Negligence",
                                    "Malicious Acts",
                                    "Oppression or Abuse of Authority",
                                    "Reckless Indifference",
                                    "Willful Violations of Law",
                                    "Other"
                                  ]
                                }
                              },
                              "otherText": {
                                "type": "string",
                                "maxLength": 10000
                              }
                            },
                            "additionalProperties": false
                          },
                          "economicValuationOptions": {
                            "maxItems": 10,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^(?:\\d+(?:\\.\\d{1,2})?)?$"
                            }
                          },
                          "nonEconomicValuationOptions": {
                            "maxItems": 10,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^(?:\\d+(?:\\.\\d{1,2})?)?$"
                            }
                          },
                          "punitiveValuationOptions": {
                            "maxItems": 10,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^(?:\\d+(?:\\.\\d{1,2})?)?$"
                            }
                          },
                          "genericValuationOptions": {
                            "maxItems": 10,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^(?:\\d+(?:\\.\\d{1,2})?)?$"
                            }
                          },
                          "liabilityParties": {
                            "maxItems": 8,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 255
                            }
                          },
                          "details": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "additionalProperties": false
                      },
                      "objectives": {
                        "type": "object",
                        "properties": {
                          "focusAreas": {
                            "maxItems": 8,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "Contributory Negligence",
                                "Evidence Strength",
                                "Fault or Causation",
                                "Jury Bias or Attitudes",
                                "Legal Strategy Feedback",
                                "Liability",
                                "Witness Credibility",
                                "Other"
                              ]
                            }
                          },
                          "otherText": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "details": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "additionalProperties": false
                      },
                      "audience": {
                        "type": "object",
                        "properties": {
                          "selection": {
                            "type": "string",
                            "enum": [
                              "National Audience",
                              "Custom Audience"
                            ]
                          },
                          "customDetails": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "additionalProperties": false
                      },
                      "materials": {
                        "type": "object",
                        "properties": {
                          "videoLinks": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "supportingLinks": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "aiVoicePreference": {
                            "type": "string",
                            "enum": [
                              "male",
                              "female"
                            ]
                          },
                          "stockMediaOptOut": {
                            "type": "boolean"
                          },
                          "containsSensitiveContent": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sensitiveContentDetails": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "editorNotes": {
                            "type": "string",
                            "maxLength": 10000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "contacts"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "requestId",
                  "form"
                ],
                "additionalProperties": false
              },
              "examples": {
                "minimal": {
                  "summary": "Four required contact fields",
                  "value": {
                    "requestId": "example-request-001",
                    "form": {
                      "contacts": {
                        "firmName": "Example Law Firm",
                        "attorneyFirstName": "Alex",
                        "attorneyLastName": "Taylor",
                        "attorneyEmail": "alex.taylor@example.com"
                      }
                    }
                  }
                },
                "expanded": {
                  "summary": "Optional fields and initial email",
                  "value": {
                    "requestId": "example-request-002",
                    "sendEmail": true,
                    "form": {
                      "clientStatus": "existing",
                      "testType": "Litigation Test",
                      "recordingPreference": "I'll submit my materials later",
                      "contacts": {
                        "firmName": "Example Law Firm",
                        "attorneyFirstName": "Alex",
                        "attorneyLastName": "Taylor",
                        "attorneyEmail": "alex.taylor@example.com",
                        "attorneyPhone": "212-555-0100",
                        "attorneyMobilePhone": "212-555-0101",
                        "additionalContacts": [
                          {
                            "firstName": "Taylor",
                            "lastName": "Lee",
                            "email": "taylor.lee@example.com",
                            "phone": "212-555-0102",
                            "role": "Paralegal"
                          }
                        ]
                      },
                      "case": {
                        "caseName": "Sample v. Example Transport",
                        "typeOfCase": "Personal injury",
                        "eventType": "Mediation",
                        "litifyNumber": "EXAMPLE-1042",
                        "scheduledEventDate": "2099-11-20",
                        "needResultsBy": "2099-11-10"
                      },
                      "strategy": {
                        "caseOverview": "A fictional vehicle collision case for integration testing.",
                        "originalOffer": "250000",
                        "oppositionArguments": "The parties dispute causation.",
                        "testingForDamages": true
                      },
                      "damages": {
                        "economic": {
                          "selections": [
                            "Medical Expenses (Past and Future)"
                          ],
                          "otherText": ""
                        },
                        "human": {
                          "selections": [
                            "Pain and Suffering"
                          ],
                          "otherText": ""
                        },
                        "punitive": {
                          "selections": [],
                          "otherText": ""
                        },
                        "economicValuationOptions": [
                          "0",
                          "100000",
                          "250000",
                          "500000"
                        ],
                        "nonEconomicValuationOptions": [
                          "0",
                          "100000",
                          "250000",
                          "500000"
                        ],
                        "punitiveValuationOptions": [],
                        "genericValuationOptions": [],
                        "liabilityParties": [
                          "Example Transport",
                          "Sample Driver"
                        ],
                        "details": "Evaluate the fictional future care plan."
                      },
                      "objectives": {
                        "focusAreas": [
                          "Evidence Strength",
                          "Liability"
                        ],
                        "otherText": "",
                        "details": "Assess the clarity of the evidence."
                      },
                      "audience": {
                        "selection": "National Audience",
                        "customDetails": ""
                      },
                      "materials": {
                        "videoLinks": "https://example.com/recordings/narrative",
                        "supportingLinks": "https://example.com/materials/case-folder\nhttps://example.com/materials/photos",
                        "aiVoicePreference": "female",
                        "stockMediaOptOut": false,
                        "containsSensitiveContent": false,
                        "sensitiveContentDetails": "",
                        "editorNotes": "Use the materials in the supplied folder."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Identical creation replay; link may be refreshed. Submitted links have null expiry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "draftId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "in_progress",
                        "submitted"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "initialEmail": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "not_requested",
                            "pending",
                            "sent",
                            "failed",
                            "cancelled"
                          ]
                        },
                        "sentAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "sentAt"
                      ],
                      "additionalProperties": false
                    },
                    "editUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "editUrlExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "draftId",
                    "status",
                    "createdAt",
                    "submittedAt",
                    "initialEmail",
                    "editUrl",
                    "editUrlExpiresAt"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "draftId": "c80d2b31-9835-4fe8-a084-c81fedc390d1",
                  "status": "in_progress",
                  "createdAt": "2026-09-23T14:00:00.000Z",
                  "submittedAt": null,
                  "initialEmail": {
                    "status": "not_requested",
                    "sentAt": null
                  },
                  "editUrl": "https://intake.emotiontrac.com/new?edit=EXAMPLE_EDIT_TOKEN",
                  "editUrlExpiresAt": "2026-10-23T14:00:00.000Z"
                }
              }
            }
          },
          "201": {
            "description": "Draft created. Initial email is queued when requested; sent means provider acceptance, not inbox delivery.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "draftId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "in_progress",
                        "submitted"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "initialEmail": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "not_requested",
                            "pending",
                            "sent",
                            "failed",
                            "cancelled"
                          ]
                        },
                        "sentAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "sentAt"
                      ],
                      "additionalProperties": false
                    },
                    "editUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "editUrlExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "draftId",
                    "status",
                    "createdAt",
                    "submittedAt",
                    "initialEmail",
                    "editUrl",
                    "editUrlExpiresAt"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "draftId": "c80d2b31-9835-4fe8-a084-c81fedc390d1",
                  "status": "in_progress",
                  "createdAt": "2026-09-23T14:00:00.000Z",
                  "submittedAt": null,
                  "initialEmail": {
                    "status": "not_requested",
                    "sentAt": null
                  },
                  "editUrl": "https://intake.emotiontrac.com/new?edit=EXAMPLE_EDIT_TOKEN",
                  "editUrlExpiresAt": "2026-10-23T14:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Provide valid JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "invalid_json",
                    "message": "Provide valid JSON."
                  }
                }
              }
            }
          },
          "401": {
            "description": "Use an active partner API key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Use an active partner API key."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Draft not found or no longer available.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "draft_not_found",
                    "message": "Draft not found or no longer available."
                  }
                }
              }
            }
          },
          "409": {
            "description": "The requestId was used with different creation data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "request_id_conflict",
                    "message": "The requestId was used with different creation data."
                  }
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds 64 KiB.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "request_too_large",
                    "message": "Request body exceeds 64 KiB."
                  }
                }
              }
            }
          },
          "415": {
            "description": "Use Content-Type: application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "unsupported_media_type",
                    "message": "Use Content-Type: application/json."
                  }
                }
              }
            }
          },
          "422": {
            "description": "Correct the indicated fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "validation_error",
                    "message": "Correct the indicated fields."
                  }
                }
              }
            }
          },
          "429": {
            "description": "60 requests per minute per partner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "60 requests per minute per partner."
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "Retry the same requestId and body later.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "temporarily_unavailable",
                    "message": "Retry the same requestId and body later."
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/drafts/{draftId}": {
      "get": {
        "operationId": "getDraftStatus",
        "summary": "Get draft status",
        "tags": [
          "Client Intake Drafts"
        ],
        "description": "Partner-scoped lifecycle and initial-email state. Does not generate links, reset activity or expose staff data. Unknown, other-partner, deleted or superseded drafts and deleted linked Orders return the same 404.",
        "parameters": [
          {
            "name": "draftId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "draftId from the creation response."
          }
        ],
        "responses": {
          "200": {
            "description": "Current lifecycle; submittedAt is null until submission.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "draftId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "in_progress",
                        "submitted"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "initialEmail": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "not_requested",
                            "pending",
                            "sent",
                            "failed",
                            "cancelled"
                          ]
                        },
                        "sentAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "sentAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "draftId",
                    "status",
                    "createdAt",
                    "submittedAt",
                    "initialEmail"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "draftId": "c80d2b31-9835-4fe8-a084-c81fedc390d1",
                  "status": "submitted",
                  "createdAt": "2026-09-23T14:00:00.000Z",
                  "submittedAt": "2026-09-24T10:00:00.000Z",
                  "initialEmail": {
                    "status": "not_requested",
                    "sentAt": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Use an active partner API key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Use an active partner API key."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Draft not found or no longer available.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "draft_not_found",
                    "message": "Draft not found or no longer available."
                  }
                }
              }
            }
          },
          "429": {
            "description": "60 requests per minute per partner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "60 requests per minute per partner."
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "Retry the same requestId and body later.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "error": {
                    "code": "temporarily_unavailable",
                    "message": "Retry the same requestId and body later."
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  }
}
