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

# List Home Kit Orders

> Retrieve DIY mail-home test kits accessible to your API key

Retrieve a list of home kit orders. A home kit order sends a DIY mail-home test kit — Aniva ships the kit, the patient self-collects a sample at home and mails it back. Each home kit order includes the embedded patient profile.

When `profile_id` is provided, returns all home kit orders for that profile. When omitted, returns all accessible home kit orders.

<Note>Requires `home_kit_orders_view` or `home_kit_orders_manage` scope.</Note>

## Request

### Query parameters

<ParamField query="profile_id" type="string">
  Filter by profile UUID. When provided, all home kit orders for this profile are returned.
</ParamField>

## Response

On success, the API returns `200 OK` with an array of home kit order objects.

<ResponseField name="id" type="string" required>
  Unique home kit order identifier (UUID).
</ResponseField>

<ResponseField name="profile_id" type="string" required>
  UUID of the profile this home kit order belongs to.
</ResponseField>

<ResponseField name="status" type="string" required>
  Current home kit order status. One of `pending`, `dispatched`, `activated`, or `cancelled`.
  Lab-result completion granularity is derived from [Get Results](/api/home-kit-orders/get-results).
</ResponseField>

<ResponseField name="delivery_address" type="object" required>
  The address to mail the kit to — one of two shapes: either `{ location_id }` referencing a known test location, or the inline address fields (`name`, `street`, `house_number`, `postal_code`, `city`, `country`; `phone` / `email` optional). Provide exactly one — a location reference or an inline address, not both.

  <Expandable title="delivery address">
    <Tabs>
      <Tab title="Location reference">
        <ResponseField name="location_id" type="string" required>
          UUID of the test location the kit ships to.
        </ResponseField>
      </Tab>

      <Tab title="Inline address">
        <ResponseField name="name" type="string" required />

        <ResponseField name="street" type="string" required />

        <ResponseField name="house_number" type="string" required />

        <ResponseField name="postal_code" type="string" required />

        <ResponseField name="city" type="string" required />

        <ResponseField name="country" type="string" required>
          ISO 3166-1 alpha-2 code (two letters, e.g. `DE`).
        </ResponseField>

        <ResponseField name="phone" type="string" />

        <ResponseField name="email" type="string" />
      </Tab>
    </Tabs>
  </Expandable>
</ResponseField>

<ResponseField name="created_at" type="string" required>
  ISO 8601 timestamp of when the home kit order was created.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp of the last update. May be `null`.
</ResponseField>

<ResponseField name="profile" type="object" required>
  The patient profile associated with this home kit order.

  <Expandable title="profile">
    <ResponseField name="id" type="string">
      Unique profile identifier (UUID).
    </ResponseField>

    <ResponseField name="handle" type="string">
      Profile handle or username. May be `null`.
    </ResponseField>

    <ResponseField name="first_name" type="string">
      First name. May be `null`.
    </ResponseField>

    <ResponseField name="last_name" type="string">
      Last name. May be `null`.
    </ResponseField>

    <ResponseField name="email" type="string">
      Email address. May be `null`.
    </ResponseField>

    <ResponseField name="phone" type="string">
      Phone number in E.164 format. May be `null`.
    </ResponseField>

    <ResponseField name="sex" type="integer">
      Biological sex per ISO/IEC 5218. May be `null`.
    </ResponseField>

    <ResponseField name="date_of_birth" type="string">
      Date of birth in `YYYY-MM-DD` format. May be `null`.
    </ResponseField>

    <ResponseField name="height" type="number">
      Height in centimeters. May be `null`.
    </ResponseField>

    <ResponseField name="weight" type="number">
      Weight in kilograms. May be `null`.
    </ResponseField>

    <ResponseField name="language" type="string">
      Preferred language (`en`, `de`, or `fi`).
    </ResponseField>

    <ResponseField name="transactional_emails_enabled" type="boolean">
      Whether this profile receives transactional (programmatic) emails. May be `null`.
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 timestamp of when the profile was created.
    </ResponseField>

    <ResponseField name="updated_at" type="string">
      ISO 8601 timestamp of the last profile update. May be `null`.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="panels" type="HomeKitOrderPanel[]" required>
  Catalog panels currently attached to this home kit order. Look up panel details (name, biomarkers) via
  [List Panels](/api/panels/list-panels).

  <Expandable title="Panel attachment fields">
    <ResponseField name="panel_id" type="string">
      Panel UUID — cross-reference against [List Panels](/api/panels/list-panels).
    </ResponseField>

    <ResponseField name="added_at" type="string">
      ISO 8601 timestamp the panel was first attached to this home kit order.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="individual_biomarkers" type="HomeKitOrderIndividualBiomarker[]" required>
  À-la-carte biomarkers attached to this home kit order outside any panel. Cross-reference each
  `biomarker_id` against [List Biomarkers](/api/biomarkers/list-biomarkers) for display data.

  <Expandable title="Individual biomarker fields">
    <ResponseField name="biomarker_id" type="integer">
      Biomarker identifier — cross-reference against
      [List Biomarkers](/api/biomarkers/list-biomarkers).
    </ResponseField>

    <ResponseField name="added_at" type="string">
      ISO 8601 timestamp the biomarker was first attached to this home kit order.
    </ResponseField>
  </Expandable>
</ResponseField>

## Error responses

| Status | Description                                                                                                                 |
| ------ | --------------------------------------------------------------------------------------------------------------------------- |
| `403`  | Forbidden — your API key does not have access to this operation, or the requested profile is outside your permission scope. |
| `500`  | Internal server error.                                                                                                      |

<RequestExample>
  ```bash cURL (all home kit orders) theme={null}
  curl --request GET \
    --url https://anivahealth.com/api/v1/home-kit-orders \
    --header 'x-api-key: YOUR_API_KEY'
  ```

  ```bash cURL (by profile) theme={null}
  curl --request GET \
    --url 'https://anivahealth.com/api/v1/home-kit-orders?profile_id=a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d' \
    --header 'x-api-key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": "d1e2f3a4-5b6c-4d7e-8f9a-0b1c2d3e4f5a",
      "profile_id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
      "status": "dispatched",
      "delivery_address": {
        "name": "Maria Schmidt",
        "street": "Friedrichstraße",
        "house_number": "123",
        "postal_code": "10117",
        "city": "Berlin",
        "country": "DE",
        "phone": "+4930123456789",
        "email": "maria.schmidt@example.com"
      },
      "created_at": "2026-04-01T09:45:00Z",
      "updated_at": "2026-04-02T08:00:00Z",
      "profile": {
        "id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
        "handle": null,
        "first_name": "Maria",
        "last_name": "Schmidt",
        "email": "maria.schmidt@example.com",
        "phone": "+4930123456789",
        "sex": 2,
        "date_of_birth": "1985-03-22",
        "height": 168,
        "weight": 65,
        "language": "de",
        "transactional_emails_enabled": true,
        "created_at": "2026-04-01T09:14:32Z",
        "updated_at": null
      },
      "panels": [
        {
          "panel_id": "f1c2d4a3-7b8e-4f2a-9c1d-2e3f4a5b6c7d",
          "added_at": "2026-04-01T09:50:00Z"
        }
      ],
      "individual_biomarkers": [
        {
          "biomarker_id": 42,
          "added_at": "2026-04-01T09:52:00Z"
        }
      ]
    }
  ]
  ```

  ```json 403 theme={null}
  {
    "error": "Access denied: profile is outside your permission scope"
  }
  ```
</ResponseExample>
