documents

createDocumentFromUpload

Step 2 of file ingest. After the file is uploaded via the PUT URL from createDocumentIngestSession, call this to start the async conversion. Returns { jobId, documentId } immediately — the document is created as a draft and progressively populated as the worker processes the file. Poll getDocumentIngestJob({ jobId }) to track progress. Idempotent: calling twice with the same sessionId returns the same job/document.

post/tools/createDocumentFromUpload

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/createDocumentFromUpload
  • Auth: HTTP bearer

Request body

sessionIdstring required

From createDocumentIngestSession.

projectIdstring required

Must match the project the session was created for.

folderIdstring

Optional folder. Must belong to projectId.

titlestring

Optional document title. Defaults to the upload's filename without extension.

changeSummarystring

Optional changelog message for the version snapshot taken when the ingest finalises.

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.