Skip to main content

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.

GET/v1/sources/:id/keys
POST/v1/sources/:id/keys

Body

namestringKey name.
expires_atstringISO 8601 date the key stops working.
PATCH/v1/sources/:id/keys/:keyId
POST/v1/sources/:id/keys/:keyId/rotate
DELETE/v1/sources/:id/keys/:keyId

Send 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/ingest with 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 the extract scope.
  • POST /v1/extract with file or file_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/run with files or file_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?+
No. It carries no scope, so it can only send files. Read documents with a workspace key or an OAuth token that has documents:read.
What happens to files sent before a key is revoked?+
They stay in the source as documents. Revoking stops new uploads only.
Can I send a URL instead of a file with an ingest key?+
An ingest key sends files only. To have Talonic fetch a URL, use POST /v1/extract with file_url or POST /v1/run with file_urls.