curl -X POST https://api.okrapdf.com/v1/documents/doc-abc123/structured-output \
-H "Authorization: Bearer $OKRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Extract invoice fields.",
"schema": {
"type": "object",
"properties": {
"vendor": { "type": "string" },
"total": { "type": "number" }
},
"required": ["vendor", "total"]
}
}'