---
title: "Create secret"
method: POST
path: "/secret/create"
tags: ["Secret"]
---

# Create secret

`POST /secret/create`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/secret/create`
- Auth: HTTP bearer

## Request body

- object: Blueprint properties
  - `alias` string, nullable: The unique alias for the instance
  - `name` string: The associated name
  - `description` string: The associated description
  - `meta` Meta: Meta data information
  - `blueprintId` string, nullable: The ID of the blueprint
  - `kind` 'shared' | 'personal': The kind of the secret
  - `type` 'plain' | 'basic' | 'bearer' | 'jwt' | 'oauth' | 'template' | 'reference': The type of the secret
  - `value` string: The value of the secret
  - `config` object: The config of the secret
  - `visibility` 'private' | 'protected' | 'public': The visibility of the secret

## Response `200`

The secret was created successfully

- object
  - `id` string, required: The ID of the created secret

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
