API Reference

Create Text Context

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

Endpoint
POST https://api.zatomic.ai/v1/contexts/text

Endpoint Request

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

Endpoint Response

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

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