For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
DocumentationAPI ReferenceChangelog
DocumentationAPI ReferenceChangelog
  • API Reference
      • POSTRequest Agent Auth Code
      • POSTConfirm Agent Auth Code
      • POSTCreate an Agent Research Object
      • GETGet an Agent Research Object
      • GETGet Agent Research Results
      • GETGet a Single Agent Research Result
      • POSTCreate an Agent Research Update
      • POSTCreate an Agent Research Chat Message
      • GETGet an Agent Research Chat Message
      • GETStream an Agent Research Chat Message
      • POSTUpload an Agent File
      • GETGet Agent Balance
      • POSTCreate Agent Top-Up Checkout Session
API ReferenceAgent

Create an Agent Research Chat Message

POST
https://api.caesar.xyz/agents/research/:id/chat
POST
/agents/research/:id/chat
$curl -X POST https://api.caesar.xyz/agents/research/id/chat \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "content": "Can you provide the latest research findings on renewable energy adoption in Europe?"
>}'
1{
2 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3 "content": "The latest studies indicate a significant increase in renewable energy adoption across Europe, with solar and wind power leading the growth.",
4 "status": "completed",
5 "error_message": "",
6 "results": [
7 {
8 "id": "1e4d5f7a-8c3b-4f2a-9d6e-7b8a9c0d1234",
9 "title": "European Renewable Energy Report 2024",
10 "url": "https://www.europeanenergyreport.eu/2024/renewable-energy-adoption",
11 "citation_index": 1
12 }
13 ]
14}

Creates an async chat message for a research job. Set stream=true to reuse the SSE chat chunk stream.

Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequiredformat: "uuid"
Research job identifier.

Query parameters

streambooleanOptionalDefaults to false
When true, responds with an SSE stream of chat chunks.

Request

This endpoint expects an object.
contentstringRequired
Chat message content.

Response

Chat message created or stream started.
idstringformat: "uuid"
Assistant message identifier.
contentstring
Assistant message content.
statusenum
Status of the assistant chat message.
Allowed values:
error_messagestring
Error details when status is failed.
resultslist of objects
Optional cited results for completed responses.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error