MailInApp Webhooks API
The Webhooks API from MailInApp — 3 operation(s) for webhooks.
The Webhooks API from MailInApp — 3 operation(s) for webhooks.
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/mailinapp-com:mailinapp-com-webhooks-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: Mailinapp Com Webhooks API
version: 1.0.0
contact:
name: MailInApp
url: https://mailinapp.com
description: 'Operations tagged Webhooks across 2 of this provider''s published API definitions: mailinapp-com-openapi.json, mailinapp-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://mailinapp.com
security:
- apiKey: []
tags:
- name: Webhooks
paths:
/api/v1/webhooks:
get:
tags:
- Webhooks
operationId: listWebhookSubscriptions
summary: List webhook subscriptions
description: 'Rate limit: 30 requests/minute per key. Secrets are never listed.'
responses:
'200':
description: The account's subscriptions
content:
application/json:
schema:
type: object
required:
- subscriptions
properties:
subscriptions:
type: array
items:
$ref: '#/components/schemas/WebhookSubscription'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Webhooks
operationId: subscribeWebhook
summary: Subscribe to events (REST Hooks)
description: 'Rate limit: 30 requests/minute per key. At most 50 subscriptions per account. The returned `secret` signs every delivery and is shown only here. An endpoint answering 410 Gone is unsubscribed automatically; revoking the API key disables the subscriptions it made.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
format: uri
description: A public http(s) URL.
events:
type: array
minItems: 1
items:
$ref: '#/components/schemas/WebhookEventType'
event:
$ref: '#/components/schemas/WebhookEventType'
description: 'Shorthand for `events: [event]`.'
source:
type: string
enum:
- zapier
- n8n
responses:
'201':
description: Subscribed
content:
application/json:
schema:
type: object
required:
- id
- secret
- subscription
properties:
id:
type: string
secret:
type: string
description: whsec_…, shown once.
subscription:
$ref: '#/components/schemas/WebhookSubscription'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'409':
description: The account already has 50 subscriptions
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://mailinapp.com
/api/v1/webhooks/{id}:
delete:
tags:
- Webhooks
operationId: unsubscribeWebhook
summary: Unsubscribe
description: 'Any of the account''s subscriptions, not only the key''s own. Rate limit: 30 requests/minute per key.'
parameters:
- $ref: '#/components/parameters/Id'
responses:
'200':
$ref: '#/components/responses/Ok'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://mailinapp.com
/api/v1/events/sample:
get:
tags:
- Webhooks
operationId: sampleEvents
summary: Sample webhook events
description: Example deliveries, exactly as a subscription receives them, for field mapping before a real event has fired. One type with `type`, every type without.
parameters:
- name: type
in: query
required: false
schema:
$ref: '#/components/schemas/WebhookEventType'
responses:
'200':
description: Sample events
content:
application/json:
schema:
type: object
required:
- events
properties:
events:
type: array
items:
$ref: '#/components/schemas/WebhookEvent'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://mailinapp.com
components:
schemas:
WebhookSubscription:
type: object
required:
- id
- url
- events
- createdVia
- status
- createdAt
properties:
id:
type: string
apiKeyId:
type: string
url:
type: string
format: uri
events:
type: array
items:
$ref: '#/components/schemas/WebhookEventType'
createdVia:
type: string
enum:
- dashboard
- api
- zapier
- n8n
status:
type: string
enum:
- active
- disabled
disabledReason:
type: string
enum:
- gone
- api-key-revoked
createdAt:
type: integer
lastDeliveryAt:
type: integer
lastFailureAt:
type: integer
lastError:
type: string
Error:
type: object
description: An RFC 9457 problem details document. Routes may add extension members, such as a machine-readable `code`.
required:
- type
- title
- status
- detail
- error
properties:
type:
type: string
description: A URI naming the problem type; `about:blank` means the HTTP status says it all.
example: about:blank
title:
type: string
description: The HTTP status's reason phrase.
example: Not Found
status:
type: integer
description: The HTTP status code, repeated.
example: 404
detail:
type: string
description: What went wrong with this request, for a person to read.
example: List not found
error:
type: string
description: The same text as `detail`, kept for clients written before problem details.
example: List not found
code:
type: string
description: A machine-readable reason, on the routes that have one.
additionalProperties: true
WebhookEventType:
type: string
enum:
- interaction.received
- form.submitted
- contact.created
- contact.updated
- lead.hot
- lead.new
- booking.created
- booking.cancelled
- deal.created
- deal.stage_changed
- purchase.completed
- journey.completed
- experiment.decided
- experiment.completed
- response.completed
- review.submitted
WebhookEvent:
type: object
description: One delivery. `id` is stable per real-world event and is also sent as X-MailInApp-Idempotency-Key.
required:
- id
- type
- createdAt
- data
properties:
id:
type: string
type:
$ref: '#/components/schemas/WebhookEventType'
createdAt:
type: integer
description: Epoch ms.
data:
type: object
additionalProperties: true
responses:
Unauthorized:
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Unauthorized
status: 401
detail: 'Missing or invalid Authorization: Bearer <apiKey>'
error: 'Missing or invalid Authorization: Bearer <apiKey>'
BadRequest:
description: Invalid request
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Bad Request
status: 400
detail: A valid `email` is required
error: A valid `email` is required
RateLimited:
description: Too many requests for this key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Too Many Requests
status: 429
detail: Too many requests
error: Too many requests
Ok:
description: Done
content:
application/json:
schema:
type: object
required:
- ok
properties:
ok:
type: boolean
const: true
NotFound:
description: Not found, or not this account's
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
example:
type: about:blank
title: Not Found
status: 404
detail: List not found
error: List not found
parameters:
Id:
name: id
in: path
required: true
schema:
type: string
securitySchemes:
apiKey:
type: http
scheme: bearer
description: An API key from Dashboard → Developers (mia_live_…).
x-refined-from:
- mailinapp-com-openapi.json
- mailinapp-com-openapi.json
x-provenance:
method: harvested
publisher: MailInApp
source: https://mailinapp.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)