Get a poll
GET
/api/v1/newsletter/polls/{id}
const url = 'https://digize.com/api/v1/newsletter/polls/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/newsletter/polls/example \ --header 'x-api-key: <x-api-key>'One poll with its numbers and the comments readers left with their answers, the latest 200 first.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
id
required
string
question
required
string
options
required
Array<object>
object
label
required
string
votes
required
number
share
required
Its share of the votes, 0 to 1.
number
votes
required
Readers who answered.
number
comments
required
Answers with a comment.
number
showResults
required
Whether readers see the results after they vote.
boolean
newsletterId
required
string | null
post
required
createdAt
required
string format: date-time
recent
required
Array<object>
object
contactId
required
string | null
name
required
string
email
required
string | null
option
required
string
comment
required
string
at
required
string format: date-time
Example generated
{ "id": "example", "question": "example", "options": [ { "label": "example", "votes": 1, "share": 1 } ], "votes": 1, "comments": 1, "showResults": true, "newsletterId": "example", "post": { "id": "example", "name": "example", "sentAt": "2026-04-15T12:00:00Z" }, "createdAt": "2026-04-15T12:00:00Z", "lastVoteAt": "2026-04-15T12:00:00Z", "recent": [ { "contactId": "example", "name": "example", "email": "example", "option": "example", "comment": "example", "at": "2026-04-15T12:00:00Z" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}