Skip to main content
Posts

Remove a voter from a post

Removes a voter (upvote) from a post.

DELETE
/v2/posts/{id}/voters

Voter Identification

To remove a vote on behalf of a user, provide one or more identification fields:

  • id - Featurebase user ID
  • userId - External SSO user ID from your system
  • email - User's email address

Resolution priority: id > userId > email > authenticated user

If no fields are provided, the authenticated user's vote will be removed.

Response

Returns a confirmation object with:

  • object - Always "voter"
  • removed - Always true
  • id - The voter's user ID
  • postId - The post ID the vote was removed from

Permissions

Requires member-level access or higher.

Authorizationstringheaderrequired

API key as Bearer token. Use: Authorization: Bearer sk_...

idstringrequired

Post unique identifier

Example: 507f1f77bcf86cd799439011
Featurebase-Versionenum<string>header

API version for this request. Defaults to your organization's configured API version if not specified.

Available options: 2026-08-19.orbit, 2026-01-01.nova, 2025-12-12.clover
Example: 2026-08-19.orbit

Body

application/json
emailstring

Voter email to identify user

Example: john@example.com
idstring

Featurebase user ID to remove as voter

Example: 507f1f77bcf86cd799439011
userIdstring

External user ID from your system (matched via SSO)

Maximum string length: 255
Example: usr_12345

Response

application/json

Success

idstringrequired

Voter unique identifier

Example: 507f1f77bcf86cd799439011
objectenum<string>required

Object type identifier

Available options: voter
Example: voter
postIdstringrequired

Post ID the voter was removed from

Example: 507f1f77bcf86cd799439012
removedenum<boolean>required

Indicates the voter was removed

Available options: true
Example: true