---
title: "Fetch All Document Type"
method: GET
path: "/v2/document-type"
tags: ["Contracts"]
---

# Fetch All Document Type

`GET /v2/document-type`

# Fetch All Document Types Available

## Request

### Parameters

| Field | Description | Default |
|-------|-------------|---------|
| `page` | Page number (optional) | 0 |

### Pagination Options

- `page`: Page number (starting from 0)
- `page_size`: Number of items per page

## Response

The response is a `DocumentSubTypeSearchResponse` object with the following structure:

```json
{
    "data": [
        {
            "id": "string",
            "name": "string",
            "type": "DocumentType(Enum)",
            "slug": "string",
            "page": "string",
            "updated_at": "string"
        }
    ],
    "total": "integer",
    "page": "integer",
    "page_size": "integer"
}
```

### Field Descriptions

#### Root Level

| Field | Description |
|-------|-------------|
| `data` | List of document types |
| `total` | Total number of document types |
| `page` | Current page number |
| `page_size` | Number of items per page |

#### Document Type Object (within `data` array)

| Field | Description |
|-------|-------------|
| `id` | ID of the document type |
| `name` | Name of the document type |
| `type` | DocumentType (Enum) |
| `slug` | Document slug |
| `page` | ID of the contract page |
| `updated_at` | Last updated time |



## Notes

- The `page` parameter in the request is zero-indexed, meaning the first page is 0.
- The `DocumentType` field is an Enum. Refer to your API documentation for possible values.
- The exact nature of input and output may vary based on specific system requirements and configurations.

## Query parameters

- `page` integer
- `page_size` integer

## Headers

- `authorization` string, required — The authorization token can be retrieved by calling the OAuth authentication API. The value for this header parameter follows the format "Bearer &nbsp;&nbsp; `access_token`" (excluding the quotes). For example: <br /> `Bearer MZA1YJMYZDKTZTFMMI0ZYZG1LTLMMDGTYTG4NJG2YZC3NJGY`

## Response `200`

Successful Response

- DocumentSubTypeSearchResponse
  - `data` DocumentSubTypeResponse[], required
    - `id` string, required
    - `name` string, required
    - `description` string
    - `type` 'License Agreement' | 'Beta Test Agreement' | 'Proof of Concept Agreement' | 'Statement of Work' | 'Service Level Agreement' | 'Master Service Agreement' | 'Non-Disclosure Agreement (NDA)' | 'Maintenance and Support Agreement (MSA)' | 'Software Development Agreement (SDA)' | 'End User License Agreement (EULA)' | 'Purchase Order' | 'Invoice' | 'Custom' | 'Custom Document' | 'Contract' | 'Service Organization Control 2 (SOC 2)', required — An enumeration.
    - `slug` string, required
    - `page` union, required
      - string
      - PageResponse
        - `id` string, required
        - `slug` string, required
        - `name` string, required
        - `sections` SectionResponse[], required
          - `id` string, required
          - `name` string, required
          - `table` TableResponse
            - `id` string, required
            - `slug` string, required
            - `type` 'TABLE' | 'TASK', required — An enumeration.
            - `page_size` integer
            - `entity_type` EntityTypeResponse, required
              - …
          - `sequence` integer, required
          - `is_hidden` boolean
          - `created_at` string, date-time, required
          - `updated_at` string, date-time, required
          - `fields` FieldResponse[]
            - `id` string
            - `name` string, required
            - `item_slug` string
            - `is_table` boolean
            - `item_type` 'OBJECTID' | 'TEXT' | 'RICHTEXT' | 'HIGHLIGHTEXT' | 'DATEDELTA' | 'DATE' | 'SINGLESELECT' | 'BINARY' | 'MULTISELECT' | 'PHONE' | 'EMAIL' | 'USER' | 'TEAM' | 'NUMBER' | 'FILE' | 'URL' | 'CURRENCY' | 'ACTION' | 'TABLE' | 'CATEGORIES' | 'ENTITYRELATION' | 'TAGS' | 'PICKLISTSELECT' | 'IDENTITY' | 'IDENTITYLIST' | 'CLAUSE' | 'RISKSEVERITY' | 'DASHBOARD' | 'TABLE_LOOKUP' | 'ENTITY_REFERENCE' | 'CHILD_ENTITY' | 'DOCUMENT_SUBTYPE' — An enumeration.
            - `item_args` object
            - `description` string
            - `generate_ai_summary` boolean
            - `is_hidden` boolean
            - `is_summary` boolean
            - `item` ItemResponse, required
              - …
            - `position` CreatePosition, required
              - …
        - `sequence` integer, required
        - `created_at` string, date-time, required
        - `updated_at` string, date-time, required
        - `is_hidden` boolean, required
    - `is_contract` boolean, required
    - `updated_at` string, date-time, required
  - `total` integer, required
  - `page` integer, required
  - `page_size` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/expent/apis/expent-apis.md) · [All operations](https://skmtc.dev/expent/apis/expent-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/expent/expent-apis/revisions/ce1d50af5e2c/schema)
