Skip to main content
POST
Classify clinical text with the DRG agent

Authorizations

X-API-Key
string
header
required

API key for organization authentication. Obtain from the organization settings or API key management endpoint.

Body

Request serializer for the DRG AI agent endpoint.

message
string
required

Natural language clinical text or DRG question (max 20,000 characters)

Required string length: 1 - 20000
version
enum<string>

Optional MS-DRG version hint for the agent

  • v36 - v36
  • v37 - v37
  • v38 - v38
  • v39 - v39
  • v40 - v40
  • v43 - v43
Available options:
v36,
v37,
v38,
v39,
v40,
v43
deidentified
boolean
default:false

Whether the input clinical text has already been de-identified

Response

Agent response with DRG classification

Response serializer for the DRG AI agent endpoint.

response
string
required

Agent's natural language response

token_usage
object
required

Token usage breakdown from the LLM

response_time_ms
integer
required

Response time in milliseconds