Your first API call
Load the organization's documents using cURL.
The example loads documents via POST /v2/documents. Prepare API key and company identification number (IČO) of the company to which the integration has access.
1. Prepare the API key
In the following command, replace YOUR_API_KEY with your API key from Doklado. An example is a standalone cURL command that you can copy into the terminal.
2. Load the documents
Replace the sample company identification number (IČO) 12345678 with your own company identification number (IČO). Adjust the date range according to the data in your company.
curl --request POST --fail-with-body --silent --show-error \
'https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v2/documents' \
--header 'api_key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"data": {
"organizationId": "12345678",
"dateFrom": "2026-09-01T00:00:00Z",
"dateTo": "2026-09-14T00:00:00Z",
"dateType": "issue",
"orderBy": "issue_date",
"orderByDescending": false,
"resourceTypes": ["receipt", "invoice"]
}
}'
The field organizationId has type string. Keep the quotation marks even for the numeric company identification number (IČO). The envelope data is part of the input schema.
3. Process the response
Check the HTTP status and the success and code fields in the response. data contains an array of documents following the DocumentV2 or InvoiceV2 schema. HTTP 200 alone does not confirm application-level success.
For the next page, use the returned field searchAfter according to the instructions Paging and Errors. The code APP_NO_MORE_DATA indicates that no more data is available.
An empty result can correspond to the selected period. Verify company identification number (IČO), filters and document availability.
Next steps
See How to work properly with API cURL examples of working with both export status and date range and procedures to limit repeated consumption.
In the overview of endpoints you will find operations on document details, attachments, export and issued invoices. Complete data models and answers are in the REST API reference section.
Source of technical parameters: Doklado OpenAPI specification.