Delete a feedback post
Soft-delete a feedback post. The post no longer appears in any list or retrieve response.
Soft-deletes a feedback post. After deletion:
- The post no longer appears in List feedback posts or Retrieve responses.
- Comments on the post remain in the database but are unreachable via the post-scoped list endpoint.
- Votes on the post are no longer counted.
- The underlying row remains in the database with
is_active = falsefor audit; you cannot un-delete via the API. - A
post.deletedwebhook fires to all registered org webhooks.
Endpoint
POST https://api.productbridge.io/api/external/v1/feedback-posts/delete
Arguments
body
api_keystring
RequiredYour organization's public API key. See Authentication.
body
post_idstring
RequiredUUID of the post to delete. Must belong to the authenticated organization.
Returns
{ "success": true }
Example request
curl -X POST https://api.productbridge.io/api/external/v1/feedback-posts/delete \
-H 'Content-Type: application/json' \
-d '{
"api_key": "pb_YOUR_PUBLIC_API_KEY",
"post_id": "aa3c3ef8-b8cd-cd15-01ba-postpost0001"
}'
const res = await fetch(
"https://api.productbridge.io/api/external/v1/feedback-posts/delete",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
api_key: process.env.PRODUCTBRIDGE_API_KEY,
post_id: "aa3c3ef8-b8cd-cd15-01ba-postpost0001",
}),
}
);
if (res.status === 404) throw new Error("Feedback post not found");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
import os, httpx
resp = httpx.post(
"https://api.productbridge.io/api/external/v1/feedback-posts/delete",
json={
"api_key": os.environ["PRODUCTBRIDGE_API_KEY"],
"post_id": "aa3c3ef8-b8cd-cd15-01ba-postpost0001",
},
)
if resp.status_code == 404:
raise LookupError("Feedback post not found")
resp.raise_for_status()
Example response
{ "success": true }
Deletion is irreversible via the API. The post remains in the database for audit but cannot be un-deleted through any endpoint. If you need to recover a mistakenly-deleted post, contact support.
Errors
| Status | Body | Cause |
|---|---|---|
401 | {"detail":{"error":"invalid api_key"}} | Missing / unknown / inactive api_key. |
404 | {"detail":{"error":"feedback post not found"}} | Wrong id, already deleted, or different organization. |
422 | Validation error envelope | Missing post_id, or post_id is not a UUID. |
See Errors for the full envelope shape.
Was this page helpful?
Last updated 1 week ago
Built with Documentation.AI