API Documentation
โ† All tools
GET/api/v1/tools/biology/target-to-drugs

Target to Drugs

biology

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/tools

Authentication

Include your API key in the x-api-key header.

Parameters

Query parameters

ParameterTypeRequiredDescription
targetstringYesBiological target name or symbol (e.g., 'EGFR', 'TNF').
actionstringNoFilter 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

List responseDRUGS

Payload: data.drugs โ€” Modulating Drugs

Exact total: data.total_count

Audit trail: data.audit_trail

Common row fields

FieldDescription
drug_nameDrug
max_phaseMax Phase
mechanism_of_actionMechanism
is_approvedApproved
drug_idRecord 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