---
title: "Get Patient Ids"
method: GET
path: "/user/patient/ids"
tags: ["provider", "user"]
---

# Get Patient Ids

`GET /user/patient/ids`

Get all patient IDs based on current filters.

## Query parameters

- `page` integer, nullable
- `per_page` integer, nullable
- `sort_by` string, nullable
- `sort_direction` 'asc' | 'desc', nullable
- `location_id` string, nullable
- `id` string, nullable
- `external_id` string, nullable
- `name` string, nullable
- `email` string, nullable
- `phone_number` string, nullable
- `date_of_birth` union[], nullable
  - union
    - string, date-time
    - string
- `created_date` string[], nullable
- `tag_ids` string[], nullable — Filter by patient tag IDs
- `location_ids` string[], nullable — Filter by primary location IDs
- `tz` string, nullable

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- string[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) · [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decodahealth/decoda-api/revisions/4939a65a89d2/schema)
