API Reference

Create Text Item Context

Creating a new text item context requires a name and content, everything else is optional. The context item will be created along with its first version, which becomes the context item's primary version by default.

Endpoint
POST https://api.zatomic.ai/v1/context/items/text

Endpoint Request

Request Properties
name
string
Name of the context item.
content
string
Text content for the context item.
description
string, optional
Description for the context item.
version_name
string, optional
Name for the context item version.
Request Body
{
   "name": "Context item name",
   "content": "This is a reusable piece of text.",
   "description": "Context item description.",
   "version_name": "Context item version name"
}

Endpoint Response

A successful call returns a 201 status code with a response that contains the context item object.

HTTP Status Codes
201 Created The context item was created.
500 Internal Server Error Something went wrong on Zatomic's end.