Skip to content

Change tags and lists on up to 1,000 subscribers

On this page
POST/v1/subscribers/bulk-updatebulk_update_subscribers
Riskbulk
AuthenticationAPI key or OAuth access token
Scopessubscribers:write, tags:write
Idempotencyrequired: send an Idempotency-Key header
Dry runyes: add dry_run=true to the query
Success status200
Response typeapplication/json

What it does#

  • Use when: You tag or list many readers at once by subscriber id.
  • Do not use when: you change status or consent (those never change in bulk) or one reader (call add_subscriber_tags).
  • Side effects: Adds or removes tags and list memberships; Over 100 items becomes an async operation.
  • Reversible: Yes, run the opposite add or remove.
  • Required scope: subscribers:write, tags:write.
  • Idempotency: required (Idempotency-Key header).
  • Typical next step: call get_operation if the answer was 202.

Scopes#

  • subscribers:write: Add subscribers with double opt-in, update them, unsubscribe them, and change their lists and tags.
  • tags:write: Add and remove tags on subscribers.

Side effects#

  • Adds or removes tags and list memberships
  • Over 100 items becomes an async operation

Request#

Path parameters#

None.

Query parameters#

None.

Every mutation also accepts dry_run=true: it runs every check and returns {"dry_run": true, "would": {...}} without writing anything.

Body (application/json)#

FieldTypeRequiredDescription
subscriber_idsarray of string, max 1000 itemsyes
add_tagsarray of string, max 50 characters, max 20 itemsno
remove_tagsarray of string, max 50 characters, max 20 itemsno
add_listsarray of string, max 100 characters, max 50 itemsno
remove_listsarray of string, max 50 itemsno

Response#

FieldTypeRequiredDescription
resultsarray of objectyes
results[].indexinteger, min -9007199254740991, max 9007199254740991yesPosition of the item in the request
results[].statusone of "added_pending", "confirmation_resent", "added_confirmed", "updated", "unchanged", "already_subscribed", "already_pending", "cannot_resubscribe", "invalid", "plan_limit", "daily_limit", "unavailable", "not_found", "unknown", "canceled"yes
results[].emailstringno
results[].subscriber_idstringno
results[].codestringno
results[].messagestringno
countsobjectyes

Examples#

tag two#

Request:

curl -X POST 'https://api.seemly.com/v1/subscribers/bulk-update' \
  -H "Authorization: Bearer $SEEMLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "subscriber_ids": [
    "sub_0123456789abcdefghjkmnpq"
  ],
  "add_tags": [
    "vip"
  ]
}'

Response: 200:

JSON
{
  "results": [
    {
      "index": 0,
      "status": "updated",
      "subscriber_id": "sub_0123456789abcdefghjkmnpq"
    }
  ],
  "counts": {
    "updated": 1
  }
}

Errors#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.