Posts
Add a voter to a post
Adds a voter (upvote) to a post.
Voter Identification
To add a vote on behalf of a user, provide one or more identification fields:
id- Featurebase user IDuserId- External SSO user ID from your systememail- User's email addressname- Display name (used when creating a new user)profilePicture- Profile picture URL (used when creating a new user)
Resolution priority: id > userId > email > authenticated user
If no fields are provided, the authenticated user's vote is added.
If the user doesn't exist, a new customer will be created with the provided information. An id alone that is not a customer or teammate of your organization (a lead's id included) answers 404 and adds no vote.
Idempotency
If the user has already voted on this post, the request succeeds but no duplicate vote is added.
Response
Returns a confirmation object with:
object- Always "voter"added- Always trueid- The voter's user IDpostId- The post ID the vote was added to
Permissions
Requires member-level access or higher.