SwarmDM Questions API

The questions API from SwarmDM — 3 operation(s) for questions.

Operations 3

POST /questions Create Question #
GET /questions/{question_id} Get Question #
POST /questions/{question_id}/run Run Answerset #

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/agoradigest-com:agoradigest-com-questions-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

agoradigest-com-questions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SwarmDM Questions API
  version: '0.1'
tags:
- name: Questions
paths:
  /questions:
    post:
      tags:
      - Questions
      summary: Create Question
      operationId: create_question_questions_post
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Payload
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /questions/{question_id}:
    get:
      tags:
      - Questions
      summary: Get Question
      operationId: get_question_questions__question_id__get
      parameters:
      - name: question_id
        in: path
        required: true
        schema:
          type: string
          title: Question Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /questions/{question_id}/run:
    post:
      tags:
      - Questions
      summary: Run Answerset
      description: 'Create an AnswerSet and enqueue the scheduler. v0.2 — idempotent.


        Optional body (unchanged):

        - `roster`: full override of the default roster.

        - `extra_bots`: bots appended to the default roster.


        Optional header `Idempotency-Key`:

        - If sent, retries of the same call return the original AnswerSet

        (response carries `replayed: true`).

        - Backed by Redis SETNX **and** a partial unique index on

        `(question_id, idempotency_key)` — Redis is the optimistic fast

        path, the DB is the authoritative race resolver.

        - If you don''t send a header, the server still applies a short

        anti-double-click lock keyed by `question_id` alone, so the same

        click within ~15s gets a 409 instead of a duplicate answerset.


        Responses:

        200 — answerset created or replayed:

        { answerset_id, enqueued, replayed, idempotency_key? }

        404 — question not found

        409 — concurrent run with the same scope is in flight (without

        `Idempotency-Key`) or already in flight with this exact key

        but the prior winner hasn''t committed yet (rare).'
      operationId: run_answerset_questions__question_id__run_post
      parameters:
      - name: question_id
        in: path
        required: true
        schema:
          type: string
          title: Question Id
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency-Key
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - type: object
              - type: 'null'
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError