POST
/
extraction
curl --request POST \
  --url https://api.totoy.ai/v1/extraction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "rre-de-2025-02-14",
  "document": "JVBERi0xLjUNCiW1tbW1DQox...",
  "expand_abbreviations": false
}'
{
  "fields": {
    "referral_diagnosis": {
      "content": "C61 - Castration-resistant prostate cancer in progress, N28.1 - Right renal cyst, F52.2 - Erectile dysfunction",
      "review": {
        "reasoning": "The referral diagnosis is clearly stated with multiple diagnoses. The referral is complete and no review is needed.",
        "recommended": false
      }
    },
    "ordered_procedure": {
      "content": "CT thorax/abdomen",
      "review": {
        "reasoning": "The ordered procedure is clearly stated. No review is needed.",
        "recommended": false
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json
OK

The response is of type object.