Ir al contenido
Esta referencia está solo en inglés. Las guías de la API están en español: primeros pasos con curl.

Delete everything of the person in the project

DELETE
/api/widget/me
curl --request DELETE \
--url https://feedzzie.com/api/widget/me \
--header 'X-Feedzzie-Key: <X-Feedzzie-Key>' \
--header 'X-Widget-Anonymous-Id: example'

Deletes, in one transaction, all or nothing, what this anonymous_id has in the key’s project: its ideas, published or not (each with its votes and comments, merged ideas coming back on their own), its votes and the counts they fed, its widget profile and its survey answers. The ideas the team has already taken (status planned, in_progress or shipped, and not merged into another) are not deleted: the person is unlinked from them, as DELETE /api/widget/ideas/{id} does: they stay on the roadmap as anonymous, with their title only (description becomes null). Its comments are deleted, except one that has replies: it is emptied and stays as the place of its replies (GET …/comments lists it with deleted: true). A repeat answers zeros. The person’s ban, if any, stays. Works with the project’s widget disabled. Sends one idea.deleted webhook per deleted idea and nothing for unlinked ideas, votes or comments. Auth via public key (X-Feedzzie-Key) only; without it the answer is 401.

X-Widget-Anonymous-Id
required
string
>= 1 characters <= 255 characters

The person’s anonymous_id, the one the SDK sends as anonymous_id elsewhere: 1 to 255 characters, never starting with board:. Only this header is read: an anonymous_id in the query or the body is ignored, and the server answers 400 without the header

What was deleted, and how many ideas were kept without the person; zeros when there was nothing left

Media typeapplication/json
object
deleted
required
object
ideas
required

Ideas deleted whole

integer
votes
required

The person’s votes deleted, those on unlinked ideas included

integer
comments
required

The person’s comments deleted or emptied, those on unlinked ideas included

integer
unlinked
required

Ideas the team had taken, kept on the roadmap with their title only, without the person or their description; an idea counts in ideas or here, never both

integer

Example

{
"deleted": {
"ideas": 2,
"votes": 5,
"comments": 1,
"unlinked": 1
}
}

Missing or invalid X-Widget-Anonymous-Id

The X-Feedzzie-Key public key is invalid, revoked or expired

Media typeapplication/json
object
error
string

Example

{
"error": "Invalid or revoked public key"
}

Public key not bound to a project, app bundle ID not allowed, or domain not allowed. A disabled widget does not refuse

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.

Media typeapplication/json
object
error
required
string
retryAfter
required

The Retry-After value, readable from a browser on any origin

integer
>= 1

Example

{
"error": "Rate limit exceeded",
"retryAfter": 1830
}
Retry-After
integer
>= 1

Seconds to wait before retrying

The deletion failed; nothing was deleted

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.

Media typeapplication/json
object
error
string
retryAfter
integer

Example

{
"error": "Service temporarily unavailable",
"retryAfter": 30
}
Retry-After
integer

Seconds to wait before retrying