Mutator Hooks API
The hooks API from Mutator — 2 operation(s) for hooks.
The hooks API from Mutator — 2 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/mutator-app:mutator-app-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: Mutator Hooks API
version: 1.0.0
summary: Start runs, read what they made, and be told when something happens.
description: 'Drive Mutator from your own systems. Keys come with any paid plan, and what a key reaches depends on the plan.
**Nothing here publishes.** No endpoint schedules a post, so no key of any scope can cause anything to reach a social account: a post exists only once a person has put a particular file in a particular account''s schedule, in Mutator.
Lists are paged by cursor (`after`, `nextCursor`), and `post.published` and the other webhook events are delivered signed. See the full documentation at /docs/api.'
contact:
name: Mutator
url: https://mutator.app/support
servers:
- url: https://mutator.app
security:
- bearerAuth: []
tags:
- name: Hooks
paths:
/api/v1/hooks:
get:
operationId: hooks.list
summary: What this key is listening for, and whether we have given up on any of it
tags:
- Hooks
parameters: []
responses:
'200':
description: What this key is listening for, and whether we have given up on any of it.
content:
application/json:
schema:
type: object
properties:
hooks:
type: array
items:
type: object
properties:
id:
type: string
event:
type: string
targetUrl:
type: string
createdAt: {}
lastDeliveredAt: {}
disabledAt: {}
lastError:
anyOf:
- type: string
- type: 'null'
required:
- id
- event
- targetUrl
- createdAt
- lastDeliveredAt
- disabledAt
- lastError
additionalProperties: false
required:
- hooks
additionalProperties: false
'400':
description: The request is malformed. An `issues` array names the fields.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'401':
description: Missing, unknown, revoked or expired key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'403':
description: A read-only key attempted a write.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'429':
description: 'Rate limited: 120 reads and 30 writes a minute, per key.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'500':
description: Our side. Safe to retry anything idempotent.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
security:
- bearerAuth: []
x-mutator-scope: read
post:
operationId: hooks.subscribe
summary: Be told when something happens.
tags:
- Hooks
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
event:
type: string
enum:
- media.created
- run.finished
- generation.finished
- post.published
targetUrl:
type: string
minLength: 1
required:
- event
- targetUrl
responses:
'200':
description: Be told when something happens. The secret is shown once and signs every delivery.
content:
application/json:
schema:
type: object
properties:
id:
type: string
event:
type: string
targetUrl:
type: string
secret:
type: string
createdAt: {}
events:
type: array
items:
type: string
enum:
- media.created
- run.finished
- generation.finished
- post.published
required:
- id
- event
- targetUrl
- secret
- createdAt
- events
additionalProperties: false
'400':
description: That event does not exist, or that address cannot be sent to.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'401':
description: Missing, unknown, revoked or expired key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'403':
description: A read-only key attempted a write.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'429':
description: 'Rate limited: 120 reads and 30 writes a minute, per key.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'500':
description: Our side. Safe to retry anything idempotent.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
security:
- bearerAuth: []
x-mutator-scope: read
/api/v1/hooks/{hookId}:
delete:
operationId: hooks.unsubscribe
summary: Stop. Answers 204 and nothing else
tags:
- Hooks
parameters:
- name: hookId
in: path
required: true
schema:
type: string
responses:
'204':
description: Done. No body.
'400':
description: The request is malformed. An `issues` array names the fields.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'401':
description: Missing, unknown, revoked or expired key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'403':
description: A read-only key attempted a write.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'404':
description: No subscription with that id belonging to this key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'429':
description: 'Rate limited: 120 reads and 30 writes a minute, per key.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'500':
description: Our side. Safe to retry anything idempotent.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
security:
- bearerAuth: []
x-mutator-scope: read
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A Mutator API key: Settings, API keys, New key.'