chat

Create conversation

Creates a new conversation. Supports both authenticated users and anonymous sessions.

post/api/chat/conversations

Request

  • Base URL: https://localhost:8080
  • URL: https://localhost:8080/api/chat/conversations
  • Auth: none declared

Request body

titlestring required

Conversation title (first 100 chars of first message)

firstMessagestring

First message content (optional)

isPublicboolean

Whether conversation is public

source'web' | 'word_plugin' | 'slack' | 'docs'

Conversation source platform (e.g. docs for Google Docs add-on)

Example request

{
  "title": "What is the statute of limitations?",
  "firstMessage": "What is the statute of limitations for personal injury in California?",
  "source": "docs"
}

Response

Conversation created successfully

conversationIdstring required

Created conversation ID

Example response

{
  "conversationId": "uuid",
  "conversation": {
    "id": "uuid",
    "title": "What is the statute of limitations?",
    "source": "word_plugin",
    "isOwner": true,
    "lastMessageAt": "2024-01-01T00:00:00.000Z",
    "messageCount": 5,
    "createdAt": "2024-01-01T00:00:00.000Z",
    "updatedAt": "2024-01-01T00:00:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.