AIChats
Beta

Send a Copilot chat message

Append a user message to a Copilot chat owned by the authenticated user and return the assistant reply.

post/ai-chats/{chatId}/messages

Request

  • Base URL
    https://public.escape.tech/v3
  • Auth
    API key in header X-ESCAPE-API-KEY

Path parameters

chatIdstring uuid required

The chat ID

Example:00000000-0000-0000-0000-000000000000

Request body

contentstring required

The content of the user message

template'COPILOT' | 'DEFAULT'

The chat template to use. Defaults to COPILOT.

Response

OK

idstring uuid required

The id of the message

role'ASSISTANT' | 'SYSTEM' | 'TOOL' | 'USER' required

The role of the message author

contentstring required

The message content

createdAtstring date-time required

The date and time the message was created

Changes

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