Skip to content

List a post poll's votes

GET
/posts/{post}/poll/votes
curl --request GET \
--url https://feed.work.optidata.cloud/api/posts/2289/poll/votes \
--header 'Authorization: Bearer <token>'

The votes of the poll attached to the post, each with the voter.

post
required
integer

Numeric id of the post.

The votes.

Media typeapplication/json
Array
object
id
required
integer
poll_option_id
required
integer
user_id
required
integer
created_at
string format: date-time
updated_at
string format: date-time
user

A light user record for pickers.

object
id
required
integer
name
string | null
uuid
required
string format: uuid
email
string | null
avatar_url
string | null
Examples
Exampleexample
[
{
"id": 506,
"poll_option_id": 616,
"user_id": 38,
"created_at": "2026-10-19T14:39:04.000000Z",
"updated_at": "2026-10-19T14:39:04.000000Z",
"user": {
"id": 38,
"uuid": "9ba64b0e-69b4-4639-a01b-4ac5c5f70a24",
"name": "Ana Souza",
"avatar_url": "https://media.optidata.cloud/avatars/ana.webp"
}
}
]

No authentication key was sent.

Media typeapplication/json

Authentication failures use an error key.

object
error
required
string
Examples
Exampleexample
{
"error": "JWT passport exception: Missing bearer token in request"
}

No matching resource, or it is not reachable through this path.

Media typeapplication/json
object
message
required
string
Examples
Exampleexample
{
"message": "No query results for model [App\\Models\\Category] 864"
}

The authentication key is expired or not recognised. Get a fresh one and retry.

Media typeapplication/json

Authentication failures use an error key.

object
error
required
string
Examples
Exampleexample
{
"error": "JWT passport expired: Passport expired"
}