Dec 2025 - New! Caching input tokens unlocks immediate, automatic ~30% credit savings on supported models
cURL
curl --request POST \ --url http://localhost:3000/api/user/favorites \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data '{}'
{ "success": true, "data": [ { "id": "688b024f7db6fe6e921399e3", "in": { "input": "How are you?" }, "out": { "outputs": [ "I am doing wonderful, thank you for asking..." ] }, "status": "active", "favorite": true } ] }
Returns a list of dialogues marked as favorites by the authenticated user
JWT token passed in x-access-token header
Empty object for POST request
Successfully retrieved favorite history dialogues
Indicates if the request was successful
Array of history dialogues marked as favorites
Show child attributes
User input/query
AI assistant responses
Unique history identifier
History creation timestamp
Credits consumed for this history dialog
Token usage count
Cached tokens used
Completion tokens generated
Response latency in milliseconds
Whether hitsory is marked as favorite
Whether history is marked as forgotten
Associated course identifier
Name of associated course
Total query processing duration in milliseconds
Whether the history dialog was successful
Assistant unique identifier
Assistant name
Number of likes for this assistant
Assistant avatar image URL
Tool execution identifier
Tool name used
Arguments passed to the tool
Tool response
Length of tool response
Whether tool execution was successful
Tool execution record identifier
AI model used for the conversation
Error message when success is false
Was this page helpful?