Skip to main content
The registry is REST-only — there is no SDK namespace. documents.extract still accepts schema_id once a family exists. Validate a draft first with documents.validate_extract_schema or POST /v1/extract/schema-validation.

Versioning

  • POST /v1/extraction-schemas creates a family (sch_…) and version 1
  • POST /v1/extraction-schemas/{schema_id}/versions appends an immutable version
  • Extract schema_version pins a version; omit it to use latest
  • Tenant keys create and append only their own schemas
  • Reads include tenant and platform families; a tenant row wins on id clash
  • No drafts or in-place edits

Deleting a schema

DELETE /v1/extraction-schemas/{schema_id} deletes a schema you created, with every version. NDI removes its name, description and JSON Schema at once and keeps only the id, version numbers and timestamps, so finished jobs that used it still show which schema_id and schema_version they ran with. A job accepted before the delete keeps its own copy of the schema and finishes. After the delete, reading the schema or starting Extract with its schema_id returns 404 schema_not_found. Deleting it again returns 204. Platform schemas cannot be deleted.

Retention

A schema you create, with all of its versions, is kept until you delete it or your organization is closed. See Saved schemas and domains. See Extract.