---
title: "List all documents"
method: GET
path: "/ats/{connection_id}/document"
tags: ["ats", "document"]
---

# List all documents

`GET /ats/{connection_id}/document`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/ats/{connection_id}/document`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required

## Query parameters

- `limit` number
- `offset` number
- `updated_gte` string, date-time
- `sort` 'name' | 'updated_at' | 'created_at'
- `order` 'asc' | 'desc'
- `query` string
- `application_id` string
- `candidate_id` string
- `job_id` string
- `type` 'RESUME' | 'COVER_LETTER' | 'OFFER_PACKET' | 'OFFER_LETTER' | 'TAKE_HOME_TEST' | 'OTHER'
- `fields` string[]
- `raw` string

## Response `200`

Successful

- AtsDocument[]
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `document_url` string: This link expires after 1 hour.
  - `document_data` string: base64 encoded file contents used for create/update actions. Use this field to send an attachment e.g. a resume, a profile, or other text content
  - `filename` string
  - `type` 'RESUME' | 'COVER_LETTER' | 'OFFER_PACKET' | 'OFFER_LETTER' | 'TAKE_HOME_TEST' | 'OTHER'
  - `candidate_id` string
  - `application_id` string
  - `job_id` string
  - `user_id` string: (reference to HrisEmployee)
  - `metadata` AtsMetadata[]
    - `id` string
    - `slug` string: Actual textual value of the slug
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
