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

# Create user context

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

## Request

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

## Path parameters

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

## Request body

- object: Instance crud properties
  - `name` string: The associated name
  - `description` string: The associated description
  - `meta` Meta: Meta data information
  - `payload` object: Context payload

## Response `200`

The user context was created successfully

- object: Instance list properties
  - `name` string: The associated name
  - `description` string: The associated description
  - `meta` Meta: Meta data information
  - `id` string, required: The instance ID
  - `createdAt` number, required: The timestamp (ms) when the instance was created
  - `updatedAt` number, required: The timestamp (ms) when the instance was updated
  - `blueprintId` string
  - `botId` string
  - `datasetId` string
  - `skillsetId` string
  - `contactId` string
  - `payload` object

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