---
title: "Get schema"
method: GET
path: "/schemas/{schemaId}"
tags: ["Schemas"]
---

# Get schema

`GET /schemas/{schemaId}`

Get a schema given its schema ID.

## Path parameters

- `schemaId` string, required

## Headers

- `slb-data-partition-id` string, required

## Response `200`

Retrieved schema successfully.

- Schema — A schema.
  - `id` string, required — The unique idenitifer for the schema.
  - `type` 'JSON', required — The type of schema, for instance JSON schema.
  - `definition` object, required — The schema definition.

## Other responses

- `401` — Unauthorized.
- `404` — The schema was not found.
- `default` — Unexpected error.

---

[API](https://skmtc.net/slb/apis/evaluation.md) · [All operations](https://skmtc.net/slb/apis/evaluation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slb/evaluation/revisions/b563a2fae7de/schema)
