HTTP Submit API
Submit feedback with POST /api/feedback from agents and server-side code.
HTTP
POST /api/feedback
Content-Type: application/json
{
"projectId": "proj_...",
"message": "The checkout button does nothing",
"userEmail": "ada@example.com",
"userName": "Ada Lovelace",
"pageUrl": "https://example.com/checkout"
}- Required:
projectIdandmessage(max 5000 characters). SupaFeedback uses AI to classify submissions as an issue, idea, or other. - Optional:
userEmail,userName(max 40 characters),pageUrl, andscreen(for example390x844). IncludeuserEmailto email the visitor when you move the report to In progress or Done. - A successful submit returns
{ ok: true, id, notifyToken }. UnknownprojectIdvalues return 404. - To add an email after submitting, send
POST /api/feedback/{id}/notifywith{ "token": notifyToken, "email": "…" }. That visitor then gets status-update emails. - CORS is open (
Access-Control-Allow-Origin: *). Rate limits are 30 requests per minute per IP and 60 per project. - Screenshots are accepted only as
multipart/form-datawith a JSONpayloadfield and exactly onescreenshotfile (PNG, JPEG, or WebP, max 3 MB). The payload must includescreenshotSourceset tocaptureorupload. - Over the limit, the API returns 429 with a
Retry-Afterheader in seconds. - Every submission gets the same AI spam check as the widget.