---
title: "GET /schemas/ids/{id}"
method: GET
path: "/schemas/ids/{id}"
tags: ["Schemas"]
---

# GET /schemas/ids/{id}

`GET /schemas/ids/{id}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `id` integer, required

## Query parameters

- `format` string
- `subject` string

## Response `200`

Schema found with the id.

- Schema
  - `subject` string, required: The name of the subject this schema belongs to.
  - `version` integer, required: The version of the schema under the subject.
  - `id` integer: The globally unique ID of the schema.
  - `schema` string, required: The actual schema definition as a string.
  - `schemaType` string: The type of the schema (AVRO, PROTOBUF, JSON). Default is AVRO.
  - `references` SchemaReference[]: A list of referenced schemas.
    - `name` string, required
    - `subject` string, required
    - `version` integer, required

## Other responses

- `404`: Error returned by the Schema Registry API
- `500`: Error returned by the Schema Registry API

---

[API](https://skmtc.dev/apicurio/apis/apicurio-registry-confluent-compatibility-api.md) - [All operations](https://skmtc.dev/apicurio/apis/apicurio-registry-confluent-compatibility-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apicurio/apis/apicurio-registry-confluent-compatibility-api/revisions/a2f9ca447c9b?raw)
