---
title: Adding the plugin using the Konnect API
description: When using the /plugin-schemas API, authenticate your requests with either a personal access token or a system account token by including it in the authorization header:
component: pingauthorize
version: 10.1
page_id: pingauthorize:pingauthorize_integrations:paz_adding_plugin_konnect_api
canonical_url: https://docs.pingidentity.com/pingauthorize/10.1/pingauthorize_integrations/paz_adding_plugin_konnect_api.html
revdate: January 23, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  result: Result:
  result-2: Result:
---

# Adding the plugin using the Konnect API

## About this task

When using the `/plugin-schemas` API, authenticate your requests with either a personal access token or a system account token by including it in the authorization header:

```
--header 'Authorization: Bearer kpat_xgfT'
```

## Steps

1. Upload the `schema.lua` file for your plugin using the `/plugin-schemas` endpoint:

   ```shell
   curl -i -X POST \
   https://{region}.api.konghq.com/konnect-api/api/runtime_groups/{controlPlaneId}/v2/plugin-schemas \
   --header 'Content-Type: application/json' \
   --data "{\"lua_schema\":  <your escaped Lua schema>}"
   ```

   ### Result:

   You should get an `HTTP 201` response.

2. To check that your schema was uploaded, use the following request:

   ```shell
   curl -i -X GET \
   https://{region}.api.konghq.com/konnect-api/api/runtime_groups/{controlPlaneId}/v1/available-plugins
   ```

   ### Result:

   This request returns an `HTTP 200` response with the schema for your plugin as a JSON object.
