Skip to main content
POST
Create a case

Authorizations

Authorization
string
header
required

API key authentication. Use format: Authorization: Bearer tavrn_sk_live_... Live keys (tavrn_sk_live_...) work only against https://enterprise.tavrn.ai; sandbox test keys (tavrn_sk_test_..., from https://sandbox.tavrn.ai) work only against https://sandbox.tavrn.ai.

Headers

Tavrn-Version
string

Dated API version (YYYY-MM-DD) to apply to this request. Defaults to the version pinned to the API key, then to the baseline 2026-10-16. Unknown values return 400 invalid_api_version. See Guides > Versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-10-16"

Idempotency-Key
string

Optional opaque key (1-255 characters, a UUID v4 is recommended) that makes a POST safe to retry. Scoped to your organization and kept for 24 hours. A retry with the same key and the same body replays the original status and body with Idempotent-Replayed: true; the same key with a different body returns 422 idempotency_key_reused_with_different_payload; a retry while the first attempt is still running returns 409 idempotency_key_in_use. Only 2xx and 4xx outcomes are stored - a 5xx releases the key so the retry executes again. See the Idempotent requests guide.

Required string length: 1 - 255

Body

application/json
title
string
required

Case title

Required string length: 1 - 500
Example:

"Jane Doe v. ACME Corp"

client_name
string
required

Client's name

Required string length: 1 - 200
Example:

"Jane Doe"

description
string

Case description

Maximum string length: 5000
client_date_of_birth
string<date>

Client's date of birth (YYYY-MM-DD)

client_address
string

Client's address

Maximum string length: 500
client_phone
string

Client's phone number

Maximum string length: 50
client_email
string<email>

Client's email address

date_of_injury
string<date>

Date of injury (YYYY-MM-DD, must be in the past)

deposition_date
string<date>

Deposition date (YYYY-MM-DD)

case_category
enum<string>
default:personal_injury

Case category (defaults to personal_injury)

Available options:
personal_injury,
motor_vehicle_accident,
medical_malpractice,
workers_compensation,
product_liability,
premises_liability,
wrongful_death,
other
status
enum<string>
default:active

Case status (defaults to active)

Available options:
active,
pending,
closed
external_id
string

External identifier for client mapping

Maximum string length: 255
metadata
object

Custom JSON object returned unchanged in case responses. Maximum 16 KB (16,384 UTF-8 bytes) of serialized JSON.

Example:
owner_email
string<email> | null

Email of the case owner. Must match a user in your organization, otherwise 400 validation_error.

Maximum string length: 255
Example:

"jane.smith@example.com"

interested_parties
string<email>[]

Users to add as interested parties, by email. Each gets access to the case and its notifications. Every email must match a user in your organization, otherwise 400 validation_error. The owner's email is ignored.

Maximum array length: 50
Maximum string length: 255
Example:
cms_external_id
string

ID of a case in your connected CMS. Creates the case linked to it; if that CMS case is already linked, returns the existing case with 200. Fails with 400 unless your organization has exactly one active CMS connection and the CMS has this case.

Required string length: 1 - 255
Example:

"48213"

Response

The cms_external_id case is already linked; the existing case is returned.

id
string
required

Unique case identifier

Example:

"case_abc123"

case_number
string
required

Auto-generated case number

Example:

"EI-2025-0001"

title
string
required

Case title

Example:

"Jane Doe v. ACME Corp"

client_name
string
required

Client's name

Example:

"Jane Doe"

case_category
enum<string>
required

Case category

Available options:
personal_injury,
motor_vehicle_accident,
medical_malpractice,
workers_compensation,
product_liability,
premises_liability,
wrongful_death,
other
Example:

"personal_injury"

status
enum<string>
required

Case status

Available options:
active,
pending,
closed,
archived
Example:

"active"

created_at
string<date-time>
required

Creation timestamp (ISO 8601)

Example:

"2025-02-01T12:34:56Z"

updated_at
string<date-time>
required

Last update timestamp (ISO 8601)

Example:

"2025-02-01T12:34:56Z"

metadata
object | null
required

Custom JSON object supplied for this case, or null when unset.

Example:
owner_email
string<email> | null
required

Email of the case owner, or null when the API key owns the case.

Example:

"jane.smith@example.com"

interested_parties
string<email>[]
required

Emails of the case's interested parties: users who can access the case and receive its notifications. Excludes the owner, who always does.

Example:
description
string | null

Case description

Example:

"Rear-end MVA with cervical injury"

client_date_of_birth
string<date> | null

Client's date of birth (YYYY-MM-DD)

Example:

"1989-04-12"

client_address
string | null

Client's address

Example:

"123 Main St, Austin, TX 78701"

client_phone
string | null

Client's phone number

Example:

"+1-512-555-0101"

client_email
string<email> | null

Client's email address

Example:

"jane@example.com"

date_of_injury
string<date> | null

Date of injury (YYYY-MM-DD)

Example:

"2025-01-10"

deposition_date
string<date> | null

Deposition date (YYYY-MM-DD)

Example:

"2025-06-15"

external_id
string | null

External identifier for client mapping

Example:

"expert-institute-12345"