Authorizations
JWT token obtained from /api/auth/login endpoint
curl --request GET \
--url https://api.ai2fin.com/api/chat/conversations/{id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"conversation": {
"id": "<string>",
"title": "<string>",
"messageCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"messages": [
{
"id": "<string>",
"conversationId": "<string>",
"role": "user",
"content": "<string>",
"toolsUsed": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}Fetch a conversation with full message history
curl --request GET \
--url https://api.ai2fin.com/api/chat/conversations/{id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"conversation": {
"id": "<string>",
"title": "<string>",
"messageCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"messages": [
{
"id": "<string>",
"conversationId": "<string>",
"role": "user",
"content": "<string>",
"toolsUsed": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}JWT token obtained from /api/auth/login endpoint