Schemas
A schema is a JSON Schema 2020-12 document (limited to 64 KB serialized) describing the typed output you want. Schemas are reusable across jobs and owned by the tenant.
Create a schema#
POST
/v1/schemasRegister a reusable extraction schema. Returns
201 with the created schema.namerequiredstring
Display name, 1 to 80 characters.
json_schemarequiredobject
A JSON Schema 2020-12 document. Max 64 KB serialized.
descriptionstring | null
Optional, up to 500 characters.
bash
curl -X POST https://api.lirovo.ai/v1/schemas \
-H "Authorization: Bearer $LIROVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "meeting-action-items",
"json_schema": {
"type": "object",
"properties": {
"action_items": { "type": "array", "items": { "type": "string" } }
},
"required": ["action_items"]
}
}'List schemas#
GET
/v1/schemasList the tenant's schemas. Supports
limit (1 to 100, default 25), cursor, and include_templates (default false). Returns { data, next_cursor }.bash
curl "https://api.lirovo.ai/v1/schemas?include_templates=true" \
-H "Authorization: Bearer $LIROVO_API_KEY"Get a schema#
GET
/v1/schemas/{id}Get one schema by id. Returns
404 if it does not exist for this tenant.Schema object
idrequiredstring
Schema id, e.g. sch_a1b2c3.
namerequiredstring
Display name.
json_schemarequiredobject
The stored JSON Schema document.
versionrequiredinteger
Schema version, starts at 1.
is_templaterequiredboolean
True for built-in templates.
template_categorystring | null
One of meeting, sales, interview, lecture, podcast.
created_atrequiredstring (date-time)
Creation timestamp.
archived_atstring (date-time) | null
Set when soft-deleted.
bash
curl https://api.lirovo.ai/v1/schemas/sch_a1b2c3 \
-H "Authorization: Bearer $LIROVO_API_KEY"Delete a schema#
DELETE
/v1/schemas/{id}Soft-delete a schema. Sets
archived_at so referencing jobs and extractions keep their foreign keys; subsequent reads return 404. Idempotent; returns { id, deleted_at }.bash
curl -X DELETE https://api.lirovo.ai/v1/schemas/sch_a1b2c3 \
-H "Authorization: Bearer $LIROVO_API_KEY"