A valid request URL is required to generate request examples{
"id": "<string>",
"email": "<string>",
"chatHistory": [
{
"role": "system",
"content": "<string>",
"citations": [
"<string>"
],
"timestamp": 123,
"messageType": "message",
"humanInputData": {},
"promptResponseData": {},
"toolActivities": [
{}
],
"thinkingText": "<string>",
"scopedChatData": {},
"inlineButtonsData": {},
"messageNotificationData": {},
"workflowInvitationData": {
"title": "<string>",
"description": "<string>",
"started": true
},
"entryPromptData": {
"prompt": "<unknown>",
"isReminder": true,
"filledValues": {}
}
}
],
"dataSourceName": "<string>",
"dataSourceType": "<string>",
"dataSourceId": "<string>",
"chatId": "<string>",
"aiOptions": {
"maxTokens": 123,
"topP": 123,
"temperature": 123,
"topNDocuments": 123,
"systemPrompt": "<string>",
"filter": "<string>"
},
"title": "<string>",
"chatTitle": "<string>",
"isWorkspace": true,
"hasHumanInput": true,
"humanInputCount": 123,
"promptIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>",
"_ts": 123
}Create a chat log entry
Creates a chat log owned by the authenticated user. email, id, createdAt, and updatedAt are set server-side; a title is generated asynchronously from the chat history when none is provided.
A valid request URL is required to generate request examples{
"id": "<string>",
"email": "<string>",
"chatHistory": [
{
"role": "system",
"content": "<string>",
"citations": [
"<string>"
],
"timestamp": 123,
"messageType": "message",
"humanInputData": {},
"promptResponseData": {},
"toolActivities": [
{}
],
"thinkingText": "<string>",
"scopedChatData": {},
"inlineButtonsData": {},
"messageNotificationData": {},
"workflowInvitationData": {
"title": "<string>",
"description": "<string>",
"started": true
},
"entryPromptData": {
"prompt": "<unknown>",
"isReminder": true,
"filledValues": {}
}
}
],
"dataSourceName": "<string>",
"dataSourceType": "<string>",
"dataSourceId": "<string>",
"chatId": "<string>",
"aiOptions": {
"maxTokens": 123,
"topP": 123,
"temperature": 123,
"topNDocuments": 123,
"systemPrompt": "<string>",
"filter": "<string>"
},
"title": "<string>",
"chatTitle": "<string>",
"isWorkspace": true,
"hasHumanInput": true,
"humanInputCount": 123,
"promptIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>",
"_ts": 123
}Authorizations
Azure AD access token obtained via MSAL
Body
A persisted chat session (conversation transcript + source/AI metadata)
Chat log ID (UUID)
Owner's email / UPN (Cosmos partition key). Always set server-side from the authenticated user.
Ordered conversation messages
Show child attributes
Show child attributes
Display name of the data source at log-write time
DATASOURCE_TYPE at log-write time (shared, personal, workspace, sharepoint, ...)
Source chat ID — ephemeral workspace session ID for workspace chats, persisted chat ID for shared chats
AI inference options captured at log-write time
Show child attributes
Show child attributes
AI-generated title for the chat session (generated asynchronously after create/update)
Parent chat name (e.g. "My Workspace" for personal, chat tab title for shared)
True when produced by the ephemeral cross-chat workspace session — authoritative chat-kind signal on rehydrate
True if any message is human_input_prompt or prompt_response
Count of prompt_response messages
All promptTemplateIds referenced in this chat log
ISO-8601 creation timestamp (set server-side)
ISO-8601 update timestamp (set server-side)
Cosmos DB last-modified timestamp (epoch seconds)
Response
Chat log created
A persisted chat session (conversation transcript + source/AI metadata)
Chat log ID (UUID)
Owner's email / UPN (Cosmos partition key). Always set server-side from the authenticated user.
Ordered conversation messages
Show child attributes
Show child attributes
Display name of the data source at log-write time
DATASOURCE_TYPE at log-write time (shared, personal, workspace, sharepoint, ...)
Source chat ID — ephemeral workspace session ID for workspace chats, persisted chat ID for shared chats
AI inference options captured at log-write time
Show child attributes
Show child attributes
AI-generated title for the chat session (generated asynchronously after create/update)
Parent chat name (e.g. "My Workspace" for personal, chat tab title for shared)
True when produced by the ephemeral cross-chat workspace session — authoritative chat-kind signal on rehydrate
True if any message is human_input_prompt or prompt_response
Count of prompt_response messages
All promptTemplateIds referenced in this chat log
ISO-8601 creation timestamp (set server-side)
ISO-8601 update timestamp (set server-side)
Cosmos DB last-modified timestamp (epoch seconds)
Was this page helpful?