Skip to main content
POST
/
api
/
contacts
/
{contactId}
/
documents
/
upload
Upload a new document for a contact (multipart)
curl --request POST \
  --url https://your-instance.example.com/api/contacts/{contactId}/documents/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'documentType=ID Proof' \
  --form 'notes=Driver license front + back' \
  --form file='@example-file'
{
  "success": true,
  "document": {
    "_id": "64f0a1b2c3d4e5f6a7b8ca40",
    "storageKey": "org/64f0a1b2c3d4e5f6a7b8c9d3/contact/64f0a1b2c3d4e5f6a7b8c9d0/2026/id-proof.pdf",
    "filename": "id-proof.pdf",
    "contentType": "application/pdf",
    "documentType": "ID Proof"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

contactId
string
required

Body

multipart/form-data
file
file
required

Document file (max 25 MB).

documentType
string
required

Must match a name in the organization's configured documentTypes.

notes
string

Response

Document uploaded

success
enum<boolean>
required
Available options:
true
document
object
required
Example:
{
"_id": "64f0a1b2c3d4e5f6a7b8ca40",
"storageKey": "org/64f0a1b2c3d4e5f6a7b8c9d3/contact/64f0a1b2c3d4e5f6a7b8c9d0/2026/id-proof.pdf",
"filename": "id-proof.pdf",
"contentType": "application/pdf",
"size": 184320,
"documentType": "ID Proof",
"uploadedAt": "2026-05-12T10:00:00.000Z",
"uploadedBy": "64f0a1b2c3d4e5f6a7b8c9d4",
"notes": "Driver license, front + back",
"signedUrl": "https://example-r2.signed/.../id-proof.pdf?X-Amz-Expires=600"
}