Skip to content

Quickstart

1) Endpoint

POST https://api.tansyapi.com/rest/v1/rpc/{function_name}

2) Required headers

apikey: <ANON_KEY>
Authorization: Bearer <ANON_KEY>
Content-Type: application/json
curl -sS -X POST "https://api.tansyapi.com/rest/v1/rpc/rpc_drug_search_2026" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ANON_KEY" \
  -H "Content-Type: application/json" \
  -d '{"p_query":"metformin","p_limit":10}'

4) Example: coverage + cost (single drug)

curl -sS -X POST "https://api.tansyapi.com/rest/v1/rpc/rpc_coverage_lookup_cost_2026" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ANON_KEY" \
  -H "Content-Type: application/json" \
  -d '{"p_plan_id":"38246LA0010001","p_rxnorm":"310004"}'

Response notes

  • Most RPCs return arrays of rows.
  • Field presence may vary by plan/issuer (e.g., cost rows).