> ## 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 Folder Order Language Pairs

> Get distinct source/target language pairs from eligible orders in a folder

Returns the distinct source/target language combinations from orders in a folder. Use `status=unassigned` (default) to get pairs available for assignment, or `status=assigned` to get pairs available for unassignment.

This endpoint is useful for populating language filter dropdowns before calling the assign or unassign endpoints.

<RequestExample>
  ```bash cURL (unassigned orders - default) theme={null}
  curl -X GET "https://api-integration.ollang.com/integration/folder/60b8d6f1e1b9b1d8c6c0d8e1/order-language-pairs" \
    -H "X-Api-Key: <your-api-key>"
  ```

  ```bash cURL (assigned orders) theme={null}
  curl -X GET "https://api-integration.ollang.com/integration/folder/60b8d6f1e1b9b1d8c6c0d8e1/order-language-pairs?status=assigned" \
    -H "X-Api-Key: <your-api-key>"
  ```

  ```javascript JavaScript theme={null}
  const folderId = "60b8d6f1e1b9b1d8c6c0d8e1";

  const response = await fetch(
    `https://api-integration.ollang.com/integration/folder/${folderId}/order-language-pairs?status=unassigned`,
    {
      method: "GET",
      headers: {
        "X-Api-Key": "<your-api-key>",
      },
    },
  );

  const data = await response.json();
  console.log(data.pairs);
  // [{ sourceLanguage: "en", targetLanguage: "fr" }, { sourceLanguage: "en", targetLanguage: "tr" }]
  ```

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

  folder_id = "60b8d6f1e1b9b1d8c6c0d8e1"

  response = requests.get(
      f"https://api-integration.ollang.com/integration/folder/{folder_id}/order-language-pairs",
      headers={"X-Api-Key": "<your-api-key>"},
      params={"status": "unassigned"},
  )

  data = response.json()
  for pair in data["pairs"]:
      print(f"{pair['sourceLanguage']} → {pair['targetLanguage']}")
  ```
</RequestExample>

## Authorizations

This endpoint requires API key authentication. Include your API key in the request header:

* **Header name**: `X-Api-Key`
* **Header value**: Your API key from the Ollang dashboard

## Path Parameters

<ParamField path="folderId" type="string" required>
  The unique identifier of the folder.
</ParamField>

## Query Parameters

<ParamField query="status" type="string">
  Filter by order status. Accepted values:

  * `unassigned` (default) — returns language pairs from orders available for assignment
  * `assigned` — returns language pairs from orders available for unassignment
</ParamField>

## Response

<ResponseField name="pairs" type="object[]">
  Array of distinct language pair objects.

  <Expandable title="properties">
    <ResponseField name="sourceLanguage" type="string">
      Source language code (e.g., `en`).
    </ResponseField>

    <ResponseField name="targetLanguage" type="string">
      Target language code (e.g., `fr`).
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "pairs": [
      { "sourceLanguage": "en", "targetLanguage": "fr" },
      { "sourceLanguage": "en", "targetLanguage": "tr" },
      { "sourceLanguage": "en", "targetLanguage": "de" }
    ]
  }
  ```

  ```json 200 (empty - no eligible orders) theme={null}
  {
    "pairs": []
  }
  ```

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