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

Update a webhook subscription

PATCH
/v1/webhooks/{id}
Partial update (JSON merge-patch — omitted fields are left unchanged) of a subscription: any of name, url, events (replaces the whole set), data_source, active (pause/resume without deleting), and secret. Setting secret to a non-empty string replaces it; an empty string "" clears it; omitting it leaves it unchanged. At least one field is required. Returns 200 with the refreshed subscription. Non-entitled plans → 403 forbidden. An id that does not exist or belongs to another org → 404. PATCH is idempotent; it does not consume the Idempotency-Key header.

Request

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

Body Params application/json

Examples

Responses

🟢200
application/json
Updated subscription
Bodyapplication/json

🟠400
🟠401
🟠403
🟠404
🟠429
🔴500
🔴503
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.mailfloss.com/v1/webhooks/' \
--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
200 - 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
Get a webhook subscription
Next
Delete a webhook subscription
Built with