documents

createDocumentIngestSession

Step 1 of file ingest. Mint a single-use PUT upload URL for a large file (PDF, DOCX, plain text, or markdown — up to 150 MB). Returns { sessionId, uploadUrl, expiresAt, maxBytes }. Upload the raw bytes to uploadUrl with PUT, then call createDocumentFromUpload({ sessionId, projectId }) to start the conversion. The file is auto-deleted once the document is created.

post/tools/createDocumentIngestSession

Request

  • Base URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1
  • URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1/tools/createDocumentIngestSession
  • Auth: HTTP bearer

Request body

projectIdstring required

Target project for the resulting document.

folderIdstring

Optional folder to drop the document into. Must belong to projectId.

fileNamestring required

Original filename, e.g. report.pdf.

mimeTypestring required

One of: application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX), text/plain, text/markdown.

sizeBytesnumber

Optional file size hint in bytes. Rejected up-front if it exceeds 150 MB.

Response

Tool result (shape varies per tool — refer to the tool's docs for the exact return value).

object required

Changes

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