Skip to content

Returns the details of a poll.

GET
/api/polls/{pollId}

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters

Path Parameters

pollId*
Typestring
Required
Pattern"[1-9][0-9]*"

Responses

Success

application/json
JSON
{
"id": -1,
"name": "",
"description": "",
"startDate": "string",
"endDate": "string",
"regionId": -1,
"scope": -1,
"type": -1,
"authorId": -1,
"creationDate": "string",
"numValues": 0,
"votes": 0,
"eligibleVotesCount": 0,
"shuffleOptions": true
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python