Pollunit · Schema

Vote

A vote of one participant for one option. Which value field is set depends on the poll's `vote_type`.

PollingSurveysOnline VotingSoftware-as-a-ServiceCommunity

Properties

Name Type Description
id string Vote id
type string
created_at stringnull
updated_at stringnull
option_id stringnull Option public_id. For pairwise comparisons the option that won the comparison.
loser_option_id stringnull Pairwise comparisons only: option public_id of the option that lost the comparison.
voter_id stringnull Voter public_id
vote object The value of the vote, whichever of `vote`, `vote_date`, `vote_text` or the decimal value is set.
vote_date stringnull Day the vote was cast on, for polls with `vote_per_day`.
vote_text stringnull Value of text votes, e.g. table columns.
paid booleannull Admin access only, and only for polls with a voting wallet. `false` while bought votes are not paid yet.
voting_category_id integernull Only for polls with `voting_categories`.
View JSON Schema on GitHub

JSON Schema

pollunit-com-vote-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pollunit-com/json-schema/pollunit-com-vote-schema.json",
  "title": "Vote",
  "description": "A vote of one participant for one option. Which value field is set depends on the poll's `vote_type`.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pollunit-com-openapi.yml#/components/schemas/Vote",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Vote id"
    },
    "type": {
      "type": "string"
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "option_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Option public_id. For pairwise comparisons the option that won the comparison."
    },
    "loser_option_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pairwise comparisons only: option public_id of the option that lost the comparison."
    },
    "voter_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Voter public_id"
    },
    "vote": {
      "anyOf": [
        {
          "type": [
            "number",
            "null"
          ]
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ],
      "description": "The value of the vote, whichever of `vote`, `vote_date`, `vote_text` or the decimal value is set."
    },
    "vote_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Day the vote was cast on, for polls with `vote_per_day`."
    },
    "vote_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "Value of text votes, e.g. table columns."
    },
    "paid": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Admin access only, and only for polls with a voting wallet. `false` while bought votes are not paid yet."
    },
    "voting_category_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Only for polls with `voting_categories`."
    }
  },
  "required": [
    "id",
    "type"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/pollunit-com-vote"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.