Api session items chatmessages

From Tygron Support wiki
Revision as of 08:09, 19 June 2026 by Frank@tygron.nl (talk | contribs) (Created page with "API Endpoint: /api/session/items/chatmessages/ Edit items with events described at Api session event editor chatmessage. Default Query: <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN</syntaxhighlight> Example Response: <syntaxhighlight lang="text" copy>[ { "channelID" : 0, "date" : 1781797226497, "id" : 0, "message" : "Welcome to Team Chat, here you can sent messages to other currently acti...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Endpoint: /api/session/items/chatmessages/

Edit items with events described at Api session event editor chatmessage.

Default Query:

https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN

Example Response:

[ {
  "channelID" : 0,
  "date" : 1781797226497,
  "id" : 0,
  "message" : "Welcome to Team Chat, here you can sent messages to other currently active users in your domain.",
  "role" : "INTRO",
  "version" : 1
}, {
  "channelID" : 1,
  "date" : 1781797226497,
  "id" : 1,
  "message" : "Hello! I am your Tygron Wiki assistant.\n\t\t\n\t\tI can help you with:\n\t\tSearching the Tygron Wiki for information on features, configurations and guides.\n\t\tValidating TQL Queries or API Endpoints to ensure they are correct.\n\t\t\n\t\tHow can I assist you today?",
  "role" : "INTRO",
  "version" : 2
} ]

Limit Queries

version=100:

https://engine.tygron.com/api/session/items/chatmessages/?version=100&token=API_TOKEN

Show Queries

max version:

https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKEN

size:

https://engine.tygron.com/api/session/items/chatmessages/size/?token=API_TOKEN

Formats

HTML:

https://engine.tygron.com/api/session/items/chatmessages/?f=HTML&token=API_TOKEN

JSON:

https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKEN

CSV:

https://engine.tygron.com/api/session/items/chatmessages/?f=CSV&token=API_TOKEN

SSV:

https://engine.tygron.com/api/session/items/chatmessages/?f=SSV&token=API_TOKEN

SMILE:

https://engine.tygron.com/api/session/items/chatmessages/?f=SMILE&token=API_TOKEN

ZIPJSON:

https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPJSON&token=API_TOKEN

ZIPSMILE:

https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPSMILE&token=API_TOKEN

Api Model AIChatMessage

API Model description of AIChatMessage

Name Type Description
calcTimeMS long
channelID int Chat Channel ID
date long
id int
message String
role Role
state AIState
thinking String
toolCalls AIToolCall[]
version int

Api Model AIState

API Enumeration description of AIState

Name Description
NONE
QUEUING
GENERATING
FINISHED

Api Model ChatMessage

API Model description of ChatMessage

Name Type Description
channelID int Chat Channel ID
date long
id int
message String
role Role
version int

Api Model DomainMessage

API Model description of DomainMessage

Name Type Description
channelID int Chat Channel ID
date long
fullName String
id int
message String
role Role
userName String
version int

Api Model Role

API Enumeration description of Role

Name Description
SYSTEM
INTRO
ASSISTANT
USER