---
title: "List saved extraction schemas"
method: GET
path: "/v1/extraction-schemas"
tags: ["Documents"]
---

# List saved extraction schemas

`GET /v1/extraction-schemas`

## Request

- Base URL: `https://console.nace.ai`
- URL: `https://console.nace.ai/v1/extraction-schemas`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nace/apis/drex-api/docs/v1/extraction-schemas/get.ts> (a function with typed inputs; its response is checked against the schema)

The latest version of each of the account's saved schemas. Free, and works at any balance.

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

One page of schemas.

- ExtractionSchemaList
  - `items` ExtractionSchema[], required
    - `schema_id` string, required: Stable id of the schema across its versions (`sch_...`).
    - `name` string, required
    - `description` string, nullable
    - `version` integer, required
    - `owner` 'account' | 'platform', required: `account` for a schema this account saved.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `schema` object: The version's JSON Schema. Always present on a single schema, a version and a list of versions; `GET /v1/extraction-schemas` leaves it out.
  - `next_cursor` string, nullable, required: Pass as `cursor` for the next page. `null` once a page holds fewer than `limit` items; a full last page still has one, and the page after it is empty.
  - `total_count` integer

## Other responses

- `401`: Missing or invalid API key (`authentication_error`, code `invalid_api_key`).
- `429`: Over the account's requests per minute for document routes, or the document service is throttling this account (`rate_limit_error`).
- `500`: Something failed on Drex's side (`internal_error`).
- `502`: The document service refused Drex's own request (`upstream_error`, code `ndi_refused_drex`). Retry later.
- `503`: The document service is unavailable (`service_unavailable`).

---

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