Skip to main content
POST
Transform unstructured text to structured JSON

Authorizations

X-API-KEY
string
header
required
X-ACCOUNT-ID
string
header
required

Body

application/json

Text and schema for transformation

Request payload for transforming unstructured text into structured JSON

text
string
required

Unstructured text to transform

Example:

"Patient is a 45-year-old male presenting with chest pain..."

schema
object
required

JSON Schema defining the structure to extract from the text. Use description fields on properties to guide the model — they act as extraction instructions (e.g. "only include confirmed diagnoses, not suspected ones").

Example:

Response

JSON data extracted from text

Response containing the structured JSON data extracted from text

data
object

Extracted structured data that conforms to the provided schema

Example: