---
title: "Create a new CustomPlugin"
method: POST
path: "/v2/control-planes/{controlPlaneId}/core-entities/custom-plugins"
tags: ["CustomPlugins"]
---

# Create a new CustomPlugin

`POST /v2/control-planes/{controlPlaneId}/core-entities/custom-plugins`

**Pre-release Endpoint**
This endpoint is currently in beta and is subject to change.

Create a new CustomPlugin

## Request body

- CustomPlugin
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `handler` string, required — The handler for the given custom plugin.
  - `id` string, nullable — A string representing a UUID (universally unique identifier).
  - `name` string, required — The name to associate with the given custom plugin. Consider using a distinct prefix for custom plugins to avoid naming conflicts with new bundled plugins in future Kong releases.
  - `schema` string, required — The schema for the given custom plugin.
  - `tags` string[], nullable — A set of strings representing tags.
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Response `201`

Successfully created CustomPlugin

- CustomPlugin
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `handler` string, required — The handler for the given custom plugin.
  - `id` string, nullable — A string representing a UUID (universally unique identifier).
  - `name` string, required — The name to associate with the given custom plugin. Consider using a distinct prefix for custom plugins to avoid naming conflicts with new bundled plugins in future Kong releases.
  - `schema` string, required — The schema for the given custom plugin.
  - `tags` string[], nullable — A set of strings representing tags.
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Other responses

- `401` — Unauthorized

## Changes

- **2025-07-22** `76b0fefddb0d` — 1 breaking, 1 info
  - the response property `tags` became nullable for the status `201`
  - the request property `tags` became nullable

[Change history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/control-planes/:controlPlaneId/core-entities/custom-plugins/post.md)

---

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