---
title: "Create Schema Registry"
method: POST
path: "/v1/event-gateways/{gatewayId}/schema-registries"
tags: ["Event Gateway Schema Registries"]
---

# Create Schema Registry

`POST /v1/event-gateways/{gatewayId}/schema-registries`

Creates a new schema registry associated with the specified Event Gateway.

## Request body

- SchemaRegistryCreate — A Confluent schema registry.
  - `name` string, required — The unique name of the schema registry.
  - `description` string — A human-readable description of the virtual cluster.
  - `type` 'confluent', required — The type of the schema registry.
  - `config` SchemaRegistryConfluentConfig, required — The configuration of [Confluent Schema Registry](https://github.com/confluentinc/schema-registry)
    - `schema_type` 'avro' | 'json', required — The format of the message.
    - `endpoint` string, uri, required — The endpoint of the Confluent schema registry.
    - `timeout_seconds` integer — Total time in seconds from establishing connection to receive a response from schema registry.
    - `authentication` SchemaRegistryAuthenticationScheme — Basic authentication scheme for the schema registry with username and password.
      - `type` 'basic', required
      - `username` string, required — A literal value or a reference to an existing secret as a template string expression. The value is stored and returned by the API as-is, not treated as sensitive information.
      - `password` string, required — A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API.
  - `labels` Labels — Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

## Response `201`

Created

- SchemaRegistry — A schema registry that contains schemas.
  - `name` string, required — The unique name of the schema registry.
  - `description` string — A human-readable description of the virtual cluster.
  - `type` string, required — The type of the schema registry.
  - `config` object — The configuration of the schema registry.
  - `labels` Labels — Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
  - `id` string, uuid, required — The unique identifier of the schema registry.
  - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required — An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/revisions/b576ea92fca2/schema)
