Skip to content

AI Chats

Your conversations with the AI.

Open AI Chats
Checked against the dashboard on November 20, 2026

AI Chats has nine public methods. They manage chats that already exist: the name, the pin, the favorite mark, the archive and the delete, and the removal of one message. Each one acts for the account whose API key you use.

Starting a chat, sending a message, reading a chat's messages and choosing a plan are done in the dashboard. They have no public method today.

Send a request to a method with your key:

curl -s https://xuda.ai/cpi/rename_ai_chat \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","conversation_id":"YOUR_CONVERSATION_ID","title":"Quarterly numbers"}'
const res = await fetch('https://xuda.ai/cpi/rename_ai_chat', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({
    api_key: 'YOUR_API_KEY',
    conversation_id: 'YOUR_CONVERSATION_ID',
    title: 'Quarterly numbers',
  }),
});
const { code, data } = await res.json();
import requests

res = requests.post(
    'https://xuda.ai/cpi/rename_ai_chat',
    json={
        'api_key': 'YOUR_API_KEY',
        'conversation_id': 'YOUR_CONVERSATION_ID',
        'title': 'Quarterly numbers',
    },
)

A good answer has code 1. A refused one has a negative code and says why in data.

Every method takes the chat's id as conversation_id, which is the last part of the chat's address in the dashboard. Each also takes an optional workspace_id, to act in a workspace other than your own.

Name and mark a chat

  • rename_ai_chat takes conversation_id and title. The title is trimmed and cut to 120 characters, and an empty one is refused. A chat that was shared with you is renamed only by its owner, and a chat you did not start is refused.
  • pin_ai_chat and unpin_ai_chat pin a chat and take the pin away.
  • favorite_ai_chat and unfavorite_ai_chat set and clear the favorite mark, the heart on the chat's card.

Archive and delete

  • archive_ai_chat moves a chat out of the Active list and into Archived. Only the person who started the chat, or the owner of the space, can archive it.
  • unarchive_ai_chat brings an archived chat back.
  • delete_ai_chat deletes a chat for good. It takes only an archived chat: archive first, then delete. Deleting a chat that was shared with you ends the share instead.
  • delete_conversation_item removes one message from a chat. It takes conversation_item_id, and only a message you wrote yourself.
Deleting cannot be undone

A chat deleted with delete_ai_chat is gone with all its messages. Archive is the step to use when you only want a chat out of the way.

How is this guide?

Last updated on November 12, 2026