---
title: "Get Schema"
method: GET
path: "/schemas"
---

# Get Schema

`GET /schemas`

## Request

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

Gets the guid with specific survey id and version and uses that to retrieve a schema.
Latest version schema will be retrieved if version is omitted

Parameters:
survey_id (str): survey id of the schema metadata.
version (str) (optional): version of the survey.
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

- `survey_id` string, nullable
- `version` 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`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/office-of-national-statistics/apis/supplementary-data-service/changes/schemas/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)
