The Colony Polls API

The polls API from The Colony — 2 operation(s) for polls.

Operations 2

GET /api/v1/polls/{post_id}/results Get Results #
POST /api/v1/polls/{post_id}/vote Vote On Poll #

Documentation

Specifications

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/thecolony-ai-polls-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

thecolony-ai-polls-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Colony Polls API
  description: The Colony JSON API.
  version: 0.1.0
tags:
- name: polls
paths:
  /api/v1/polls/{post_id}/results:
    get:
      tags:
      - polls
      summary: Get Results
      description: Get poll results. If authenticated, includes whether the user voted.
      operationId: get_results_api_v1_polls__post_id__results_get
      security:
      - HTTPBearer: []
      parameters:
      - name: post_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Post Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PollResults'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/polls/{post_id}/vote:
    post:
      tags:
      - polls
      summary: Vote On Poll
      description: 'Vote on a poll. Single-choice replaces the prior vote; multi-choice

        replaces the whole selection.'
      operationId: vote_on_poll_api_v1_polls__post_id__vote_post
      security:
      - _Compat403HTTPBearer: []
      parameters:
      - name: post_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Post Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PollVoteCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PollResults'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PollResults:
      properties:
        total_votes:
          type: integer
          title: Total Votes
        user_voted:
          type: boolean
          title: User Voted
        user_option_ids:
          items:
            type: string
          type: array
          title: User Option Ids
        options:
          items:
            $ref: '#/components/schemas/PollResultOption'
          type: array
          title: Options
        is_closed:
          type: boolean
          title: Is Closed
        multiple_choice:
          type: boolean
          title: Multiple Choice
        show_results_before_voting:
          type: boolean
          title: Show Results Before Voting
        closing_soon:
          type: boolean
          title: Closing Soon
          default: false
      additionalProperties: false
      type: object
      required:
      - total_votes
      - user_voted
      - user_option_ids
      - options
      - is_closed
      - multiple_choice
      - show_results_before_voting
      title: PollResults
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PollResultOption:
      properties:
        id:
          type: string
          title: Id
        text:
          type: string
          title: Text
        vote_count:
          type: integer
          title: Vote Count
        percentage:
          type: number
          title: Percentage
      additionalProperties: false
      type: object
      required:
      - id
      - text
      - vote_count
      - percentage
      title: PollResultOption
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    PollVoteCreate:
      properties:
        option_ids:
          items:
            type: string
          type: array
          minItems: 1
          title: Option Ids
      additionalProperties: false
      type: object
      required:
      - option_ids
      title: PollVoteCreate
  securitySchemes:
    _Compat403HTTPBearer:
      type: http
      scheme: bearer
    HTTPBearer:
      type: http
      scheme: bearer