Subjects (v1)

Get schema string by version

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

get/subjects/{subject}/versions/{version}/schema

Request

  • Base URL
    https://psrc-00000.region.provider.confluent.cloud
  • URL
    https://psrc-00000.region.provider.confluent.cloud/subjects/{subject}/versions/{version}/schema
  • Auth
    • HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://api.confluent.cloud/sts/v1/oauth2/token

Path parameters

subjectstring required

Name of the subject

versionstring required

Version of the schema to be returned. Valid values for versionId are between [1,2^31-1] or the string "latest". "latest" returns the last registered schema under the specified subject. Note that there may be a new latest schema that gets registered right after this request is served.

Query parameters

deletedboolean

Whether to include deleted schema

Response

The schema string.

string required

Example response

"{\"schema\": \"{\"type\": \"string\"}\"}"

Changes

No recorded changes to this operation across all 7 revisions of this API.