---
title: "Create a schema"
method: POST
path: "/v1/extractions/schema"
tags: ["extractions"]
---

# Create a schema

`POST /v1/extractions/schema`

Create a schema with the provided parameters.

Args:
    params: The parameters for creating a schema.

Returns:
    The created schema.

## Request body

- JsonSchemaCreateParams — Parameters for creating a JSON schema.
  - `description` string, required — Description of the data to extract

## Response `200`

The created schema

- CreatedJsonSchema — Result of creating a JSON schema.
  - `json_schema` object, required — The created JSON schema

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.net/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixedbread/mxbai-omni/revisions/2eece97b5ae5/schema)
