Skip to main content
Use this endpoint to fetch the full details of a single medication by its unique ID. The response includes the drug code, form, ingredients, and batch data exactly as stored.

Request

GET https://api.clinikapi.com/v1/medications/:id

Headers

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

Path parameters

id
string
required
The medication ID to retrieve (e.g. med_abc123).

Response

Returns 200 OK with the medication resource wrapped in the standard envelope.
data.id
string
The medication ID.
data.code
string | object
The drug code — free-text string or coded object with system, code, and display.
data.status
string
Medication status: active or inactive.
data.form
string
Dosage form (e.g. "tablet", "capsule"), if recorded.
data.ingredient
array
Ingredient list with substance references and strength ratios, if recorded.
data.batch
object
Batch details including lotNumber and expirationDate, if recorded.
meta
object
Standard response metadata including requestId, timestamp, status, and rate-limit fields.

Examples

curl

curl https://api.clinikapi.com/v1/medications/med_abc123 \
  -H "x-api-key: clk_live_abc123"

TypeScript SDK

import { Clinik } from '@clinikapi/sdk';

const clinik = new Clinik(process.env.CLINIKAPI_SECRET_KEY!);

const { data } = await clinik.medications.read('med_abc123');

console.log(data.code); // { system: '...', code: '197361', display: 'Lisinopril 10 MG Oral Tablet' }