magent
GET api.magentlab.com/api/codes/search
Why an agent can trust this route.
Sonar evidence is advisory. Paid delivery is shown as verified only when paid probes are available; otherwise route estimates use the unpaid handshake as a clearly labeled proxy.
Observed outcomes
Map a natural-language drug, diagnosis, or lab phrase to a current RxNorm, ICD-10-CM, or LOINC code. Use when an agent must not hallucinate or invent a billing/pharmacy code.
Resource: api.magentlab.com/api/codes/search
Network: eip155:8453 · Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · Pay to: 0x836Be278f1739fB4308091cD1852F7971Bc19Ee2
Payment methods: eip3009 · Last validation: 2026-09-14 11:52:53.063+00
{
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"queryParams": {
"type": "object",
"required": [
"query"
],
"properties": {
"tty": {
"enum": [
"SCD",
"SBD",
"IN",
"PIN",
"MIN",
"BN",
"GPCK",
"BPCK",
"DF",
"SCDC",
"SBDC",
"SCDF",
"SBDF",
"CM",
"LN"
],
"type": "string",
"description": "Restrict term type. Pharmacy orders typically want SCD. ICD-10-CM is CM; LOINC is LN."
},
"limit": {
"type": "integer",
"description": "Number of ranked matches to return (1-25). Default 5."
},
"query": {
"type": "string",
"description": "Natural-language drug, diagnosis, or lab description. Max 512 characters. Do not send patient names."
},
"system": {
"enum": [
"rxnorm",
"icd10",
"loinc"
],
"type": "string",
"description": "Restrict to rxnorm, icd10 (ICD-10-CM), or loinc. Omit to search all."
},
"min_score": {
"type": "integer",
"description": "Minimum rank score 0-100. Default 35."
},
"billable_only": {
"type": "boolean",
"description": "ICD-10-CM: return only HIPAA billable codes, not headers. Default true."
},
"include_obsolete": {
"type": "boolean",
"description": "Include deprecated/obsolete codes. Default false."
}
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
},
"paymentRequirements": [
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/codes/search?billable_only=true&include_obsolete=false&limit=5&min_score=35&query=Tylenol+500mg&system=rxnorm&tty=SCD",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "exact",
"network": "eip155:8453",
"amountAtomic": "5000"
},
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"withdrawDelay": 86400,
"receiverAuthorizer": "0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "batch-settlement",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "batch-settlement",
"network": "eip155:8453",
"amountAtomic": "5000"
}
]
}Source catalog records are retained separately from live endpoint observations. Sonar score, uptime, and latency are advisory metrics. CDP indexing is not inferred from validation.