Documentation Index
Fetch the complete documentation index at: https://docs.pharmachains.ai/llms.txt
Use this file to discover all available pages before exploring further.
Get started in three steps
Get your API key, make your first medicine search, and submit a test request.Step 1: Get your API key
Create a partner account
Create a partner account
If you don’t have one yet, sign up at the Pharmachain Partner Portal. Once your account is approved, you’ll land on the dashboard.
Generate your API key
Generate your API key
- In the Partner Portal, go to Settings → API keys.
- Click Generate new key and give it a name (e.g.
dev-integration). - Copy the key and store it somewhere safe — you won’t be able to view it again.
Step 2: Search for a medicine
Send your first search request
Send your first search request
The search endpoint takes a medicine name and a patient location, and returns a ranked list of nearby pharmacies that have the drug in stock.A successful response looks like this:
Step 3: Submit a medicine request
Create a fulfilment request
Create a fulfilment request
Once your HMO platform has selected a pharmacy from the search results, submit a request to kick off fulfilment. Use the
pharmacy_id returned from the search.Track the request
Track the request
Poll the status endpoint with your
request_id to check progress.fetch
Next steps
You’re integrated. Here’s what to explore next:Authentication
Understand API key scopes, key rotation, and the difference between sandbox and production.
Status & webhooks
Stop polling. Receive real-time push notifications whenever a request status changes.
Cancel a request
Learn when and how to cancel a pending medicine request via the API.
Full API reference
Browse every endpoint with interactive request builders and full schema documentation.
Need help? Email us at support@pharmachains.ai or open a ticket from your Partner Portal.

