---
title: "List Directories"
method: GET
path: "/projects/{projectId}/directories"
tags: ["Source Files"]
---

# List Directories

`GET /projects/{projectId}/directories`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/directories`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/projects/:projectId/directories/get.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `project.source.file` (Read only).

## Path parameters

- `projectId` integer, required

## Query parameters

- `orderBy` 'id' | 'name' | 'title' | 'createdAt' | 'updatedAt' | 'exportPattern' | 'priority'
- `branchId` integer
- `directoryId` integer
- `filter` string
- `recursion` boolean
- `limit` integer
- `offset` integer

## Response `200`

List project directories

- DirectoryCollectionResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` DirectoryResource[], required
    - `data` Directory, required: Class DirectoryResponseModel
      - `id` integer
      - `projectId` integer
      - `branchId` integer, nullable
      - `directoryId` integer, nullable: Parent directory id
      - `name` string
      - `title` string: Title for translators
      - `exportPattern` string
      - `path` string
      - `priority` string
      - `createdAt` string, date-time, nullable
      - `updatedAt` string, date-time, nullable
  - `pagination` Pagination: Pagination Response Model
    - `offset` integer
    - `limit` integer

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project with the specified id was not found
- `405`: Method Not Allowed
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/revisions/dc68744c5384?raw)
