Skip to main content
GET
/
api
/
contacts
/
{contactId}
/
documents
/
download
Redirect to a signed download URL for a document
curl --request GET \
  --url https://your-instance.example.com/api/contacts/{contactId}/documents/download \
  --header 'Authorization: Bearer <token>'
{
  "error": "Attachment not found",
  "message": "Attachment not found"
}

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

Query Parameters

key
string
required

R2 storage key of the document.

fileName
string

Filename to suggest to the browser.

Response

Redirect to signed download URL