Download the rail's document for a contract
Proxies consultar-informacoes-contrato-trabalhador (Manual 004 §2.2): the document the payroll rail holds for a contract, selected by tipoArquivo (2..5). The response is the document itself, streamed in the content type the rail declared — not a JSON envelope with base64. tipoArquivo is required and validated locally, so an out-of-domain value never spends rail quota. Nothing is cached: the value of this operation is being the rail’s current truth. The route accepts no CPF, because the rail operation has no such parameter.
Authorizations
JWT bearer token issued by the identity provider.
Path Parameters
Rail contract number (Manual 004 §2.2.2 p.18: Texto, 15).
1 - 15"99999999999AN1"
Query Parameters
Document selector, published domain 2..5 (Manual 004 §2.2.2 p.18). REQUIRED — there is no default.
2 <= x <= 52
Response
The contract document, in the content type the rail declared.
The response is of type file.

