UsersDelete

Delete a user

Soft-delete the user's link to this organization. The user remains in other orgs they belong to.

Soft-deletes the user's link to your organization. After this call:

  • The user no longer appears in Retrieve user responses for your org.
  • Their existing posts, comments, and votes remain in your org for audit (they don't cascade-delete).
  • The underlying user record is untouched — if the user is linked to other organizations on ProductBridge, those links remain active.

This is the recommended way to handle account closure / GDPR-style "remove this user from our system" requests.

Endpoint

POST https://api.productbridge.io/api/external/v1/users/delete

Arguments

body
api_keystring
Required

Your organization's public API key. See Authentication.

body
user_idstring
Required

UUID of the user to remove from this organization.

Returns

{ "success": true }

Example request

curl -X POST https://api.productbridge.io/api/external/v1/users/delete \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key": "pb_YOUR_PUBLIC_API_KEY",
    "user_id": "bb3c3ef8-b8cd-cd15-01ba-useruser0001"
  }'

Example response

{ "success": true }

Errors

StatusBodyCause
401{"detail":{"error":"invalid api_key"}}Missing / unknown / inactive api_key.
404{"detail":{"error":"user not found"}}The user is not linked to your organization, or the link was already revoked.
422Validation error envelopeMissing user_id, or user_id is not a UUID.

See Errors for the full envelope shape.