Sources

Ingest a document via a standalone source API key

Multipart upload of one document (≤50 MB), authenticated by a source's own Authorization: Bearer tlnc_... API key — no source id in the path, the key resolves it. Duplicate files (by content hash) return a duplicate status with the existing document's id. A narrower sibling of POST /v1/sources/{id}/documents: the queued response has no processing_mode/source_id, and links carries only document (no source link). Accepts every file type the extraction pipeline reads (documents, spreadsheets, presentations, images, mail, text, HTML/XML/JSON and zip archives); any other type is refused with 400, and the message lists the accepted extensions.

post/v1/ingest

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Request body multipart/form-data

object required
file, string binary required

The document file. Max 50 MB.

batch_id, string

Optional caller grouping key stamped on the document (documents.client_batch_id).

metadata, string

Optional JSON string of a FLAT object { [key]: string | number | boolean | null } (nested objects/arrays rejected 400; ≤50 keys, key ≤128, string value ≤1024), stamped on the document as documents.client_metadata.

Response

Document ingested (or duplicate detected).

object required
document_id, string uuid

When status is duplicate, the id of the linked-duplicate row created for this upload (see existing_document_id for the canonical).

filename, string

The uploaded file's own name.

size_bytes, integer nullable

The uploaded file's own size in bytes.

status, 'queued' | 'duplicate'
existing_document_id, string uuid nullable

Present when status is duplicate — the canonical document this upload deduplicated to.

message, string

Present when status is duplicate.

links, object

Changes

No recorded changes to this operation across all 32 revisions of this API.