API v1currentBase URLhttps://api.sendlib.com/v1Bearer API key

API

Suppressions

Prevent delivery to specific recipients or domains and automate unsubscribe or bounce handling.

Suppressions block delivery to a recipient or a whole domain. They are enforced when a message is accepted, before it can cost you reputation. Common uses are unsubscribes, hard bounces, complaints, and support requests.

Upsert suppressions

POST/v1/suppressions

Adds or updates suppression entries. Supports JSON for immediate upserts and multipart uploads for background imports.

Scope
manage:suppressions

JSON mode

  • itemsarrayRequired

    Suppression entries.

  • items[].identifierstringRequired

    Email address or domain.

  • items[].typestringRequired

    email or domain.

  • items[].reason_categorystringRequired

    Suppression reason.

  • items[].source_message_idstring

    Optional message id that caused suppression.

  • items[].metadataobject

    Additional context.

Multipart mode

  • filefileRequired

    Newline-delimited identifiers.

  • typestringRequired

    email or domain.

  • reason_categorystringRequired

    Reason category applied to imported identifiers.

curl -X POST "https://api.sendlib.com/v1/suppressions" \
  -H "Authorization: Bearer $SENDLIB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      {
        "identifier": "bounced@example.com",
        "type": "email",
        "reason_category": "manual"
      }
    ]
  }'
{"inserted": 1, "updated": 0}

List suppressions

GET/v1/suppressions

Lists suppressions with cursor pagination.

Scope
manage:suppressions

Query parameters

  • limitinteger

    Default 100; max 1000.

  • cursorstring

    Cursor id (UUID) for next page.

  • typestring

    email or domain.

  • reason_categorystring

    Reason category filter.

curl "https://api.sendlib.com/v1/suppressions?limit=100&type=email" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "data": [],
  "pagination": {"cursor": "…", "has_more": false, "return_count": 0}
}

Get suppression

GET/v1/suppressions/{id}

Get a suppression entry by id.

Scope
manage:suppressions

Path parameters

  • idstringRequired

    The suppression id.

curl "https://api.sendlib.com/v1/suppressions/SUPPRESSION_ID" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Delete suppression

DELETE/v1/suppressions/{id}

Delete a suppression entry by id.

Scope
manage:suppressions

Path parameters

  • idstringRequired

    The suppression id.

curl -X DELETE "https://api.sendlib.com/v1/suppressions/SUPPRESSION_ID" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Next