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

# Fetch Faces of a Collection

> List the faces enrolled in a collection.

<div className="dj-endpoint">
  <span className={`dj-method dj-method-get`}>GET</span>
  <code>/api/v1/face/collection/faces</code>
</div>

Return the faces enrolled in a collection, identified by `collection_id`. Each face includes its `face_id`, `subject_id`, `quality_band`, and `created_at`.

## Headers

| Header          | Required | Description                                         |
| --------------- | -------- | --------------------------------------------------- |
| `Authorization` | Yes      | Your app's secret key, sent as-is — *not* `Bearer`. |
| `AppId`         | Yes      | The App ID from your dashboard.                     |

## Query parameters

| Parameter       | Type   | Required | Description                                  |
| --------------- | ------ | -------- | -------------------------------------------- |
| `collection_id` | string | Yes      | The collection whose faces you want to list. |

## Response

Returns an `entity.faces` array. Each face includes the `face_id`, the `subject_id` it was enrolled under, a `quality_band`, and `created_at`.

| Field                  | Type   | Description                                             |
| ---------------------- | ------ | ------------------------------------------------------- |
| `faces[].face_id`      | string | Identifier of the enrolled face.                        |
| `faces[].subject_id`   | string | Your identifier for the person this face belongs to.    |
| `faces[].quality_band` | string | Image-quality rating of the enrolled face, e.g. `good`. |
| `faces[].created_at`   | string | ISO 8601 timestamp of when the face was enrolled.       |

## Errors

| Code  | Meaning                                                         |
| ----- | --------------------------------------------------------------- |
| `400` | Bad request — `collection_id` is missing or invalid.            |
| `401` | Unauthorized — check your key and `AppId` (no `Bearer` prefix). |
| `404` | No collection found for the supplied id.                        |
| `429` | Too many requests — back off and retry.                         |

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.dojah.io/api/v1/face/collection/faces?collection_id=90570273-6652-4ff1-8054-f20b4e73cbd2" \
    -H "Authorization: {{secret_key}}" \
    -H "AppId: {{app_id}}"
  ```

  ```js Node.js theme={null}
  const params = new URLSearchParams({
    collection_id: "90570273-6652-4ff1-8054-f20b4e73cbd2",
  });

  const url = "https://api.dojah.io/api/v1/face/collection/faces?" + params;
  const res = await fetch(url, {
    headers: {
      Authorization: process.env.DOJAH_SECRET_KEY,
      AppId: process.env.DOJAH_APP_ID,
    },
  });
  const data = await res.json();
  ```

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

  res = requests.get(
      "https://api.dojah.io/api/v1/face/collection/faces",
      headers={
          "Authorization": os.environ["DOJAH_SECRET_KEY"],
          "AppId": os.environ["DOJAH_APP_ID"],
      },
      params={ "collection_id": "90570273-6652-4ff1-8054-f20b4e73cbd2" },
  )
  data = res.json()
  ```
</RequestExample>

<ResponseExample>
  ```json GET /api/v1/face/collection/faces theme={null}
  {
    "entity": {
      "faces": [
        {
          "face_id": "face-sandbox-001",
          "subject_id": "subject-sandbox-001",
          "quality_band": "good",
          "created_at": "2026-08-27T10:31:09.015Z"
        }
      ]
    }
  }
  ```
</ResponseExample>
