# Retrieve a schema for the subject and version.

**GET /subjects/{subject}/versions/{version}**




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



## Parameters

### Path parameters
- **subject** (string)

- **version** (string)
  The schema version to retrieve. Use an integer for a specific version or 'latest' for the most recent version.

### Query parameters
- **deleted** (boolean)

- **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.


## Responses
### 200
OK

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

- **version** (integer)

- **id** (integer)

- **schemaType** (string)

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

- **schema** (string)


### 404
Not Found: Schema not found

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

- **message** (string)


### 422
Invalid version

#### 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)
