List Documents
Retrieve a paginated list of documents with optional filtering. Uses cursor-based pagination for efficient data retrieval.
Pagination:
- Use
page[size]to control results per page (default: 15, max: 100) - Navigate using
page[after]orpage[before]cursors from the response - Set
page[total]=trueto include total count (may impact performance on large datasets) - Response includes
linksfor easy navigation (first, prev, next, last)
Filtering:
- Filter by
statusto get documents in a specific processing state or multiple states (comma-separated) - Filter by
template_idto get documents using a specific template
Sparse Fieldsets (JSON:API):
- Use
fields[document]with a comma-separated list to return only specific fields (attributes and relationships) idandtypeare always returned; an empty value returns onlyid/type- Omit the parameter to return all fields
- Unknown field names return
400 Bad Request
Example Queries:
- Single status:
GET /v1/documents?page[size]=20&filter[status]=processed&page[after]=eyJ2YWx1ZXM... - Multiple statuses:
GET /v1/documents?page[size]=20&filter[status]=pending,submitted,processing,processed,failed,redacted - Sparse fields:
GET /v1/documents?fields[document]=status,file
Authorizations
API key for authentication. Access https://console.beltic.com/ to obtain your API key.
Query Parameters
Number of items per page (default: 15)
^\d+$"15"
Cursor for fetching items after this point
"eyJ2YWx1ZXMiOnsiY3JlYXRlZF9hdCI6IjIwMjUtMTAtMjJUMjI6MTM6NDguMTQ5WiJ9LCJpZCI6IjNkZjk3MWQwLWNkNTYtNDAwNi05YmM0LTFjYmMzMjc1OWI2ZiJ9"
Cursor for fetching items before this point
"eyJ2YWx1ZXMiOnsiY3JlYXRlZF9hdCI6IjIwMjUtMTAtMjJUMjI6MTM6NDguMTQ5WiJ9LCJpZCI6IjNkZjk3MWQwLWNkNTYtNDAwNi05YmM0LTFjYmMzMjc1OWI2ZiJ9"
Include total count in response (may impact performance)
true, false "true"
Filter documents by status. Supports single value or comma-separated values (e.g., "pending,submitted,processing,processed,failed,redacted")
"pending,submitted,processing,processed,failed,redacted"
Filter documents by template ID
"123e4567-e89b-12d3-a456-426614174000"
Sparse fieldset: comma-separated list of document fields (attributes and relationships) to return. An empty value returns only id/type. Omit the parameter to return all fields.
"status,file"