---
title: "Get OAS schema."
method: GET
path: "/tyk/schema"
tags: ["Schema"]
---

# Get OAS schema.

`GET /tyk/schema`

Get OAS schema definition using a version.

## Query parameters

- `oasVersion` string

## Response `200`

OAS schema response.

- OASSchemaResponse
  - `message` string
  - `schema` unknown
  - `status` string

## Other responses

- `403` — Forbidden
- `404` — Version not found

## Changes

- **2024-09-18** `111affa17abe` — 2 breaking, 2 info
  - the `schema` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `schema` response's property type/format changed from `string`/`` to ``/`` for status `404`
  - added the non-success response with the status `403`
  - removed the non-success response with the status `400`
- **2022-05-24** `111d8ca21864` — 2 breaking, 2 info
  - the `schema` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `schema` response's property type/format changed from ``/`` to `string`/`` for status `404`
  - added the non-success response with the status `400`
  - removed the non-success response with the status `403`

[Change history](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/changes/tyk/schema/get.md)

---

[API](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api.md) · [All operations](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tyktechnologies/tyk-gateway-api/revisions/900d0a33ae1d/schema)
