Calseta is under active development. APIs and features may change. We welcome feedback and contributions on GitHub.
cURL
curl --request POST \ --url https://api.example.com/v1/context-documents
{ "data": { "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "title": "<string>", "document_type": "<string>", "is_global": true, "description": "<string>", "tags": [ "<string>" ], "version": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "content": "<string>", "targeting_rules": {} }, "meta": {} }
Create a context document.
Accepts either:
Content-Type: application/json
content
Content-Type: multipart/form-data
file
Successful Response
Full response — includes content and targeting_rules.
Show child attributes