Skip to main content
Granular document operations (parse, split, classify, extract, and ground) all accept a source field in the request body. The source is a discriminated union on type.

URL source ("type": "url")

Point an operation at any reachable https:// URL. Use a presigned HTTPS URL for private object storage:
Fields:
  • url — https:// only. NDI verifies the resolved hostname.
  • file_name — Chooses the processing lane and appears in result metadata.

Upload source ("type": "upload")

Stage bytes with POST /v1/uploads, then pass the handle:
Lifecycle:
  • Ordinary uploads have no automatic expiry, including unused uploads.
  • Explicit deletion of the consuming job or tenant removes their bytes. Deleting a workspace leaves standalone uploads its jobs read; erase them with DELETE /v1/uploads/{upload_id}. Zero-retention uploads use isolated temporary staging and are deleted automatically.
  • Upload IDs are scoped to your API key.
The SDK accepts the create_upload / createUpload response directly as a parse/extract/split/classify/ground source.

Workspace file source ("type": "workspace_file")

Reference a file already stored in a workspace. Granular operations read the raw source bytes — the file does not need to be ingested first.

Parse result source ("type": "parse_result")

On deployments that enforce malware scanning, parse_result sources return 409 scan_required; submit the original input. See malware scanning. On deployments without that enforcement, reuse a successful Parse job without paying for the parse twice:
The referenced job must belong to the same API key, have kind: "parse" and status: "succeeded", and still have an available result.

Workspace file uploads

Uploading into a workspace is a different endpoint — not POST /v1/uploads.
This returns a Job with kind: "file_upload". The file persists until you delete it, its workspace or its account (Zero retention remains separate); see Data retention. Large files use upload sessions. Browser clients use upload grants. Workspace .txt sources may be up to 1 GiB. The SDK automatically uses a resumable session for these files. When a workspace .txt is too large to return inline (rendered text over 1 MiB), Parse keeps the complete UTF-8 text as a streamed content artifact: document.markdown is then a preview and ParseResult.document.content_url streams the full text. Smaller files return the complete text inline and content_url is null. Split, Extract, and Ground retain their 256 MiB operation limit and return file_size_too_large above it.

Which upload to use?