---
title: "POST /v1/discover"
method: POST
path: "/v1/discover"
---

# POST /v1/discover

`POST /v1/discover`

Get the discovered schema that was generated based on sampled events.

## Request body

- object
  - `Events` GetDiscoveredSchemaVersionItemInput[], required — An array of strings where each string is a JSON event. These are the events that were used to generate the schema. The array includes a single type of event and has a maximum size of 10 events.
  - `Type` 'OpenApi3' | 'JSONSchemaDraft4', required — The type of event.

## Response `200`

Success

- GetDiscoveredSchemaResponse
  - `Content` string — The source of the schema definition.

## Other responses

- `480` — ServiceUnavailableException
- `481` — BadRequestException
- `482` — UnauthorizedException
- `483` — InternalServerErrorException
- `484` — ForbiddenException

---

[API](https://skmtc.net/aws/apis/schemas.md) · [All operations](https://skmtc.net/aws/apis/schemas/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/schemas/versions/90794fa9ec05/schema)
