Skip to main content
API reference sections

Schema

Message

Type object

Shape

FieldTypeDescription
idrequiredMessageId

MessageId - a client-minted UUID v4, never derived from content or location.

chat_idrequiredChatId

ChatId - a client-minted UUID v4, never derived from content or location.

ordinalrequiredinteger (uint32, >= 0)
rolerequiredChatRole
staterequiredMessageState
markdownrequiredstring
origin_message_idMessageId or null
providerAiProviderId or null
requested_modelstring or null
resolved_modelstring or null
error_classAiErrorClass or null
created_atrequiredTimestamp

Epoch milliseconds, UTC. Signed, so instants before 1970 are representable.

completed_atTimestamp or null
Example
{
  "id": "00000000-0000-4000-8000-000000000000",
  "chat_id": "00000000-0000-4000-8000-000000000000",
  "ordinal": 0,
  "role": "user",
  "state": "pending",
  "markdown": "string",
  "origin_message_id": "00000000-0000-4000-8000-000000000000",
  "provider": "string",
  "requested_model": "string",
  "resolved_model": "string",
  "error_class": "configuration",
  "created_at": 0,
  "completed_at": 0
}

The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.

Generated from contract version 1. Last updated .

Privacy choices

Choose which optional tools Koru may use on this site. Your choice is saved in a cookie in this browser for 12 months. Privacy policy

Privacy choices

Keep you signed in, protect forms and remember your language and this choice.

Always on

PostHog and Google Analytics 4 measure page views and actions such as downloads, using cookies or local storage.

PostHog records how pages are used, with form inputs masked and private pages excluded. Needs Analytics.

Ahrefs Web Analytics measures visits and where they come from, and Google Ads measures whether our ads led to a visit or download.