talonic_ingest_process_duplicate
Create a new document for an upload that was skipped as a duplicate. It reuses the existing document's content and values (the file is not read again). The existing document must be visible to the key's person. Needs the ingest permission.
Pass idempotency_key (any unique string, reused on retries) to make a retry safe: the same key within 24 hours returns the first copy instead of creating another. The same key for another document is refused (409).
How an agent uses it
- Returns: { document { id, filename, status } }.
- A 403 names its reason (insufficient_scope, insufficient_role, no_person, person_inactive, workspace_read_only): the key's person must be allowed the same action in the Talonic web app, and an OAuth connection must have granted the scope. Tell the user; do not retry.
Availability
Listed per area (Spec runs, ingest, ingest settings, document organising, collections, saved filters, document types) when your role can use that area of the workspace. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Not read-only. It can add to or change workspace data.
Parameters
| Parameter | Type | Description |
|---|---|---|
| existing_document_id * | string | The document the upload matched (`existing_document_id` from talonic_ingest_skipped_duplicates). |
| filename | string | Name of the new document; default the existing one's. |
| source_connection_id | string | Source to attach it to; default the existing one's. |
| tags | string[] | Tags of the new document; default the existing one's. |
| idempotency_key | string | A unique string for this request; send the same one when retrying so only one copy is made. |
Example
{
"existing_document_id": "<existing_document_id>"
}Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.