Skip to main content
GET
/
v1
/
document-templates
List document templates
curl --request GET \
  --url https://api.beltic.com/v1/document-templates
{
  "data": [
    {
      "type": "document-template",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "attributes": {
        "name": "<string>",
        "extraction_config": {
          "enabled": true,
          "schema": "<unknown>",
          "extraction_rules": "<string>"
        },
        "fraud_config": {
          "enabled": true
        },
        "description": "<string>",
        "status": "published",
        "is_active": true,
        "created_at": "<string>",
        "updated_at": "<string>"
      },
      "relationships": {}
    }
  ],
  "meta": {
    "page": {
      "cursors": {
        "start": "<string>",
        "end": "<string>"
      },
      "hasNextPage": true,
      "hasPreviousPage": true,
      "total": 123
    }
  },
  "links": {
    "self": "<string>",
    "first": "<string>",
    "next": "<string>",
    "prev": "<string>",
    "last": "<string>"
  }
}

Query Parameters

page[size]
string

Number of items per page (default: 15)

Example:

"15"

page[after]
string

Cursor for fetching items after this point

Example:

"eyJ2YWx1ZXMiOnsiY3JlYXRlZF9hdCI6IjIwMjUtMTAtMjJUMjI6MTM6NDguMTQ5WiJ9LCJpZCI6IjNkZjk3MWQwLWNkNTYtNDAwNi05YmM0LTFjYmMzMjc1OWI2ZiJ9"

page[before]
string

Cursor for fetching items before this point

Example:

"eyJ2YWx1ZXMiOnsiY3JlYXRlZF9hdCI6IjIwMjUtMTAtMjJUMjI6MTM6NDguMTQ5WiJ9LCJpZCI6IjNkZjk3MWQwLWNkNTYtNDAwNi05YmM0LTFjYmMzMjc1OWI2ZiJ9"

page[total]
enum<string>

Include total count in response (may impact performance)

Available options:
true,
false
Example:

"true"

filter[status]
enum<string>

Filter templates by status

Available options:
published
Example:

"published"

filter[is_active]
enum<string>

Filter templates by active state (default: true)

Available options:
true,
false
Example:

"true"

Response

Templates retrieved successfully

data
object[]
required
meta
object
required