1. Webhooks
mailfloss API
  • Verification
    • Verify a single email address
      GET
  • Batch
    • Submit a batch of emails for async verification
      POST
    • Get batch job status
      GET
    • Get batch job results (paginated)
      GET
    • Cancel a batch verification job
      POST
    • List verification jobs
      GET
    • Get a verification job
      GET
  • Account
    • Account activity timeline
      GET
    • Verify an API key
      GET
    • Read the authenticated account holder
      GET
    • Update the authenticated account holder
      PATCH
    • Read the authenticated organization
      GET
  • Team
    • List team members
      GET
    • Get the account owner as a team member
      GET
    • Get a team member
      GET
  • Reports
    • Get verification usage analytics
      GET
  • Webhooks
    • List webhook subscriptions
      GET
    • Create a webhook subscription
      POST
    • Get a webhook subscription
      GET
    • Update a webhook subscription
      PATCH
    • Delete a webhook subscription
      DELETE
  • Integrations
    • List all integrations (connected + disconnected)
      GET
    • Read one integration with all of its connections
      GET
    • Connect a new connection (with credentials)
      POST
    • Read one connection
      GET
    • Update a connection's settings
      PATCH
    • Disconnect a connection
      DELETE
    • Re-sync a connection's audiences
      POST
    • Test a connection's credentials
      POST
    • List a connection's keyword rules
      GET
    • Add keyword rules
      POST
    • Delete a keyword rule
      DELETE
  • Privacy
    • Erase stored verification records (data privacy)
  • Schemas
    • ErrorEnvelope
  1. Webhooks

Create a webhook subscription

POST
/v1/webhooks
Creates a webhook subscription — the same result as adding one on the dashboard's webhooks page. Requires name, a publicly-reachable http(s) url, and at least one event code from the closed events enum. data_source scopes which connections feed the subscription: "all" (default) or a single connection id from GET /v1/integrations/{type}. The optional secret enables delivery signing (HMAC-SHA1 of the JSON data payload in the X-Request-Signature header) and is write-only — it can never be read back. Webhooks are a Business/Pro-plan feature (or the Webhooks add-on): requests from non-entitled plans → 403 forbidden. The first subscription automatically enables webhook delivery for your account. Delivery is best-effort (no ordering guarantee, may burst); after 5 failed delivery attempts a subscription is automatically deactivated (active: false). Honors Idempotency-Key (a retried POST with the same key replays the original 201).

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params application/json

Examples

Responses

🟢201
application/json
Subscription created
Bodyapplication/json

🟠400
🟠401
🟠403
🟠409
🟠422
🟠429
🔴500
🔴503
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.mailfloss.com/v1/webhooks' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "string",
    "url": "string",
    "events": [
        "status-undeliverable"
    ],
    "data_source": "string",
    "active": true,
    "secret": "string"
}'
Response Response Example
201 - Success
{
    "id": "aBcDeFgHiJkLmNoPq",
    "name": "CRM sync — undeliverables",
    "url": "https://example.com/mailfloss/webhook",
    "events": [
        "status-undeliverable",
        "job-finished"
    ],
    "data_source": "all",
    "active": true,
    "has_secret": true,
    "created_at": "2026-07-10T04:12:00.000Z",
    "updated_at": "2026-07-10T04:12:00.000Z"
}
Modified at 2026-10-20 13:54:45
Previous
List webhook subscriptions
Next
Get a webhook subscription
Built with