List
To list the existing polls for a room you need to execute a GET request against the /rooms/:roomId/polls endpoint.
Since potentially there could be a lot of polls, pagination is supported with limit, order and after arguments. Read about pagination to learn the details of it. By default maximum 100 polls will be returned in the response.
If you want to retrieve the details of one concrete poll execute a GET request against the /rooms/:roomId/polls/:id endpoint
Request (listing all polls)
Response (200 OK)
The total_count is the total amount of polls you have for the room. It is NOT the amount of polls in the current page returned in the data array. In the above example you have 200 polls in total, but in the data array there will be maximum 100 polls (the default limit argument value).
Request (get a concrete poll)
Response (200 OK)
Last updated