---
title: "get_extraction_schema"
method: GET
path: "/v1/extraction-schemas/{schema_id}"
tags: ["extraction-schemas"]
---

# get_extraction_schema

`GET /v1/extraction-schemas/{schema_id}`

## Request

- Base URL: `https://ndi-api.nace.ai`
- URL: `https://ndi-api.nace.ai/v1/extraction-schemas/{schema_id}`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/nace/apis/ndi-platform-api/docs/v1/extraction-schemas/:schema_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the latest visible version of a schema family.

## Path parameters

- `schema_id` string, required: Stable schema family id (``sch_...``).

## Response `200`

Successful Response

- ExtractionSchema: One immutable schema version, including the frozen JSON Schema body.
  - `created_at` string, date-time, required
  - `description` string, nullable
  - `name` string, required
  - `owner` 'platform' | 'tenant', required
  - `schema` object, required
  - `schema_id` string, required
  - `updated_at` string, date-time, required
  - `version` integer, required

## Other responses

- `504`: Gateway Timeout
- `default`: Typed error envelope used by every 4xx and 5xx. ``error.code`` distinguishes the failure; HTTP status is a consequence of the code.

---

[API](https://skmtc.dev/nace/apis/ndi-platform-api.md) - [All operations](https://skmtc.dev/nace/apis/ndi-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nace/apis/ndi-platform-api/revisions/d002a3589a67?raw)
