Create an anonymous comment
const url = 'https://feedzzie.com/api/widget/ideas/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/comments';const options = { method: 'POST', headers: {'X-Feedzzie-Key': '<X-Feedzzie-Key>', 'Content-Type': 'application/json'}, body: '{"anonymous_id":"example","content":"example","parent_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://feedzzie.com/api/widget/ideas/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/comments \ --header 'Content-Type: application/json' \ --header 'X-Feedzzie-Key: <X-Feedzzie-Key>' \ --data '{ "anonymous_id": "example", "content": "example", "parent_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Posts a comment as an anonymous widget user. For now the comment is published at once (pending=false) whatever the project’s require_approval setting, which covers ideas; comments will follow it once the dashboard has a review queue for them. The moderation brake holds it (pending=true) once 20 widget entries that are published at once reached the project in the last hour (its comments and, only when require_approval is off, its ideas; with it on, only comments count), or when it cannot count them.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "anonymous_id": "example", "content": "example", "parent_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Comment created (pending=true only when the moderation brake holds it)
Validation error
The X-Feedzzie-Key public key is invalid, revoked or expired
object
Example
{ "error": "Invalid or revoked public key"}Public key not bound to a project, app bundle ID not allowed, project’s widget disabled, domain not allowed (a write that carries an Origin header, with or without a key, must come from one of the project’s allowed_domains, so a project without them only takes writes by key without Origin), anonymous submissions off, or anonymous_id banned from this board
Idea not found
The body is over 64 KiB. With a Content-Length over the cap it is refused before the body is read; without one (a chunked body), reading stops at the cap
object
Example
{ "error": "Request body too large"}Too many requests: the per-IP limit, the per-IP limit of distinct anonymous_id values, the daily cap of this anonymous_id, or the 5 votes per idea and IP every 24 hours; an IPv6 client also shares each per-IP limit with its /48 network. Retry after Retry-After seconds.
object
The Retry-After value, readable from a browser on any origin
Example
{ "error": "Rate limit exceeded", "retryAfter": 1830}Headers
Section titled “Headers”Seconds to wait before retrying
The rate limiter (Upstash) could not be reached, or a read the widget needs (the public key, the organization, the project or its old slugs, the idea, a parent comment or the widget settings) failed, so the request was not processed. Retry after the given delay. A failed read is never answered as a 401, 403 or 404, so it says nothing about the key or the board. When only Upstash fails, reads are served without the rate limiter.
object
Example
{ "error": "Service temporarily unavailable", "retryAfter": 30}Headers
Section titled “Headers”Seconds to wait before retrying