> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/api/doc/schema-registry/llms.txt)

# Get a schema by GUID.

> GET /schemas/guids/{guid}
> 
> Redpanda version 26.3 or later. Get the schema whose content has the GUID. A globally unique identifier (GUID) identifies the content of a schema across all contexts. Redpanda considers only the schema IDs that a subject version uses, including soft-deleted versions. If several schema IDs have the GUID, Redpanda uses the highest one in the default context that you have permission to read. If the default context has no such ID, Redpanda uses the first context in order of context name.



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



## Parameters

### Path parameters

- **guid** (string)
  The GUID of the schema.


### Query parameters

- **format** (string)
  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)
- **schema** (string)

- **schemaType** (string)

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

- **metadata** (object)

- **guid** (string)
  Redpanda version 26.3 or later. The GUID of the schema.


### 403
Forbidden: Authorization is enabled, and you cannot read any schema ID that has the GUID

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

- **message** (string)


### 404
Not Found: The GUID is not valid, or no subject version uses a schema ID that has the GUID

#### 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 format parameter value is not supported

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

- **message** (string)



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