v1
latestOpenAPI 3.0.02026-07-174565114.3 KBthreads
Get suggestions for a message
Retrieves all suggestions generated for a specific message
get/threads/{id}/messages/{messageId}/suggestions
Path parameters
idstring required
Example:thread_123456789
ID of the thread to get suggestions for
messageIdstring required
Example:msg_123456789
ID of the message to get suggestions for
Response
List of suggestions for the message
Example response
[
{
"id": "sug_123456789",
"messageId": "msg_123456789",
"title": "Add error handling",
"detailedSuggestion": "Add try-catch block to handle potential API errors",
"description": "Add try-catch block to handle potential API errors",
"metadata": {
"category": "error-handling",
"priority": "high"
}
}
]