Documents

File a file attached to a chat

Files a file attached to a chat (POST /ask/attachments) as a document of the given kind, under every record in links. The file stays on the chat shelf until it empties, so filing it twice files two documents.

post/api/v1/documents/attached

Request

  • Base URL: http://localhost:5180
  • URL: http://localhost:5180/api/v1/documents/attached
  • Auth: API key in cookie better-auth.session_token

Request body

attachmentIdstring required

The id POST /ask/attachments answered with.

kind'lease' | 'lease_annex' | 'inspection_report' | 'invoice' | 'receipt' | 'quote' | 'supplier_invoice' | 'certificate' | 'id_document' | 'proof_of_income' | 'insurance_policy' | 'deed' | 'floor_plan' | 'photo' | 'correspondence' | 'formal_notice' | 'statement' | 'tax_document' | 'lease_termination' | 'lease_amendment' | 'other' required

What the document is.

namestring

What to call it in the filing. The file’s own name when left out.

Response

The document it is now filed as.

okunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.