Download Attachments
Downloads a document a session delivered with its results — the bytes, exactly as the source issued them.
Where the id comes from
A document is reported inside the record it belongs to, never in a list of its own, and its id is the attachment_id for this call:
Abbreviated, from Spain Public Administration’s results — every value is the one the full example carries, with the rest of the document cut away:
The complete object, in its place in the results, is data.employment.labor_check.attachments — expand it in the response explorer beside Get Session Results and you are looking at the same document this endpoint downloads. In Financial Rider the same object sits under each direct debit, in its results.
content_hash is the SHA-512 of the bytes you receive, so you can verify the file you stored is the file we read, and metadata carries whatever the source publishes for checking it at origin — for the Social Security report, the CSV code the document itself prints. content_type says what the file is: a PDF for an official report, whatever the bank issued for a receipt.
When to call it
- Once the session is closed. An open session answers
412; one whose last connection is still delivering answers202— call again shortly. - Rate limit (
429). One download every 5 seconds per document.
Call it from your backend: it takes your application secret, which must never reach your customer’s browser.
Authentication
Path parameters
Response
200 OK
The file, as the source issued it.