curl -X POST https://api.chersus.com/v1/run \
-H "Authorization: Bearer chrs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "text",
"value": "Order 4821 for jane.doe@example.com arrived late, customer wants a refund."
},
"pipeline": [
{
"id": "extract",
"service": "data.entity.extract",
"params": {
"schema": {
"order_id": "string",
"customer_email": "string",
"issue": "string"
}
}
}
]
}'const res = await fetch("https://api.chersus.com/v1/run", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
type: "text",
value: "Order 4821 for jane.doe@example.com arrived late, customer wants a refund.",
},
pipeline: [
{
id: "extract",
service: "data.entity.extract",
params: {
schema: { order_id: "string", customer_email: "string", issue: "string" },
},
},
],
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.chersus.com/v1/run",
headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
json={
"input": {
"type": "text",
"value": "Order 4821 for jane.doe@example.com arrived late, customer wants a refund.",
},
"pipeline": [
{
"id": "extract",
"service": "data.entity.extract",
"params": {
"schema": {
"order_id": "string",
"customer_email": "string",
"issue": "string",
}
},
}
],
},
)
data = res.json()200 · 34ms · 74 chars
{
"trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X7",
"status": "completed",
"output": {
"type": "text",
"value": "Order 4821 for jane.doe@example.com arrived late, customer wants a refund."
},
"results": {
"extract": {
"kind": "extract",
"status": "ok",
"data": {
"order_id": "4821",
"customer_email": "jane.doe@example.com",
"issue": "late delivery, refund requested"
}
}
},
"usage": {
"billed": [
{ "unit": "characters", "quantity": 74, "steps": ["extract"] }
]
},
"audit": { "region": "eu-nl-1", "retention": "none", "total_ms": 34 }
}data.entity.extract is the bridge between unstructured input and your typed systems.
Give it a schema of the fields you need via params.schema. It returns exactly those
keys, with values pulled from the text and validated against your schema.
Your schema fixes the output shape, so the service can feed a database insert or a typed API call directly. No parsing layer of your own.
- KIND
- extract
- MODEL
- numind/NuExtract-tiny
- LICENSE
- Apache 2.0
- LANGUAGES
- English
- REGION
- 26 EU cities