---
title: "List employment files"
method: GET
path: "/v1/employments/{employment_id}/files"
tags: ["Employments", "Files"]
---

# List employment files

`GET /v1/employments/{employment_id}/files`

## Request

- Base URL: `https://gateway.remote.com`
- URL: `https://gateway.remote.com/v1/employments/{employment_id}/files`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `https://gateway.remote.com/company.manage`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `document:read`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `all:read`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `all:write`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `document:read`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `all:read`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `all:write`
  - HTTP bearer

Lists files associated with a specific employment.

Supports filtering by file type and sub_type.

These are the most common types. Other types and sub types exist, and each file in the response shows its `type` and `sub_type`.

- `contract`: signed contracts. For contractors, this includes contractor services agreements (CSAs), statements of work (SOWs), and custom contractor agreements created from a template. A contractor's contract only appears once everyone has signed it.
- `document`: other documents. Files with `sub_type: employer_managed_document` are documents the company created in Remote from one of its templates and had signed.
- `tax_document`: tax forms, such as W-9s (`sub_type: w_9_form`).
- `id`: identity documents, such as `sub_type: personal_id`.

For contractors, some documents exist both as a file and as a contract document, with different IDs. The API doesn't link them. To avoid storing the same document twice, read [Working with Files](https://developer.remote.com/docs/working-with-files).

## Authentication

This endpoint accepts any one of the following token types:

- **Company-scoped access token** (`OAuth2AuthorizationCode`) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).
- **Company-scoped access token (assertion)** (`OAuth2CompanyManagerAssertion`) — obtained through the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant for a company manager. See [OAuth Assertion](https://developer.remote.com/docs/authorization-method-oauth-assertion).
- **Customer API token** (`CustomerAPIToken`) — generated by the customer on their Integration Settings page, with the scopes they choose there. See [Authorization for customers](https://developer.remote.com/docs/authorization-for-customers).

## Scopes

Any one of the scopes in a token type's row is enough. `all:read` and `all:write` work too.

| Token type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage employment documents (`employment_documents`) | View documents (`document:read`) | Manage documents (`document:write`) |
| Company-scoped access token (assertion) | Manage employment documents (`employment_documents`) | View documents (`document:read`) | Manage documents (`document:write`) |
| Customer API token | Manage employment documents (`employment_documents`) | View documents (`document:read`) | Manage documents (`document:write`) |

## Path parameters

- `employment_id` string, required

## Query parameters

- `type` string
- `sub_type` string
- `page` integer
- `page_size` integer

## Response `200`

Success

- ListFilesResponse: Response schema listing many files
  - `data` object
    - `current_page` integer: The current page among all of the total_pages
    - `files` EmploymentFile[]
      - `id` string, required: The unique identifier (UUID) of the file.
      - `inserted_at` string, date-time, required: UTC date time in [ISO 8601][] format. [ISO 8601]: https://en.wikipedia.org/wiki/ISO_8601
      - `name` string, required: The file name including extension (e.g., "id.pdf", "contract.pdf").
      - `sub_type` string, nullable: A more specific classification of the file within its type (e.g., "personal_id" within type "id", or "ir_35" within type "contract"). Null if no sub-type applies.
      - `type` 'annual_leave' | 'background_check' | 'bank_account_holder_name' | 'bereavement_leave' | 'contractor_invoice' | 'direct_offboarding' | 'document_scan' | 'expense' | 'external_contract' | 'generic_employment_document' | 'health_check' | 'i9_document' | 'id' | 'job' | 'leave_of_absence' | 'marriage_leave' | 'maternity_leave' | 'occupational_risk' | 'offboarding' | 'other' | 'parental_leave' | 'paternity_leave' | 'performance_review' | 'personal' | 'safety_training' | 'sick_leave' | 'time_attendance' | 'timeoff' | 'unpaid_leave' | 'vehicle_document' | 'work_confirmation' | 'contract' | 'document' | 'portugal_training_certificate' | 'tax_document' | 'termination_reason_file' | 'timesheet' | 'visa', required: The broad category of the file. Contractor Services Agreements (CSAs) are reported here with type "contract" — see the /contract-documents endpoint for contract-document-specific types.
    - `total_count` integer: The total number of records in the result
    - `total_pages` integer: The total number of pages the user can go through

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity

## Changes

- **2026-12-01** `777f36f27c65`: 4 info
  - the security scope `document:read` was added to the endpoint's security scheme `OAuth2CompanyManagerAssertion`
  - the security scope `https://gateway.remote.com/company.manage` was added to the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2CompanyManagerAssertion`
- **2026-12-01** `a7797b614386`: 4 info
  - the security scope `document:read` was added to the endpoint's security scheme `OAuth2CompanyManagerAssertion`
  - the security scope `https://gateway.remote.com/company.manage` was added to the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2CompanyManagerAssertion`
- …earlier changes not shown

[Operation history](https://skmtc.dev/remote-com/apis/remote-api/changes/v1/employments/:employment_id/files/get.md)

---

[API](https://skmtc.dev/remote-com/apis/remote-api.md) - [All operations](https://skmtc.dev/remote-com/apis/remote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/remote-com/apis/remote-api/revisions/777f36f27c65?raw)
