Api session items chatmessages
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_TOKENExample 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_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/chatmessages/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/chatmessages/size/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/chatmessages/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/chatmessages/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/chatmessages/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/chatmessages/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/chatmessages/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/chatmessages/?f=ZIPSMILE&token=API_TOKENApi 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 |