System APIs
Registers a new AI chat message
| HTTP method | POST |
| URI | https://api.rambase.net/system/ai-chat-messages |
| Supported formats | Xml, Html, Json (ex. $format=json) |
| Successful HTTP status code | 201 |
| API resource identifier | 7277, version 1 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
MessageId
Required/mandatory field
External identifier of the chat message
>{String}</MessageId>SessionId
Required/mandatory field
External identifier of the chat session
>{String}</SessionId>LanguageModel
Required/mandatory field
Language model used for the message
>{String}</LanguageModel>UserId
Required/mandatory field
User identifier
Minimum value: 100
>{Integer}</UserId>InputTokens
Required/mandatory field
Number of input tokens
Minimum value: 0
>{Long}</InputTokens>OutputTokens
Required/mandatory field
Number of output tokens
Minimum value: 0
>{Long}</OutputTokens>CacheReadTokens
Required/mandatory field
Number of cache-read tokens
Minimum value: 0
>{Long}</CacheReadTokens>CacheWriteTokens
Required/mandatory field
Number of cache-write tokens
Minimum value: 0
>{Long}</CacheWriteTokens>MessageId
Required/mandatory field
External identifier of the chat message
": "{String}",SessionId
Required/mandatory field
External identifier of the chat session
": "{String}",LanguageModel
Required/mandatory field
Language model used for the message
": "{String}"UserId
Required/mandatory field
User identifier
Minimum value: 100
": "{Integer}"InputTokens
Required/mandatory field
Number of input tokens
Minimum value: 0
": "{Long}",OutputTokens
Required/mandatory field
Number of output tokens
Minimum value: 0
": "{Long}",CacheReadTokens
Required/mandatory field
Number of cache-read tokens
Minimum value: 0
": "{Long}",CacheWriteTokens
Required/mandatory field
Number of cache-write tokens
Minimum value: 0
": "{Long}"The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
| $access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
| $db String, optional | Set the database/company for the request |
| $useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
| $showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
| $lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
Read more about filters and sorting on how to use filter parameters and named filters.
Read more about filters and sorting on how to use sortable parameters
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
AiChatMessageId
Unique identifier of the AI chat message
>{Integer}</AiChatMessageId>Status
Status of the AI chat message
Possible domain values can be found here
>{Integer}</Status>CreatedAt
Date and time of creation
>{Datetime}</CreatedAt>MessageId
External identifier of the chat message
>{String}</MessageId>SessionId
External identifier of the chat session
>{String}</SessionId>LanguageModel
Language model used for the message
>{String}</LanguageModel>UserId
User identifier
>{Integer}</UserId>UserLink
User reference
>{String}</UserLink>InputTokens
Number of input tokens
>{Long}</InputTokens>OutputTokens
Number of output tokens
>{Long}</OutputTokens>CacheReadTokens
Number of cache-read tokens
>{Long}</CacheReadTokens>CacheWriteTokens
Number of cache-write tokens
>{Long}</CacheWriteTokens>AiChatMessageId
Unique identifier of the AI chat message
": "{Integer}",Status
Status of the AI chat message
Possible domain values can be found here
": "{Integer}",CreatedAt
Date and time of creation
": "{Datetime}",MessageId
External identifier of the chat message
": "{String}",SessionId
External identifier of the chat session
": "{String}",LanguageModel
Language model used for the message
": "{String}"UserId
User identifier
": "{Integer}",UserLink
User reference
": "{String}"InputTokens
Number of input tokens
": "{Long}",OutputTokens
Number of output tokens
": "{Long}",CacheReadTokens
Number of cache-read tokens
": "{Long}",CacheWriteTokens
Number of cache-write tokens
": "{Long}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return: