ParseRail
api.thecompound.tech/v1
39 endpoints1 paused242/242 checks passingcredits from $20

Extract & structure

Structure to your schema

Any messy input, text, HTML, an email, plus YOUR JSON schema → output shaped to it, validated against your required fields and property types, with an automatic corrective retry and a `valid` flag.

POST/v1/structure$0.06/call, 6 credits, charged only on success120 calls a minute per key

The example in the published schema

charged 0 credits
  1. auth (bearer key)
  2. per-key throttle
  3. validate body
  4. balance precheck
  5. run the capability
  6. charge credits ON SUCCESS ONLY
  7. JSON
The request body/v1/structure
{
  "input": "Hey — new order from Dana Reyes, dana@brightco.io. 3 large planters, ship to 44 Vine St Portland OR by the 20th.",
  "schema": {
    "type": "object",
    "required": [
      "customer",
      "items"
    ],
    "properties": {
      "customer": {
        "type": "object"
      },
      "items": {
        "type": "array"
      },
      "shipTo": {
        "type": "string"
      },
      "deadline": {
        "type": "string"
      }
    }
  }
}
The responsepublished example
// sending the call
// 0 credits charged so far
curl https://api.thecompound.tech/v1/structure \
  -H "Authorization: Bearer $COMPOUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"Hey — new order from Dana Reyes, dana@brightco.io. 3 large planters, ship to 44 Vine St Portland OR by the 20th.","schema":{"type":"object","required":["customer","items"],"properties":{"customer":{"type":"object"},"items":{"type":"array"},"shipTo":{"type":"string"},"deadline":{"type":"string"}}}}'

Scored

8 of 8 field checks passed when the eval suite last ran against production, on 2026-07-08. Every endpoint's score

The Extract & structure guide has this endpoint with its example response. The reference has every parameter.

More from Extract & structure

Get a key and buy credits