Skip to main content
POST
/
cases
/
{case_id}
/
documents
Upload a document
curl --request POST \
  --url https://api.example.com/v1/cases/{case_id}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form type=death_certificate
{
  "data": {
    "id": "01K5XB07CJ5T22HRYE78AN7DEF",
    "type": "death_certificate",
    "file_name": "death_cert_scan.pdf",
    "file_size_bytes": 245000,
    "mime_type": "application/pdf",
    "status": "uploaded",
    "uploaded_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

case_id
string
required

Unique case identifier (ULID format).

Body

multipart/form-data
file
file
required

The document file.

type
enum<string>
required
Available options:
death_certificate,
probate_document,
bank_document,
credit_report,
birth_certificate,
deceased_id,
executor_id,
property_report,
will,
trust_documents,
other

Response

Document uploaded.

data
object