Get conversation
const url = 'https://api.foldspace.ai/v1/conversation/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {'X-FOLDSPACE-API-KEY': '<X-FOLDSPACE-API-KEY>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.foldspace.ai/v1/conversation/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'X-FOLDSPACE-API-KEY: <X-FOLDSPACE-API-KEY>'Retrieves conversation by conversation id.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”UUID of the conversation to retrieve
Responses
Section titled “ Responses ”Conversation retrieved successfully
AI Conversation Data Transfer Object
object
Unique UUID of the conversation
Unique user ID the conversation belongs to
Optional name/title for the conversation
Product code linked to this conversation
Environment code (1=prod, 2=stage, 3=test, 4=dev)
Origin of event or chat
AI chat context object containing relevant metadata
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Timestamp (epoch ms) when the conversation started
Timestamp (epoch ms) of the last interaction
Current status of the conversation
List of messages associated with this conversation
List of messages associated with this conversation
object
object
ID of the AI copilot assigned to the conversation
API name used by copilot (e.g., ChatGPT)
System-managed last modification date (epoch ms)
Version of the conversation object
Channel through which the conversation is happening (WEB, MOBILE, etc.)
Example
{ "userId": "user_1234", "name": "Customer Support Chat", "product": "X7B69NRTTBM7", "environment": 1, "eventOrigin": 100, "context": { "user": { "type": "APP_USER", "userType": "ANONYMOUS" } }, "startTime": 1734539909141, "lastInteractionTime": 1734539999999, "status": "ACTIVE", "messages": [ { "feedback": { "user": "VERY_GOOD", "userReason": "ANSWER_INCORRECT", "foldspaceUser": "VERY_GOOD" } } ], "copilotId": "cp_789", "lastModifiedDate": 1734539999999, "version": 1, "channel": "WIDGET"}Unauthorized
Example
{ "error": "Unauthorized"}Conversation not found
Example
{ "error": "Conversation not found"}Rate limit exceeded for subscription
Example
{ "error": "Rate limit exceeded for subscription"}Internal server error
Example
{ "error": "Internal server error"}