Api session items chatmessages

From Tygron Support wiki
Revision as of 13:42, 14 April 2026 by Frank@tygron.nl (talk | contribs)
Jump to navigation Jump to search

Api session items Chat Messages Endpoints.

Edit items with event: editorchat.

Default Query:

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

Example Response:

[ {
  "channelID" : 300261276,
  "date" : 1776173326278,
  "id" : 114,
  "message" : "Instructions: When asked for API endpoints always provide the exact full API URL in the answer.",
  "role" : "USER",
  "version" : 1631
}, {
  "calcTimeMS" : 7252,
  "channelID" : 300261276,
  "date" : 1776173326278,
  "finished" : true,
  "id" : 115,
  "message" : "Understood. I will use the Tygron Wiki as the primary source for all answers and will provide the exact full API URLs whenever API endpoints are requested. \n\nHow can I help you today?",
  "role" : "ASSISTANT",
  "thinking" : "*   User's first prompt: \"Force using Tygron WIKI in all answers\"\n    *   User's second prompt: \"Instructions: When asked for API endpoints always provide the exact full API URL in the answer.\"\n    *   Context: The user wants me to act as an assistant that relies on the Tygron Wiki (via the provided tools) and follows a specific formatting rule for API endpoints.\n\n    *   I have access to `search-page` and `get-page` tools.\n    *   I should use these tools to find information about Tygron.\n    *   If the user asks for an API endpoint, I must provide the full URL.\n\n    *   Acknowledge the instructions.\n    *   Confirm that I will use the Tygron Wiki for information.\n    *   Confirm that I will provide full API URLs when requested.",
  "version" : 1646
} ]

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