---
title: "Create user token"
method: POST
path: "/user/{userId}/token/create"
tags: ["User"]
---

# Create user token

`POST /user/{userId}/token/create`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/user/{userId}/token/create`
- Auth: HTTP bearer

## Path parameters

- `userId` string, required: The ID of the user

## Request body

- object
  - `name` string: The name of the token
  - `description` string: The description of the token
  - `config` object: Token configuration
  - `meta` object: Custom metadata for the token

## Response `200`

The user token was created successfully

- object
  - `id` string, required: The ID of the created user token
  - `token` string, required: The token of the created user token
  - `createdAt` number, required: The timestamp for when the user token was created (in milliseconds)

## 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)
