Specific API Endpoints
Create Feedback
Create feedback in Melodi.
POST
/
feedback
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.
Type of feedback
Available options:
POSITIVE
, NEGATIVE
External ID of the thread containing the target message
Text content of the feedback
ID of the specific message for feedback. If not provided, feedback will be attached to the thread's last message
Recommended - ID of the project this thread belongs to. Helps ensure correct thread identification
External user information for associating feedback with a user
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)
Response
200 - application/json
Unique identifier for the feedback
List of attribute options with their full attribute details
Type of the feedback
Maximum length:
255
Text content of the feedback
Information about the external user who provided the feedback
Was this page helpful?