---
title: "Create Query"
method: POST
path: "/api/v2/patients/{particle_patient_id}/query"
tags: ["Patients"]
---

# Create Query

`POST /api/v2/patients/{particle_patient_id}/query`

## Request

- Base URL: `https://sandbox.particlehealth.com`
- URL: `https://sandbox.particlehealth.com/api/v2/patients/{particle_patient_id}/query`
- Auth: API key in header `Authorization`

## Path parameters

- `particle_patient_id` string, required

## Request body

- ApiQueryParameters
  - `hints` string[]: Postal codes hinting at the believed location of records.
  - `npi` string: The National Provider Identifier (NPI) of the treating provider. Must be exactly 10 digits if provided.
  - `purpose_of_use` string, required: The purpose of use for which this request is being made.
  - `specialties` string[]: The list of specialty searches requested for this patient

## Response `200`

OK

- ApiQueryResponse
  - `external_patient_id` string: The external patient id of the patient.
  - `hints` string[]: Postal codes hinting at the believed location of records.
  - `npi` string: The National Provider Identifier (NPI) of the treating provider, if provided.
  - `particle_patient_id` string: The particle patient id that corresponds to the patient that the query is meant to be run against.
  - `purpose_of_use` string: The purpose of use for which this request is being made.
  - `query_id` string: The unique ID of the query that was initiated.
  - `specialties` string[]: The list of specialty searches requested for this patient

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `406`: Not Acceptable
- `429`: Too Many Requests
- `500`: Internal Server Error

## Changes

- **2026-11-03** `b59a5413a488`: 7 info
  - added the new optional request property `npi`
  - added the optional property `error_code` to the response with the `400` status
  - added the optional property `error_code` to the response with the `401` status
  - added the optional property `error_code` to the response with the `406` status
  - …3 more

[Operation history](https://skmtc.dev/particlehealth/apis/particle-health-api/changes/api/v2/patients/:particle_patient_id/query/post.md)

---

[API](https://skmtc.dev/particlehealth/apis/particle-health-api.md) - [All operations](https://skmtc.dev/particlehealth/apis/particle-health-api/llms.txt) - [OpenAPI document](https://skmtc.dev/particlehealth/apis/particle-health-api/revisions/b59a5413a488?raw)
