# Get a schema by ID.

**GET /schemas/ids/{id}**




## Servers
- http://localhost:8081: http://localhost:8081 ()



## Parameters

### Path parameters
- **id** (integer)


### Query parameters
- **format** (string)
  Redpanda version 25.2 or later. For Avro and Protobuf schemas only. Supported values: an empty string `''` returns the schema in its current format (default), and `serialized` (Protobuf only) returns the schema in its Base64-encoded wire binary format. Unsupported values return a 501 error.
- **subject** (string)
  Qualified subject to scope the lookup. Use :.<context>: for context-only lookup, or :.<context>:<subject> to also verify the schema is associated with that subject. Defaults to searching the default context if unspecified.
- **referenceFormat** (string)
  If set to 'qualified', schema references are returned in context-qualified form. Otherwise, unqualified references are returned.


## Responses
### 200
OK

#### Body: application/json (object)
- **schema** (string)

- **schemaType** (string)

- **references** (array[object])

- **metadata** (object)


### 404
Not Found: Schema not found

#### Body: application/json (object)
- **error_code** (integer)

- **message** (string)


### 500
Internal Server Error

#### Body: application/json (object)
- **error_code** (integer)

- **message** (string)


### 501
Not Implemented: The specified format parameter value is not supported

#### Body: application/json (object)
- **error_code** (integer)

- **message** (string)



[Powered by Bump.sh](https://bump.sh)
