---
title: "Get schema string by version"
method: GET
path: "/subjects/{subject}/versions/{version}/schema"
tags: ["Subjects (v1)"]
---

# Get schema string by version

`GET /subjects/{subject}/versions/{version}/schema`

Retrieves the schema for the specified version of this subject. Only the unescaped schema string is returned.

## Path parameters

- `subject` string, required
- `version` string, required

## Query parameters

- `deleted` boolean

## Response `200`

The schema string.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found. Error code 40401 indicates subject not found. Error code 40402 indicates version not found.
- `422` — Unprocessable Entity. Error code 42202 indicates an invalid version.
- `429` — Rate Limit Exceeded
- `500` — Internal Server Error. Error code 50001 indicates a failure in the backend data store.

---

[API](https://skmtc.dev/confluent/apis/confluent-cloud-apis.md) · [All operations](https://skmtc.dev/confluent/apis/confluent-cloud-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/confluent/confluent-cloud-apis/revisions/a6a73f98a698/schema)
