QuizGen Delivery API

Email a quiz and track per-recipient progress.

GitHub OpenAPI

Operations 3

POST /quizzes/{id}/send Email the quiz #
GET /quizzes/{id}/sends Delivery status #
PUT /quizzes/{id}/follow_up Auto-reminder rule #

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/quizgen-dev:quizgen-dev-delivery-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

quizgen-dev-delivery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: QuizGen Delivery API
  version: '1'
  summary: Create live, hosted quizzes and forms by POSTing JSON, then read the responses back.
  description: 'The QuizGen REST API is a headless quiz/form service. Create a quiz with one call and it is immediately live at a short URL like `https://quizgen.dev/q/x7km2p` — mobile-friendly, autosaving, no account needed for respondents. No SDK required: plain HTTPS + JSON.


    **Sandbox (no key):** `POST /quizzes` with no `Authorization` header creates a sandbox quiz — live instantly, expires in 72 hours, caps at 10 responses, can''t be updated or read back. The response includes a `claim_url` to keep it.


    **Authorized:** MCP clients connect `https://quizgen.dev/mcp` and authorize in the browser (OAuth); the issued access token rides the same `Authorization: Bearer` header. Server-to-server integrations can instead issue an API key (`qg_live_...`) from the dashboard and send it as a bearer token.


    The full agent-oriented reference (conventions, question-type guidance, worked examples) is at /llms.txt. The raw quiz JSON Schema is at /schema/v1.json.'
  contact:
    name: QuizGen support
    email: sales@quizgen.dev
servers:
- url: https://quizgen.dev/api/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Delivery
  description: Email a quiz and track per-recipient progress.
paths:
  /quizzes/{id}/send:
    parameters:
    - $ref: '#/components/parameters/QuizId'
    post:
      tags:
      - Delivery
      operationId: sendQuiz
      summary: Email the quiz
      description: Emails the quiz to a list of people (any account with a confirmed email — 403 email_not_confirmed otherwise; capped per month and per 24 hours — 402 plan_limit / 429 daily_send_limit). Max 100 recipients per call; duplicates are dropped. Each recipient gets a unique tracked link. This delivers real email immediately — confirm the list with the user first.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                channel:
                  type: string
                  enum:
                  - email
                  default: email
                  description: Optional, defaults to `email`. `sms` returns 400 `not_yet_available`.
                recipients:
                  type: array
                  maxItems: 100
                  items:
                    type: object
                    properties:
                      email:
                        type: string
                        format: email
                      name:
                        type: string
                    required:
                    - email
                message:
                  type: string
                  description: Optional note shown above the button.
              required:
              - recipients
      responses:
        '200':
          description: Send queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResult'
        '400':
          description: '`not_yet_available` — `channel: "sms"` isn''t live yet.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PlanLimit'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: '`quiz_closed` — reopen the quiz before sending.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: '`invalid_recipients` or `invalid_channel`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: No email could be delivered (every recipient failed).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /quizzes/{id}/sends:
    parameters:
    - $ref: '#/components/parameters/QuizId'
    get:
      tags:
      - Delivery
      operationId: listSends
      summary: Delivery status
      description: 'Per-recipient delivery status: `sent` → `started` → `completed` (plus `failed`, `opted_out`, reminder counts).'
      responses:
        '200':
          description: Per-recipient status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /quizzes/{id}/follow_up:
    parameters:
    - $ref: '#/components/parameters/QuizId'
    put:
      tags:
      - Delivery
      operationId: setFollowUp
      summary: Auto-reminder rule
      description: Auto-reminds recipients who haven't finished (hourly cron). Reminders stop on completion, unsubscribe, or `max_reminders`. Send `null` to clear the rule.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                properties:
                  after_hours:
                    type: integer
                    minimum: 1
                    maximum: 720
                    default: 48
                  max_reminders:
                    type: integer
                    minimum: 1
                    maximum: 5
                    default: 2
                  message:
                    type: string
              - type: 'null'
      responses:
        '200':
          description: Rule set or cleared.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - invalid_quiz
              - unauthorized
              - not_found
              - invalid_json
              - rate_limited
              - plan_limit
              - daily_send_limit
              - email_not_confirmed
              - quiz_closed
              - quiz_full
              - payments_not_ready
              - invalid_creator_email
              - invalid_status
              - invalid_webhook
              - invalid_recipients
              - invalid_channel
              - invalid_follow_up
              - not_yet_available
            message:
              type: string
            validation_errors:
              type: array
              items:
                type: string
            hint:
              type: string
          required:
          - code
          - message
      required:
      - error
    SendList:
      type: object
      properties:
        sends:
          type: array
          items:
            type: object
            additionalProperties: true
        count:
          type: integer
      required:
      - sends
      additionalProperties: true
    OperationResult:
      type: object
      description: Successful mutation result. Fields vary by operation and are documented on the endpoint.
      additionalProperties: true
  parameters:
    QuizId:
      name: id
      in: path
      required: true
      description: Quiz id (e.g. `qz_1f6b...`) or slug (e.g. `x7km2p`).
      schema:
        type: string
  responses:
    NotFound:
      description: No such quiz (or not yours).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PlanLimit:
      description: The account is at a plan limit (e.g. live-quiz cap, or a paid-only feature on a free plan). Close/delete a quiz, drop the gated fields, or upgrade.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key issued from the dashboard (`qg_live_...`) or a QuizGen OAuth access token (issued when an MCP client authorizes via https://quizgen.dev/mcp).