Welcome to the rail Developer Guide!
rail API Specification (1.1.2)
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/
https://sandbox.layer2financial.com/api/
https://platform.layer2financial.com/api/
Optional Unique ID per request, useful for fault resolution/diagnosis and audit.
Unique ID used to safely retry an operation. See idempotency section for more details.
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/documents/{document_id}
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/documents/{document_id}
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/documents/{document_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/documents/{document_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-H 'x-l2f-idempotency-id: string' \
-H 'x-l2f-request-id: string' \
-F file=string{ "data": { "id": "905666e7-2d5b-4ac4-bd96-e02675fc678f" } }
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/documents/{document_id}/download
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/documents/{document_id}/download
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/documents/{document_id}/download
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/documents/{document_id}/download' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-l2f-request-id: string'