1. Integrations
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
  • Webhooks
    • List webhook subscriptions
    • Create a webhook subscription
    • Get a webhook subscription
    • Update a webhook subscription
    • Delete a webhook subscription
  • 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. Integrations

Add keyword rules

POST
/v1/integrations/{type}/connections/{id}/keywords/{list}
Adds one or more rules to the connection's {list}. Body is always an array: { rules: [ { keyword, match, applies_to }, … ] } (1–1000) — a single keyword is just an array of one. Each applies_to must enable at least one of localpart/domain/email. All-or-nothing: if any item is invalid the whole request is rejected 400 invalid_request and nothing is written. Keywords are stored space-stripped and upserted on keyword (re-adding the same keyword updates the existing rule in place — no duplicate). Returns 200 with { data: [rules] } (each with its stable id, deduped, in first-seen order). Unknown type or list, or an unowned connection, → 404 not_found. Honors Idempotency-Key.

Request

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

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Rules added
Bodyapplication/json

🟠400
🟠401
🟠403
🟠404
🟠409
🟠422
🟠429
🔴500
🔴503
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.mailfloss.com/v1/integrations//connections//keywords/' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "rules": [
        {
            "keyword": "string",
            "match": "exact",
            "applies_to": {
                "localpart": true,
                "domain": true,
                "email": true
            }
        }
    ]
}'
Response Response Example
200 - Success
{
    "data": [
        {
            "id": "kw_7f8e9d0c1b2a3f4e",
            "keyword": "noreply",
            "match": "exact",
            "applies_to": {
                "localpart": true,
                "domain": false,
                "email": false
            }
        },
        {
            "id": "kw_6e7d8c9b0a1f2e3d",
            "keyword": "mailinator",
            "match": "contains",
            "applies_to": {
                "localpart": false,
                "domain": true,
                "email": false
            }
        }
    ]
}
Modified at 2026-10-20 13:54:45
Previous
List a connection's keyword rules
Next
Delete a keyword rule
Built with