Votes
Votes are expressions of support or preference that users cast for submitted ideas on your Frill account.
Vote object
Endpoints
Returns a list of votes
API key in Authorization header with Bearer prefix (recommended)
Limits the number of items on a page
20The after cursor - used for pagination
A unique identifier for the idea. Only fetch votes for this idea
A unique identifier for the follower. Only fetch votes by this follower. Preferred over user_idx.
A unique identifier for the follower. Only fetch votes for this follower. Deprecated — use follower_idx instead.
Successfully returned a list of votes
Invalid request
GET /v1/votes HTTP/1.1
Host: api.frill.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"idx": "vote_abcd1234",
"created_at": "text",
"voter": {
"idx": "follower_abcd1234",
"name": "John Smith",
"avatar": "https://example.com/example.jpg"
},
"idea": {
"idx": "idea_abcd1234",
"name": "New idea",
"slug": "new-idea",
"description": "This is a new idea from a customer",
"cover_image": "https://example.com/example.jpg",
"vote_count": 1,
"comment_count": 1,
"note_count": 1,
"is_pinned": true,
"is_bug": true,
"is_archived": true,
"is_completed": true,
"show_in_roadmap": true,
"approval_status": "text",
"created_at": "text",
"updated_at": "text",
"author": {
"idx": "follower_abcd1234",
"name": "John Smith",
"avatar": "https://example.com/example.jpg"
},
"status": {
"idx": "status_abcd1234",
"name": "Completed",
"color": "#6392D9"
},
"topics": [
{
"idx": "topic_abcd1234",
"name": "New feature"
}
]
}
}
],
"pagination": {
"total": 10,
"before": "before-cursor",
"after": "after-cursor"
}
}Vote on an idea
API key in Authorization header with Bearer prefix (recommended)
Successfully voted on an idea
A unique identifier for the vote
vote_abcd1234The date & time the idea was created in UTC timezone
Invalid request
POST /v1/votes HTTP/1.1
Host: api.frill.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"idea_idx": "text",
"voter_idx": "text"
}{
"idx": "vote_abcd1234",
"created_at": "text",
"voter": {
"idx": "follower_abcd1234",
"name": "John Smith",
"avatar": "https://example.com/example.jpg"
},
"idea": {
"idx": "idea_abcd1234",
"name": "New idea",
"slug": "new-idea",
"description": "This is a new idea from a customer",
"cover_image": "https://example.com/example.jpg",
"vote_count": 1,
"comment_count": 1,
"note_count": 1,
"is_pinned": true,
"is_bug": true,
"is_archived": true,
"is_completed": true,
"show_in_roadmap": true,
"approval_status": "text",
"created_at": "text",
"updated_at": "text",
"author": {
"idx": "follower_abcd1234",
"name": "John Smith",
"avatar": "https://example.com/example.jpg"
},
"status": {
"idx": "status_abcd1234",
"name": "Completed",
"color": "#6392D9"
},
"topics": [
{
"idx": "topic_abcd1234",
"name": "New feature"
}
]
}
}Unvote an idea
API key in Authorization header with Bearer prefix (recommended)
Request was successful
Request was successfulInvalid request
DELETE /v1/votes?idea_idx=text&voter_idx=text HTTP/1.1
Host: api.frill.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"message": "Request was successful"
}Last updated