QuizGen Webhooks API

Get POSTed on every completed response.

GitHub OpenAPI

Operations 1

POST /quizzes/{id}/webhook Set or clear the webhook #

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-webhooks-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-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: QuizGen Webhooks 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: Webhooks
  description: Get POSTed on every completed response.
paths:
  /quizzes/{id}/webhook:
    parameters:
    - $ref: '#/components/parameters/QuizId'
    post:
      tags:
      - Webhooks
      operationId: setWebhook
      summary: Set or clear the webhook
      description: 'Sets a webhook that POSTs on every completed response, or clears it with `{"url": null}`. If a `secret` is set, each delivery carries `X-QuizGen-Signature`: the HMAC-SHA256 hex of the raw body.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type:
                  - string
                  - 'null'
                  format: uri
                  description: Endpoint to POST to, or null to clear.
                secret:
                  type: string
                  minLength: 8
                  description: Signs deliveries (HMAC-SHA256).
              required:
              - url
      responses:
        '200':
          description: Webhook 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
    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'
    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).