---
title: "Get Schema With Guid"
method: GET
path: "/v2/schema"
deprecated: true
---

# Get Schema With Guid

`GET /v2/schema`

## Request

- The document declares no server URL.
- Auth: none declared

> **Deprecated.**

Use the guid to retrieve a schema directly

Parameters:
guid (str): GUID of the schema.
schema_firebase_repository (SchemaFirebaseRepository): injected dependency for
    interacting with the schema collection in firestore.
schema_processor_service (SchemaProcessorService): injected dependency for
    interacting with the schema collection in firestore.

## Query parameters

- `guid` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error

## Changes

> 32 revisions in range; 2 not diffed.

- **2026-07-01** `9a87e51baf13`: 2 info
  - api operation id `get_schema_with_guid_v2_schema_get` removed and replaced with `Get_Schema_with_GUID_v2_schema_get`
  - endpoint deprecated
- **2026-05-06** `5f194f40cc20`: 1 info
  - api operation id `get_schema_from_bucket_with_guid_v2_schema_get` removed and replaced with `get_schema_with_guid_v2_schema_get`
- **2024-09-17** `d3f01a32165f`: 2 info
  - `query` request parameter `guid` list-of-types was widened by adding types `null`
  - for the `query` request parameter `guid`, the type was generalized from `string` to no type
- **2023-08-25** `ac59298eeeb5`: 6 info
  - api operation id `get_schema_from_bucket_with_guid_v2_schema_get` was added
  - the `query` request parameter `guid` became optional
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `400`
  - …2 more
- **2023-08-14** `3b79e3354c43`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service/changes/v2/schema/get.md)

---

[API](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service/revisions/9a87e51baf13?raw)
