---
title: "Get TM Segment"
method: GET
path: "/tms/{tmId}/segments/{segmentId}"
tags: ["Translation Memory"]
---

# Get TM Segment

`GET /tms/{tmId}/segments/{segmentId}`

## Request

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

**Required scopes:** `tm` (Read only).

Get segments of translation unit

## Path parameters

- `tmId` integer, required
- `segmentId` integer, required

## Response `200`

TM segment data

- TmSegmentResource: 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` TmSegment, required
    - `id` integer: Segment Identifier
    - `records` object[]
      - `id` integer: Record Identifier
      - `languageId` string: Language Identifier
      - `text` string: Record text
      - `usageCount` integer: Count usage of segment record
      - `createdBy` integer: Creator User Identifier
      - `updatedBy` integer: Redactor User Identifier
      - `createdAt` string, date-time, nullable: Date in UTC, ISO 8601
      - `updatedAt` string, date-time, nullable: Date in UTC, ISO 8601

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Tm or segment with specified id was not found
- `405`: Method Not Allowed

---

[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)
