Skip to main content
Use this endpoint to search for prescriptions within your tenant. Filter by patient, prescriber, medication code, or status. Results are paginated.

Request

GET https://api.clinikapi.com/v1/prescriptions

Headers

x-api-key
string
required
Your ClinikAPI secret key (clk_live_* or clk_test_*).

Query Parameters

patientId
string
Filter by patient ID.
prescriberId
string
Filter by prescriber practitioner ID.
medication
string
Filter by medication code or display name (partial match).
status
string
Filter by prescription status.
count
integer
Results per page. Default: 20. Maximum: 100.
cursor
string
Pagination cursor from the previous response.

Response

Returns 200 OK with a paginated list of prescriptions.
data.data
array
Array of prescription objects.
data.total
integer
Total matching prescriptions.
data.cursor
string
Cursor for the next page.
data.hasMore
boolean
true if more pages exist.
meta
object
Standard response metadata.

Examples

curl

curl "https://api.clinikapi.com/v1/prescriptions?patientId=pt_abc123&status=active" \
  -H "x-api-key: clk_live_abc123"

TypeScript SDK

import { ClinikAPI } from "@clinikapi/sdk";

const client = new ClinikAPI({ apiKey: "clk_live_abc123" });

const results = await client.prescriptions.search({
  patientId: "pt_abc123",
  status: "active",
});