Quiz.video Hooks API
The Hooks API from Quiz.video — 1 operation(s) for hooks.
The Hooks API from Quiz.video — 1 operation(s) for hooks.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/quiz-video:quiz-video-hooks-api"
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.
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: 3.2.0
info:
title: Quiz.Video Hooks API
version: 1.0.0
description: 'REST API for creating, managing, generating, and rendering quizzes and flashcard decks programmatically.
Errors: every 4xx/5xx response is JSON matching the Error schema: a human-readable `error`, a stable machine-readable `code`, and usually a `hint` that says how to recover.
Rate limits: each API key has a budget of 1,000 requests, which refills once the key has made no requests for 24 hours. Responses carry `RateLimit-Policy` and, for API-key requests, `RateLimit` plus `X-RateLimit-Limit`/`-Remaining`/`-Reset`. A 429 includes `Retry-After` in seconds.
Versioning: the major version is in the path (/api/v1). Additive changes ship within v1; breaking changes only ship under a new path. Deprecated operations are marked `deprecated: true` here and respond with `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers at least 90 days before removal. Policy: https://www.quiz.video/developers/#versioning'
termsOfService: https://www.quiz.video/terms/
contact:
name: Quiz.Video developer support
email: support@quiz.video
url: https://www.quiz.video/developers/
x-deprecation-policy: https://www.quiz.video/developers/#versioning
servers:
- url: https://www.quiz.video
description: Current Quiz.Video host
security:
- ApiKeyAuth: []
- BearerAuth: []
- OAuth2:
- api:read
- OpenIDConnect:
- api:read
tags:
- name: Hooks
paths:
/api/v1/quizzes/{id}/hooks:
get:
tags:
- Hooks
operationId: listQuizHooks
summary: List video hooks for a quiz
parameters:
- name: id
in: path
required: true
description: Quiz ID
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Hook'
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
'400':
description: Request validation failed (code VALIDATION_ERROR or a field-specific code)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid credentials (code UNAUTHORIZED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Credentials are valid but lack access or scope (code FORBIDDEN or INSUFFICIENT_SCOPE)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found (code NOT_FOUND)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: API key rate limit exceeded (code RATE_LIMITED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unexpected server error (code INTERNAL_ERROR)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
tags:
- Hooks
operationId: createQuizHook
summary: Create a video hook for a quiz
parameters:
- name: id
in: path
required: true
description: Quiz ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HookInput'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Hook'
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
'201':
description: Successful response
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Hook'
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
'400':
description: Request validation failed (code VALIDATION_ERROR or a field-specific code)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid credentials (code UNAUTHORIZED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Credentials are valid but lack access or scope (code FORBIDDEN or INSUFFICIENT_SCOPE)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found (code NOT_FOUND)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: API key rate limit exceeded (code RATE_LIMITED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unexpected server error (code INTERNAL_ERROR)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
patch:
tags:
- Hooks
operationId: updateQuizHook
summary: Update a video hook
parameters:
- name: id
in: path
required: true
description: Quiz ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
allOf:
- type: object
required:
- hookId
properties:
hookId:
type: integer
- $ref: '#/components/schemas/HookInput'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Hook'
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
'400':
description: Request validation failed (code VALIDATION_ERROR or a field-specific code)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid credentials (code UNAUTHORIZED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Credentials are valid but lack access or scope (code FORBIDDEN or INSUFFICIENT_SCOPE)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found (code NOT_FOUND)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: API key rate limit exceeded (code RATE_LIMITED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unexpected server error (code INTERNAL_ERROR)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
tags:
- Hooks
operationId: deleteQuizHook
summary: Delete a video hook
parameters:
- name: id
in: path
required: true
description: Quiz ID
schema:
type: string
- name: hookId
in: query
required: true
schema:
type: integer
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/DeleteResult'
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
'400':
description: Request validation failed (code VALIDATION_ERROR or a field-specific code)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid credentials (code UNAUTHORIZED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Credentials are valid but lack access or scope (code FORBIDDEN or INSUFFICIENT_SCOPE)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found (code NOT_FOUND)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: API key rate limit exceeded (code RATE_LIMITED)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unexpected server error (code INTERNAL_ERROR)
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
headers:
RateLimitPolicy:
description: Quota policy per draft-ietf-httpapi-ratelimit-headers, e.g. `"api-key";q=1000;w=86400` (a 1,000-request budget per API key that refills after 86,400 seconds without requests).
schema:
type: string
XRateLimitLimit:
description: Requests allowed per window for the calling API key.
schema:
type: integer
RetryAfter:
description: Seconds to wait before retrying a rate-limited request.
schema:
type: integer
minimum: 0
XRateLimitRemaining:
description: Requests left in the current window for the calling API key.
schema:
type: integer
RateLimit:
description: Remaining quota for the calling API key and the seconds without further requests after which it is fully restored, e.g. `"api-key";r=998;t=86400`. Sent on API-key authenticated requests.
schema:
type: string
XRateLimitReset:
description: Unix time (seconds) at which the quota is fully restored if the key makes no further requests.
schema:
type: integer
WWWAuthenticate:
description: OAuth challenge (RFC 6750/RFC 9728) with the protected resource metadata URL and required scope.
schema:
type: string
schemas:
Error:
type: object
description: Error envelope returned by every 4xx and 5xx response.
required:
- error
- code
properties:
error:
type: string
description: Human-readable error message.
code:
type: string
description: Stable, machine-readable error code. Branch on this, not on `error`.
examples:
- VALIDATION_ERROR
- UNAUTHORIZED
- INSUFFICIENT_SCOPE
- NOT_FOUND
- RATE_LIMITED
- INTERNAL_ERROR
hint:
type: string
description: How to resolve the error, when known.
docs:
type: string
format: uri
description: Link to the error code reference.
details:
description: Optional structured context, such as field-level validation issues.
examples:
- error: 'Missing credentials. Provide an API key via x-api-key or an OAuth access token via Authorization: Bearer.'
code: UNAUTHORIZED
hint: 'Send an API key in the x-api-key header or an OAuth access token as Authorization: Bearer <token>.'
docs: https://www.quiz.video/docs/api/#error-codes
HookInput:
type: object
properties:
hookType:
type: string
enum:
- engagement
- reminder
- conclusion
- custom
positionType:
type: string
enum:
- after_question
- time_based
- start
- end
positionValue:
type: integer
title:
type: string
content:
type: string
emoji:
type: string
animationStyle:
type: string
enum:
- fade
- bounce
- slide
- zoom
default: fade
displayDuration:
type: integer
default: 5
ttsEnabled:
type: boolean
default: true
ttsText:
type: string
themeColor:
type: string
backgroundColor:
type: string
fontSize:
type: integer
default: 64
enabled:
type: boolean
default: true
introTemplate:
type: string
Hook:
allOf:
- $ref: '#/components/schemas/HookInput'
- type: object
properties:
id:
type: integer
quizId:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
DeleteResult:
type: object
required:
- deleted
properties:
deleted:
type: boolean
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: API key generated from the Quiz.Video account settings page.
BearerAuth:
type: http
scheme: bearer
description: OAuth JWT access token, or an API key supplied as an Authorization bearer token.
OAuth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://www.quiz.video/api/auth/oauth2/authorize
tokenUrl: https://www.quiz.video/api/auth/oauth2/token
scopes:
api:read: Read Quiz.Video API resources.
api:write: Create and update Quiz.Video API resources.
OpenIDConnect:
type: openIdConnect
openIdConnectUrl: https://www.quiz.video/.well-known/openid-configuration
externalDocs:
description: Human-readable API documentation
url: https://www.quiz.video/docs/api/