- What you’re tagging: a message or conversation
- The signal name:
feedback - The signal value:
thumbs_uporthumbs_down
occurred_at(when the signal happened)user_message(a message the user may have included with the signal)
Base URL
All requests should be sent to:https://api.brixo.com
For example:
POST https://api.brixo.com/v1/messages/:id/signalsPOST https://api.brixo.com/v1/conversations/:id/signals
Endpoints
Message-level signal
POST /v1/messages/:id/signals
Conversation-level signal
POST /v1/conversations/:id/signals
:idis a customer-provided ID from your system (not Brixo-generated). If Brixo cannot find the message/conversation, the API returns404 Not Found.
Authentication
Authorization: Bearer <BRIXO_API_KEY>
Content-Type
Requests and error responses follow JSON:API.- Request header:
Content-Type: application/vnd.api+json - Response header:
Content-Type: application/vnd.api+json(for errors)
Request body
Feedback signal
Omitting occurred_at
Ifoccurred_at is omitted, Brixo will use the time it received the request.
Attributes
Required
-
data.type(string) Must be"signals". -
data.attributes.name(string) Must be"feedback". -
data.attributes.value(string) Must be one of:"thumbs_up""thumbs_down"
Optional
-
data.attributes.occurred_at(string, RFC3339 / ISO-8601) When the signal occurred. If omitted, server-received time is used. -
data.attributes.user_message(string) A user message the user may have included with their feedback.
Response
Success
204 No Content
Errors
Error responses use the JSON:API error object format:Common errors
400 Bad Request- Missing
data,data.type, ordata.attributes data.typeis not"signals"nameis missing or not"feedback"valueis missing or not one of"thumbs_up" | "thumbs_down"occurred_atis present but not a valid RFC3339 timestamp
- Missing
401 Unauthorized- Missing or invalid API key
404 Not Found- Message or conversation
:idnot found
- Message or conversation
413 Payload Too Large- Request body too large
Examples
Message feedback (thumbs up)
POST /v1/messages/msg_1042/signals
Conversation feedback (thumbs down)
POST /v1/conversations/conv_abc123/signals
