# General Translation Platform: Поиск осиротевших файлов URL: https://generaltranslation.com/ru/docs/platform/openapi/reference/files/orphaned-files.mdx --- title: "Поиск осиротевших файлов" description: "Возвращает файлы в ветке, отсутствующие в указанном списке id файлов. Справочник API для поиска осиротевших файлов." method: POST full: true _openapi: method: POST route: /v2/project/files/orphaned toc: [] structuredData: headings: [] contents: - content: >- Возвращает файлы в ветке, отсутствующие в указанном списке id файлов. --- ## `POST https://api.gtx.dev/v2/project/files/orphaned` Return files on a branch that are not present in the provided file ID list. Authentication: send an API key as a bearer token in the `Authorization: Bearer ` header. ### Parameters - `gt-api-version` (header, "2025-01-01.v0" | "2025-11-03.v1" | "2026-02-18.v1" | "2026-03-06.v1", optional): API version. Defaults to the earliest supported version. Latest is `2026-03-06.v1`. - `gt-project-id` (header, string, optional): Target project ID. Required when authenticating with an organization API key. ### Request body Body (`application/json`, object): - `branchId` (string, required) - `fileIds` (string[]) Default: `[]`. ### Responses **200**: Orphaned files. Response body (`application/json`, object): - `orphanedFiles` (object[]) - `fileId` (string) - `versionId` (string) - `fileName` (string) **400**: The request was invalid. Response body (`application/json`, object): - `error` (string): Human-readable error message. **401**: Missing or invalid API key. Response body (`application/json`, object): - `error` (string): Human-readable error message. **403**: The API key lacks the required permission, or the action is not allowed on the current plan. Response body (`application/json`, object): - `error` (string): Human-readable error message. **404**: The requested resource was not found. Response body (`application/json`, object): - `error` (string): Human-readable error message. The complete OpenAPI 3.1 spec is available at https://generaltranslation.com/openapi.yaml.