---
title: "Create Context"
method: POST
path: "/api/v1/contexts"
tags: ["contexts"]
---

# Create Context

`POST /api/v1/contexts`

## Request body

- ContextCreateRequest — Request schema for context creation.
  - `metadata` object, nullable — Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
  - `provider_id` string, uuid, nullable

## Response `201`

Successful Response

- AdkServerApiSchemaCommonEntityModelClassGetitemLocalsModelOutput12
  - `id` string, uuid, required
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `last_active_at` string, date-time
  - `created_by` string, uuid, required
  - `provider_id` string, uuid, nullable
  - `metadata` object, nullable — Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/kagenti/apis/adk-server.md) · [All operations](https://skmtc.net/kagenti/apis/adk-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kagenti/adk-server/revisions/9c0d1a763cc6/schema)
