> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.ollang.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Memory by ID

> Retrieve a single translation memory

Retrieve one translation memory by ID, including its stored translation-unit count.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api-integration.ollang.com/integration/memories/507f1f77bcf86cd799439011" \
    -H "X-Api-Key: <your-api-key>"
  ```

  ```javascript JavaScript theme={null}
  const memoryId = "507f1f77bcf86cd799439011";

  const response = await fetch(
    `https://api-integration.ollang.com/integration/memories/${memoryId}`,
    {
      method: "GET",
      headers: {
        "X-Api-Key": "<your-api-key>",
      },
    }
  );

  const memory = await response.json();
  ```

  ```python Python theme={null}
  import requests

  memory_id = "507f1f77bcf86cd799439011"

  headers = {"X-Api-Key": "<your-api-key>"}

  response = requests.get(
      f"https://api-integration.ollang.com/integration/memories/{memory_id}",
      headers=headers,
  )

  memory = response.json()
  ```
</RequestExample>

## Authorizations

This endpoint requires API key authentication.

* **Header name**: `X-Api-Key`
* **Header value**: Your API key from the [Ollang dashboard](https://lab.ollang.com)

## Path Parameters

<ParamField path="memoryId" type="string" required>
  The translation memory's unique identifier.
</ParamField>

## Response

Returns the translation memory object.

<ResponseField name="id" type="string">
  Unique identifier of the translation memory.
</ResponseField>

<ResponseField name="title" type="string">
  Human-readable name of the translation memory.
</ResponseField>

<ResponseField name="memoryItemsCount" type="number">
  Number of translation units stored in the memory.
</ResponseField>

<ResponseField name="createdAt" type="string">
  Creation timestamp (ISO 8601).
</ResponseField>

<ResponseField name="updatedAt" type="string">
  Last update timestamp (ISO 8601).
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "507f1f77bcf86cd799439011",
    "title": "Product documentation EN→FR",
    "memoryItemsCount": 12480,
    "createdAt": "2023-10-05T12:34:56.789Z",
    "updatedAt": "2023-10-05T12:34:56.789Z"
  }
  ```

  ```json 404 theme={null}
  {
    "statusCode": 404,
    "message": "Memory not found"
  }
  ```

  ```json 401 theme={null}
  {
    "error": "Unauthorized",
    "message": "Invalid or missing API key"
  }
  ```
</ResponseExample>
