---
title: "Create or update subscriber"
method: POST
path: "/subscribers"
tags: ["Subscribers"]
---

# Create or update subscriber

`POST /subscribers`

Creates a new subscriber or handles existing ones based on the `duplicateStrategy` parameter.

**Duplicate Strategies:**
- `skip` (default): Don't update existing subscribers
- `merge`: Only fill in missing fields, never overwrite existing values
- `overwrite`: Replace all fields (but never reactivate unsubscribed users)

## Request body

- object
  - `email` string, email — Required when creating a new subscriber unless a phone is provided (which creates a phone-only SMS contact). Optional when externalId identifies an existing subscriber.
  - `externalId` string — Customer-owned app/customer/user ID. Unique per company when provided.
  - `firstName` string
  - `lastName` string
  - `phone` string, nullable — Phone number in E.164 format or national format. Stored normalized to E.164. Invalid values fail with a 400 validation error. Does not affect SMS consent. With no email or externalId, creates or matches a phone-only (SMS) contact.
  - `phoneCountry` string, nullable — ISO 3166-1 alpha-2 country used to read a national-format phone, defaulting to US. A parsing hint only - the stored phoneCountry always comes from the parsed number. Sending it without phone fails with a 400 validation error.
  - `smsConsent` boolean — SMS marketing consent. true sets smsStatus to subscribed with consent source api, false sets unsubscribed, omitted leaves SMS status unchanged. Never inferred from phone presence.
  - `status` 'active' | 'unsubscribed' | 'bounced' — Initial subscriber status.
  - `optInMode` 'default' | 'confirmed' | 'double_opt_in' — Consent handling for this request: - `default`: obey the company double opt-in setting for new active subscribers; existing unsubscribed contacts are not sent confirmation email - `confirmed`: create or keep active immediately when you have verified consent - `double_opt_in`: send a confirmation email and keep the contact unsubscribed until they confirm
  - `tags` string[]
  - `lists` string[] — List IDs to add subscriber to. If not provided, subscriber follows the workspace default lists setting. If empty array, subscriber is added to NO lists.
  - `customAttributes` object
  - `enrollInSequences` boolean — Whether to enroll the subscriber in matching sequences. Defaults to true for API calls, or to false when createdAt is supplied.
  - `createdAt` string, date-time — Original signup date, for importing history from another platform. Preserves the real date so date-relative segments are correct immediately. An existing contact's date only ever moves earlier, regardless of duplicateStrategy. Supplying this defaults enrollInSequences to false, and updatedAt is never backdated.
  - `duplicateStrategy` 'skip' | 'merge' | 'overwrite' — How to handle existing subscribers: - `skip`: Don't update existing subscribers (default) - `merge`: Only fill in missing fields, never overwrite existing values - `overwrite`: Replace all fields (but never reactivate unsubscribed users)

## Response `200`

Subscriber created or handled based on duplicate strategy

- object
  - `success` boolean
  - `subscriber` object
    - `id` string
    - `email` string, email, nullable — Null for phone-only (SMS) contacts, which are identified by their phone number instead.
    - `externalId` string, nullable — Customer-owned app/customer/user ID for this subscriber
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `phone` string, nullable — Phone number in E.164 format
    - `smsStatus` 'not_subscribed' | 'pending' | 'subscribed' | 'unsubscribed' — SMS marketing consent status, independent of the email status
    - `status` 'active' | 'unsubscribed' | 'bounced'
    - `emailProvider` string, nullable
    - `tags` string[]
    - `customAttributes` object
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `created` boolean — Whether the subscriber was newly created
    - `updated` boolean — Whether the subscriber was updated (merge/overwrite strategies)
    - `skipped` boolean — Whether the subscriber was skipped (skip strategy on existing)
  - `optIn` object — Present when the subscriber is awaiting double opt-in confirmation.
    - `required` boolean
    - `emailQueued` boolean

## Other responses

- `400` — Validation error, for example an invalid phone number
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.net/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/versions/af1cf9620482/schema)
