Source Ingest Keys
Give a scanner, script or partner a key that only sends files into one source; rotate or revoke it anytime. Which uploads keep files in your workspace.
An ingest key sends files into one API source and nothing else. A key issued with POST /v1/sources/:id/keys carries no scope, so it cannot read documents, start runs or change settings; it can only send files to POST /v1/ingest, and they land in its own source. A source's key is never accepted for another source. Revoking a key stops it on the next request; rotating issues a new key with the same name and revokes the old one at once.
Managing keys needs the team:write scope (reads take read or team:read). An owner manages every key of a source; anyone else only the keys they issued. In an enterprise workspace keys are issued by Talonic and live at most 90 days. Each route also answers at /v1/sources/api/:id/keys.
/v1/sources/:id/keys/v1/sources/:id/keysBody
/v1/sources/:id/keys/:keyId/v1/sources/:id/keys/:keyId/rotate/v1/sources/:id/keys/:keyIdSend a file with an ingest key
curl -X POST https://api.talonic.com/v1/ingest \
-H "Authorization: Bearer $SOURCE_INGEST_KEY" \
-F "file=@invoice.pdf"Which ways of sending files keep them in your workspace
POST /v1/ingestwith an ingest key: the file becomes a document of the key's source and is extracted. Unattended, no person signs in.POST /v1/sources/:id/documents: the same, with a workspace key that has theextractscope.POST /v1/extractwithfileorfile_url: the file is fetched (for a URL), kept as a document and extracted; with a source's key it lands in that source.POST /v1/runwith files orfile_urls: the documents are kept and run through a Spec.- A connected source with automatic sync: files arrive on their own as they change in the system.
POST /v1/integrations/:connector/authorize: connects an account; the person signs in once, and the connection keeps files coming afterwards.
Frequently asked questions
Can an ingest key read the documents it sent?+
documents:read.What happens to files sent before a key is revoked?+
Can I send a URL instead of a file with an ingest key?+
POST /v1/extract with file_url or POST /v1/run with file_urls.