Record user feedback and ratings for conversations or individual messages.
Use this endpoint to collect feedback about response quality or overall conversation experiences. You can rate either a specific message (using messageId or externalMessageId) or an entire conversation (using conversationId or externalConversationId).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request payload for logging ratings.
The Greenflash product ID to rate.
The rating value. Must be between ratingMin and ratingMax (inclusive).
The minimum possible rating value (e.g., 1 for a 1-5 scale).
The maximum possible rating value (e.g., 5 for a 1-5 scale).
The Greenflash conversation ID to rate. Either conversationId, externalConversationId, messageId, or externalMessageId must be provided.
Your external conversation identifier to rate. Either conversationId, externalConversationId, messageId, or externalMessageId must be provided.
The Greenflash message ID to rate. Either conversationId, externalConversationId, messageId, or externalMessageId must be provided.
Your external message identifier to rate. Either conversationId, externalConversationId, messageId, or externalMessageId must be provided.
When the rating was given. Defaults to current time if not provided.
Optional text feedback accompanying the rating.
Rating logged successfully
Success response for rating logging.
Whether the API call was successful.