API Reference
Submit or remove feedback (rating) for an AI message. Use positive, negative, or null to clear the rating. Requires Plus plan or higher.
/api/v1/agents/{id}/conversations/{conversationId}/messages/{messageId}/feedback
Plus+| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Agent ID (Path) |
| conversationId | string | Required | Conversation ID (Path) |
| messageId | string | Required | Message ID (Path) |
| rating | string | null | Required | positive, negative, or null |
json
{
"messageId": 123,
"rating": "positive" | "negative" | null
}curl -X POST "https://chatspark.io/api/v1/agents/ag_123/conversations/conv_abc/messages/456/feedback" \
-H "Authorization: Bearer cs_live_..." \
-H "Content-Type: application/json" \
-d '{"rating":"positive"}'