Specific API Endpoints
Create Feedback
Create feedback in Melodi.
POST
Authorizations
Your Melodi API key
Body
application/json
Create feedback request object. Feedback is always associated with a message:
- If only externalThreadId is provided, feedback will be attached to the last message in the thread
- If both externalThreadId and externalMessageId are provided, feedback will be attached to the specified message Note: externalThreadId is only unique per project, so including projectId is recommended to ensure correct thread identification.
External ID of the thread containing the target message
Type of feedback
Available options:
POSITIVE
, NEGATIVE
Key-value pairs where:
- key: attribute name (must match an existing attribute in the project)
- value: option name (must match an existing option for that attribute)
ID of the specific message for feedback. If not provided, feedback will be attached to the thread's last message
External user information for associating feedback with a user
Text content of the feedback
Recommended - ID of the project this thread belongs to. Helps ensure correct thread identification
Response
200 - application/json
List of attribute options with their full attribute details
Unique identifier for the feedback
Information about the external user who provided the feedback
Text content of the feedback
Type of the feedback
Maximum length:
255
Was this page helpful?