v1

latestOpenAPI 3.0.02026-07-174565114.3 KB
threads

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

idstring required

Unique identifier for the suggestion

messageIdstring required

ID of the message this suggestion is for

titlestring required

Short title or summary of the suggestion

detailedSuggestionstring required

Detailed explanation of the suggestion

descriptionstring required

Detailed explanation of the suggestion (alias for detailedSuggestion)

metadataobject

Additional metadata for the suggestion

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"
    }
  }
]