/api/v1/tools/biology/target-to-drugsTarget to Drugs
Look up all drugs that modulate a specific biological target (fixed 50-drug cap per call). Returns drug name, phase, approval status, mechanism of action, and safety warnings. The action filter is an exact, non-fuzzy match against the relationship's action_type (e.g. 'INHIBITOR') - a mistyped value returns an empty result, not an error. A target that cannot be resolved returns HTTP 500 with an explanatory 'not found' error naming the input - correct the target name; repeating the same input cannot succeed.
When to use it
- find all drugs hitting a target
- competitive scan for a target by action type
Getting started
Base URL
https://app.caelrith.com/api/v1/toolsAuthentication
Include your API key in the x-api-key header.
Parameters
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| target | string | Yes | Biological target name or symbol (e.g., 'EGFR', 'TNF'). |
| action | string | No | Filter by action type (e.g., 'INHIBITOR', 'AGONIST'). Exact match on the stored action_type - a mistyped value returns an empty list. |
Example request
curl -H "x-api-key: YOUR_API_KEY" \ "https://app.caelrith.com/api/v1/tools/biology/target-to-drugs?target=your_target"
Response envelope
Successful responses wrap the payload in a success flag.
{
"success": true,
"data": { /* payload */ },
"meta": { /* pagination, totals */ }
}Response shape
Payload: data.drugs โ Modulating Drugs
Exact total: data.total_count
Audit trail: data.audit_trail
Common row fields
| Field | Description |
|---|---|
| drug_name | Drug |
| max_phase | Max Phase |
| mechanism_of_action | Mechanism |
| is_approved | Approved |
| drug_id | Record identifier |
Empty results: no_drugs_matched (target resolved; no drugs match the target and action filter)
data.total_count is capped by the fixed 50-row server limit: below 50 it is the full filtered count; at 50 more may exist - never present 50 as the target's complete drug count.
Catalog version 0.0.0-generated ยท generated from the API source