/api/v1/decks/{deckId}/resultsGet poll results
Read the private results or use view=presenter for the projection shown on screen.
Key scopespoll.read
curl -sS "https://poll.express/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/results" \
-H "Authorization: Bearer $POLL_KEY"const response = await fetch("/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/results", {
credentials: "include",
});Response: 200 OK
See the response schema below.
Parameters
| Field | Type |
|---|---|
deckIdRequired | stringPath parameter. |
view | "private" | "presenter"Query parameter. |
JSON Schema
{
"properties": {
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
},
"view": {
"type": "string",
"enum": [
"private",
"presenter"
],
"description": "Query parameter."
}
},
"required": [
"deckId"
]
}Responses
200OKThe request succeeded.400InvalidThe request doesn’t match the expected input.401UnauthorizedSign in or supply a valid credential for this route.403ForbiddenThe credential lacks permission, or the request isn’t allowed.404Not foundThe resource doesn’t exist or isn’t available to you.409ConflictThe requested change conflicts with the current state or an account limit.413Too largeThe request body exceeds the size limit.429Rate limitedWait before sending more requests.503UnavailablePoll Express couldn’t complete the request right now.
Response schema: application/json
| Field | Type |
|---|---|
titleRequired | string1 to 120 characters |
showBrandingRequired | boolean |
currentQuestionIdRequired | string | null |
pacingRequired | "live" | "self" |
endedRequired | boolean |
responsesExpiredAtRequired | integer | null |
deckIdRequired | string |
hasResponsesRequired | boolean |
display | object |
presence | object |
questionsRequired | object[] |
JSON Schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"showBranding": {
"type": "boolean"
},
"currentQuestionId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"pacing": {
"type": "string",
"enum": [
"live",
"self"
]
},
"ended": {
"type": "boolean"
},
"responsesExpiredAt": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"hasResponses": {
"type": "boolean"
},
"display": {
"type": "object",
"properties": {
"theme": {
"type": "string",
"enum": [
"paper",
"dark"
]
},
"qr": {
"type": "boolean"
},
"qrQuestion": {
"type": "boolean"
},
"textView": {
"type": "string",
"enum": [
"answers",
"cloud"
]
},
"focusQuestionId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"presence": {
"type": "object",
"properties": {
"displays": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"remotes": {
"type": "object",
"properties": {
"phone": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"window": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"phone",
"window"
],
"additionalProperties": false
}
},
"required": [
"displays",
"remotes"
],
"additionalProperties": false
},
"questions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"question": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"config": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"choice"
]
},
"options": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"minItems": 2,
"maxItems": 24,
"uniqueItems": true
},
"maxPicks": {
"type": "integer",
"minimum": 1,
"maximum": 24
}
},
"required": [
"type",
"options",
"maxPicks"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"scale"
]
},
"max": {
"type": "integer",
"minimum": 2,
"maximum": 10
},
"lowLabel": {
"type": "string",
"minLength": 0,
"maxLength": 100
},
"highLabel": {
"type": "string",
"minLength": 0,
"maxLength": 100
}
},
"required": [
"type",
"max",
"lowLabel",
"highLabel"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
}
},
"required": [
"id",
"prompt",
"config"
],
"additionalProperties": false
},
"number": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"open": {
"type": "boolean"
},
"revealed": {
"type": "boolean"
},
"count": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"buckets": {
"type": "array",
"items": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"average": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"text": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"text": {
"type": "string"
},
"hidden": {
"type": "boolean"
}
},
"required": [
"id",
"text",
"hidden"
],
"additionalProperties": false
}
}
},
"required": [
"question",
"number",
"open",
"revealed",
"count",
"buckets",
"average",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"showBranding",
"currentQuestionId",
"pacing",
"ended",
"responsesExpiredAt",
"deckId",
"hasResponses",
"questions"
],
"additionalProperties": false
}/api/v1/decks/{deckId}/questions/{questionId}/resultsGet question results
Read the private results for one question.
Key scopespoll.read
curl -sS "https://poll.express/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/questions/d021f5e3-48d1-4caf-a29d-30a14273e650/results" \
-H "Authorization: Bearer $POLL_KEY"const response = await fetch("/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/questions/d021f5e3-48d1-4caf-a29d-30a14273e650/results", {
credentials: "include",
});Response: 200 OK
See the response schema below.
Parameters
| Field | Type |
|---|---|
deckIdRequired | stringPath parameter. |
questionIdRequired | stringPath parameter. |
JSON Schema
{
"properties": {
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
},
"questionId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
}
},
"required": [
"deckId",
"questionId"
]
}Responses
200OKThe request succeeded.400InvalidThe request doesn’t match the expected input.401UnauthorizedSign in or supply a valid credential for this route.403ForbiddenThe credential lacks permission, or the request isn’t allowed.404Not foundThe resource doesn’t exist or isn’t available to you.409ConflictThe requested change conflicts with the current state or an account limit.413Too largeThe request body exceeds the size limit.429Rate limitedWait before sending more requests.503UnavailablePoll Express couldn’t complete the request right now.
Response schema: application/json
| Field | Type |
|---|---|
titleRequired | string1 to 120 characters |
showBrandingRequired | boolean |
currentQuestionIdRequired | string | null |
pacingRequired | "live" | "self" |
endedRequired | boolean |
responsesExpiredAtRequired | integer | null |
deckIdRequired | string |
hasResponsesRequired | boolean |
display | object |
presence | object |
questionsRequired | object[] |
JSON Schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"showBranding": {
"type": "boolean"
},
"currentQuestionId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"pacing": {
"type": "string",
"enum": [
"live",
"self"
]
},
"ended": {
"type": "boolean"
},
"responsesExpiredAt": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"hasResponses": {
"type": "boolean"
},
"display": {
"type": "object",
"properties": {
"theme": {
"type": "string",
"enum": [
"paper",
"dark"
]
},
"qr": {
"type": "boolean"
},
"qrQuestion": {
"type": "boolean"
},
"textView": {
"type": "string",
"enum": [
"answers",
"cloud"
]
},
"focusQuestionId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"presence": {
"type": "object",
"properties": {
"displays": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"remotes": {
"type": "object",
"properties": {
"phone": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"window": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"phone",
"window"
],
"additionalProperties": false
}
},
"required": [
"displays",
"remotes"
],
"additionalProperties": false
},
"questions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"question": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"config": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"choice"
]
},
"options": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"minItems": 2,
"maxItems": 24,
"uniqueItems": true
},
"maxPicks": {
"type": "integer",
"minimum": 1,
"maximum": 24
}
},
"required": [
"type",
"options",
"maxPicks"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"scale"
]
},
"max": {
"type": "integer",
"minimum": 2,
"maximum": 10
},
"lowLabel": {
"type": "string",
"minLength": 0,
"maxLength": 100
},
"highLabel": {
"type": "string",
"minLength": 0,
"maxLength": 100
}
},
"required": [
"type",
"max",
"lowLabel",
"highLabel"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
}
},
"required": [
"id",
"prompt",
"config"
],
"additionalProperties": false
},
"number": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"open": {
"type": "boolean"
},
"revealed": {
"type": "boolean"
},
"count": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"buckets": {
"type": "array",
"items": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"average": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"text": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"text": {
"type": "string"
},
"hidden": {
"type": "boolean"
}
},
"required": [
"id",
"text",
"hidden"
],
"additionalProperties": false
}
}
},
"required": [
"question",
"number",
"open",
"revealed",
"count",
"buckets",
"average",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"showBranding",
"currentQuestionId",
"pacing",
"ended",
"responsesExpiredAt",
"deckId",
"hasResponses",
"questions"
],
"additionalProperties": false
}/api/v1/decks/{deckId}/results.jsonGet poll results as JSON
Read a JSON snapshot of exportable poll results.
Key scopespoll.read
curl -sS "https://poll.express/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/results.json" \
-H "Authorization: Bearer $POLL_KEY"const response = await fetch("/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/results.json", {
credentials: "include",
});Response: 200 OK
See the response schema below.
Parameters
| Field | Type |
|---|---|
deckIdRequired | stringPath parameter. |
JSON Schema
{
"properties": {
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
}
},
"required": [
"deckId"
]
}Responses
200OKThe request succeeded.400InvalidThe request doesn’t match the expected input.401UnauthorizedSign in or supply a valid credential for this route.403ForbiddenThe credential lacks permission, or the request isn’t allowed.404Not foundThe resource doesn’t exist or isn’t available to you.409ConflictThe requested change conflicts with the current state or an account limit.413Too largeThe request body exceeds the size limit.429Rate limitedWait before sending more requests.503UnavailablePoll Express couldn’t complete the request right now.
Response schema: application/json
| Field | Type |
|---|---|
schema_versionRequired | 1 |
deck_idRequired | string |
questionsRequired | object[] |
JSON Schema
{
"type": "object",
"properties": {
"schema_version": {
"type": "number",
"enum": [
1
]
},
"deck_id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"questions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"question_id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"question_number": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"prompt": {
"type": "string"
},
"question_type": {
"type": "string",
"enum": [
"choice",
"scale",
"text"
]
},
"visible": {
"type": "boolean"
},
"total_responses": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"average": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"option": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"percent": {
"type": "number"
}
},
"required": [
"option",
"count",
"percent"
],
"additionalProperties": false
}
}
},
"required": [
"question_id",
"question_number",
"prompt",
"question_type",
"visible",
"total_responses",
"average",
"options"
],
"additionalProperties": false
}
}
},
"required": [
"schema_version",
"deck_id",
"questions"
],
"additionalProperties": false
}/api/v1/decks/{deckId}/results.csvGet poll results as CSV
Read a UTF-8 CSV snapshot of exportable poll results.
Key scopespoll.read
curl -sS "https://poll.express/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/results.csv" \
-H "Authorization: Bearer $POLL_KEY"const response = await fetch("/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/results.csv", {
credentials: "include",
});Response: 200 OK
See the response schema below.
Parameters
| Field | Type |
|---|---|
deckIdRequired | stringPath parameter. |
JSON Schema
{
"properties": {
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
}
},
"required": [
"deckId"
]
}Responses
200OKThe request succeeded.400InvalidThe request doesn’t match the expected input.401UnauthorizedSign in or supply a valid credential for this route.403ForbiddenThe credential lacks permission, or the request isn’t allowed.404Not foundThe resource doesn’t exist or isn’t available to you.409ConflictThe requested change conflicts with the current state or an account limit.413Too largeThe request body exceeds the size limit.429Rate limitedWait before sending more requests.503UnavailablePoll Express couldn’t complete the request right now.
Response schema: text/csv
{
"type": "string"
}/api/v1/decks/{deckId}/questions/{questionId}/results.jsonGet question results as JSON
Read a JSON snapshot of exportable results for one question.
Key scopespoll.read
curl -sS "https://poll.express/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/questions/d021f5e3-48d1-4caf-a29d-30a14273e650/results.json" \
-H "Authorization: Bearer $POLL_KEY"const response = await fetch("/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/questions/d021f5e3-48d1-4caf-a29d-30a14273e650/results.json", {
credentials: "include",
});Response: 200 OK
See the response schema below.
Parameters
| Field | Type |
|---|---|
deckIdRequired | stringPath parameter. |
questionIdRequired | stringPath parameter. |
JSON Schema
{
"properties": {
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
},
"questionId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
}
},
"required": [
"deckId",
"questionId"
]
}Responses
200OKThe request succeeded.400InvalidThe request doesn’t match the expected input.401UnauthorizedSign in or supply a valid credential for this route.403ForbiddenThe credential lacks permission, or the request isn’t allowed.404Not foundThe resource doesn’t exist or isn’t available to you.409ConflictThe requested change conflicts with the current state or an account limit.413Too largeThe request body exceeds the size limit.429Rate limitedWait before sending more requests.503UnavailablePoll Express couldn’t complete the request right now.
Response schema: application/json
| Field | Type |
|---|---|
schema_versionRequired | 1 |
deck_idRequired | string |
questionsRequired | object[] |
JSON Schema
{
"type": "object",
"properties": {
"schema_version": {
"type": "number",
"enum": [
1
]
},
"deck_id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"questions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"question_id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"question_number": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"prompt": {
"type": "string"
},
"question_type": {
"type": "string",
"enum": [
"choice",
"scale",
"text"
]
},
"visible": {
"type": "boolean"
},
"total_responses": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"average": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"option": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"percent": {
"type": "number"
}
},
"required": [
"option",
"count",
"percent"
],
"additionalProperties": false
}
}
},
"required": [
"question_id",
"question_number",
"prompt",
"question_type",
"visible",
"total_responses",
"average",
"options"
],
"additionalProperties": false
}
}
},
"required": [
"schema_version",
"deck_id",
"questions"
],
"additionalProperties": false
}/api/v1/decks/{deckId}/questions/{questionId}/results.csvGet question results as CSV
Read a UTF-8 CSV snapshot of exportable results for one question.
Key scopespoll.read
curl -sS "https://poll.express/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/questions/d021f5e3-48d1-4caf-a29d-30a14273e650/results.csv" \
-H "Authorization: Bearer $POLL_KEY"const response = await fetch("/api/v1/decks/6b114677-7751-4930-a2da-31fcad879038/questions/d021f5e3-48d1-4caf-a29d-30a14273e650/results.csv", {
credentials: "include",
});Response: 200 OK
See the response schema below.
Parameters
| Field | Type |
|---|---|
deckIdRequired | stringPath parameter. |
questionIdRequired | stringPath parameter. |
JSON Schema
{
"properties": {
"deckId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
},
"questionId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Path parameter."
}
},
"required": [
"deckId",
"questionId"
]
}Responses
200OKThe request succeeded.400InvalidThe request doesn’t match the expected input.401UnauthorizedSign in or supply a valid credential for this route.403ForbiddenThe credential lacks permission, or the request isn’t allowed.404Not foundThe resource doesn’t exist or isn’t available to you.409ConflictThe requested change conflicts with the current state or an account limit.413Too largeThe request body exceeds the size limit.429Rate limitedWait before sending more requests.503UnavailablePoll Express couldn’t complete the request right now.
Response schema: text/csv
{
"type": "string"
}