Get the widget configuration
const url = 'https://feedzzie.com/api/widget/config';const options = {method: 'GET', headers: {'X-Feedzzie-Key': '<X-Feedzzie-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://feedzzie.com/api/widget/config \ --header 'X-Feedzzie-Key: <X-Feedzzie-Key>'The board of the project: its organization, the project’s name, logo and color, and the project’s widget settings. Auth via public key (X-Feedzzie-Key), which gives the project and ignores org and project in the query, or the org slug (and optional project slug) in the query + Origin, which must be in the project’s allowed_domains when it has them. settings.require_approval tells whether a new idea waits for moderation, by the rule POST /api/widget/ideas applies: false only when the project’s require_approval is explicitly off, true when it is on or can’t be read.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Query Parameters
Sección titulada «Query Parameters»Org slug (only for the slug + Origin auth path)
Project slug inside the org (only for the slug + Origin auth path; defaults to the org’s default project)
Responses
Sección titulada «Responses»The widget configuration of the project
object
Kept for FeedzzieKit 0.1.1; logo_url is the project’s logo when it has one, else the organization’s
object
object
object
The widget color, else the project’s color
Show “Powered by Feedzzie”. Always true on the Free plan; a paid plan uses the widget setting
True when POST /api/widget/ideas needs a description of at least 20 characters (Unicode code points of the trimmed text); without one it answers 400 { error: “Description is required” }, and below the minimum 400 { error: “Description must be at least 20 characters” }. Temporarily, a request from the native SDK (public key, no Origin header) is not held to it until FeedzzieKit marks the field. Always present, never null.
Visual overrides as saved (accent_color, background_color, text_color, border_radius, font_family), or null
object
True when a new idea waits for moderation (POST /api/widget/ideas answers pending=true); false when it is published at once. Always present, never null: true when the project’s require_approval is on or can’t be read. It reflects the setting when the config is read, not the moderation brake, which can hold a new idea of a project with moderation off once it received 20 widget ideas and comments in the last hour; for each idea, the pending field of POST /api/widget/ideas is the authoritative answer.
True when POST /api/widget/reports takes reports and the panel has its Reports queue (FeedzzieKit 0.5.0). Always present: an older server, without the field, takes none, and the SDK keeps reports to itself.
True when DELETE /api/widget/ideas/{id} and DELETE /api/widget/me delete a person’s own data (FeedzzieKit 0.5.0). Always present: an older server, without the field, deletes nothing, and the SDK does not offer it.
Example
{ "settings": { "position": "bottom-right" }}Missing org parameter
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, or domain not allowed
Organization or project not found
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
Sección titulada «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
Sección titulada «Headers»Seconds to wait before retrying