Skip to API content
TalkLabs API Docs v3
Recipes
GET Polls

Get Poll Details

Fetches the poll, choices and optionally can return standing / results depending on state of the poll.

GET /api/v3/{appid}/poll/poll/{pollid}

This method requires authentication.

Fetches the poll, choices and optionally can return standing / results depending on state of the poll.

  • id: (required) The ID of the poll to fetch.

  • entities: (optional = "poll"). Provide "poll", "choices", or "results" to get the desired data.

Request

Parameters

Values in the path and query string.

appid path
string TalkLabs ID required

The TalkLabs application ID assigned to your account.

Example: your-app-id
pollid path
string TalkLabs ID required

The TalkLabs assigned poll ID.

Example: poll-id
Response

Status codes

Every JSON response uses the API result envelope.

200 OK ApiResult
400 Bad Request ApiResult
403 Forbidden ApiResult
500 Internal Server Error ApiResult
Example response · 200
{
  "message": "Success",
  "errors": {},
  "data": {
    "kind": "poll.details",
    "poll": {
      "kind": "poll.poll",
      "id": "662da6fbe37d2e9ac76a562b",
      "appid": "662bb49bf10e9a26a7e8ed92",
      "ownerid": "u-8842",
      "title": "Sample Poll 1: Vote for your favorite color",
      "description": "Vote for your favorite color",
      "posterurl": "",
      "embedcontenttop": "",
      "embedcontentbotton": "",
      "whenpollpublish": "2024-04-28T01:31:39.262Z",
      "whenpollopens": "2024-04-28T01:31:39.262Z",
      "whenpollcloses": null,
      "whenpollexpires": null,
      "displayresults": 1,
      "sortanswers": 0,
      "customtype": "",
      "customid": "sample-poll-1-vote",
      "custompayload": "",
      "customtags": [],
      "customfield1": "",
      "customfield2": ""
    },
    "choices": []
  }
}
Search all 118 endpoints Try “join room”, “moderate”, or “POST”.
Request environment

Connect your application

These values fill request examples and the API console. They stay in this browser tab and are never sent to TalkLabs until you run a request.

Credentials are stored in sessionStorage, not in cookies or analytics.