Get a chat
Read back a chat this key created, a page of messages at a time.
Messages oldest first, at most limit of them. While nextCursor is not null, pass it as cursor for the next page; a page can hold fewer than limit messages before the last.
Scope: chat
GET
/v1/chat/{chatId}Authorization
AuthorizationBearer token (aiv_sk_) · headerrequiredAn Aiventic API key, sent as Authorization: Bearer aiv_sk_....
Path parameters
chatIdstring<uuid>requiredQuery parameters
limitinteger | stringMessages per page, 1 to 100. Default 50.
matches ^-?(?:0|[1-9]\d*)$
cursorstringThe previous page's nextCursor. Omit for the first page.
Responses
200
OK
chatIdstringrequiredcreatedAtstring<date-time>requiredbrandstring | nullrequiredmodelstring | nullrequiredmessagesPublicChatMessage[]requiredShow propertiesHide properties
Array of
PublicChatMessageidstringrequiredrolePublicMessageRolerequiredAllowed:
userassistanttextstringrequiredcreatedAtstring<date-time>requiredcitationsPublicCitation[]requiredShow propertiesHide properties
Array of
PublicCitationtypePublicCitationTyperequiredAllowed:
manualpartsjobhandbooktitlestringrequiredurlstring | nullrequiredpageinteger | string | nullrequiredmatches ^-?(?:0|[1-9]\d*)$
itemsPublicItem[]requiredShow propertiesHide properties
Array of
PublicItemidstring<uuid>requiredkindPublicItemKindrequiredAllowed:
choicequickReplypartCardstatusPublicItemStatusrequiredAllowed:
pendingresolvedexpiredchoicePublicChoice | nullrequiredShow propertiesHide properties
One of:
null
nullPublicChoice
promptstringrequiredaxesPublicChoiceAxis[]requiredShow propertiesHide properties
Array of
PublicChoiceAxisaxisstringrequiredlabelstring | nullrequiredoptionsPublicChoiceOption[]requiredShow propertiesHide properties
Array of
PublicChoiceOptionidstringrequiredtextstringrequireddescriptionstring | nullrequiredquickReplyPublicQuickReply | nullrequiredShow propertiesHide properties
One of:
null
nullPublicQuickReply
promptstringrequiredsuggestionsPublicQuickReplySuggestion[]requiredShow propertiesHide properties
Array of
PublicQuickReplySuggestiontextstringrequireddescriptionstring | nullrequiredpartCardPublicPartCard | nullrequiredShow propertiesHide properties
One of:
null
nullPublicPartCard
partNumberstringrequirednamestringrequireddescriptionstring | nullrequiredimageUrlstring | nullrequiredpricenumber | string | nullrequiredmatches ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
currencystring | nullrequiredstockStatusPublicStockStatus | nullrequiredShow propertiesHide properties
One of:
null
nullPublicStockStatus
anyviewUrlstring | nullrequiredspecsPublicPartSpec[]requiredShow propertiesHide properties
Array of
PublicPartSpecnamestringrequiredvaluestringrequiredisPlaceholderbooleanrequiredsupplierPartNumberstring | nullrequiredsupplierstring | nullrequiredresolutionPublicItemResolution | nullrequiredShow propertiesHide properties
One of:
null
nullPublicItemResolution
choicePublicChoiceResolution | nullrequiredShow propertiesHide properties
One of:
null
nullPublicChoiceResolution
picksobjectrequiredescapedAxesstring[]requiredquickReplyPublicQuickReplyResolution | nullrequiredShow propertiesHide properties
One of:
null
nullPublicQuickReplyResolution
indexinteger | stringrequiredmatches ^-?(?:0|[1-9]\d*)$
nextCursorstring | nullrequiredPass it as cursor for the next page of messages. Null on the last page.
400
Bad Request
typestring | nulltitlestring | nullstatusinteger | string | nullmatches ^-?(?:0|[1-9]\d*)$
detailstring | nullinstancestring | null401
Unauthorized
typestring | nulltitlestring | nullstatusinteger | string | nullmatches ^-?(?:0|[1-9]\d*)$
detailstring | nullinstancestring | null403
Forbidden
typestring | nulltitlestring | nullstatusinteger | string | nullmatches ^-?(?:0|[1-9]\d*)$
detailstring | nullinstancestring | null404
Not Found
typestring | nulltitlestring | nullstatusinteger | string | nullmatches ^-?(?:0|[1-9]\d*)$
detailstring | nullinstancestring | null429
Too Many Requests
typestring | nulltitlestring | nullstatusinteger | string | nullmatches ^-?(?:0|[1-9]\d*)$
detailstring | nullinstancestring | null500
Internal Server Error
typestring | nulltitlestring | nullstatusinteger | string | nullmatches ^-?(?:0|[1-9]\d*)$
detailstring | nullinstancestring | null