For the complete documentation index, see llms.txt. This page is also available as Markdown.

Prepare document upload (company)

GraphQL endpoint: /company

Reserves space in the calling company's document repository and returns a presigned POST policy to upload the file with. The reservation holds the declared bytes against the quota but stays invisible until confirmDocumentUpload claims it; an upload that never completes is reclaimed by the sweeper.

Query

mutation ($fileName: String!, $contentType: String!, $byteSize: String!) {
  prepareDocumentUpload(fileName: $fileName, contentType: $contentType, byteSize: $byteSize) {
    documentId
    url
    fields
  }
}

Variables

{
  "byteSize": "1024",
  "contentType": "application/pdf",
  "fileName": "invoice.pdf"
}

Response

Last updated

Was this helpful?