lumail.subscribers.create

SDK 2.1.0 · API v2 · POST /api/v2/subscribers

MethodPOST
/api/v2/subscribers

[email protected] · lumail.subscribers

subscribers.create(params: CreateSubscriberParams): Promise<LumailResult<CreateSubscriberResponse>>

email required. Upserts by email.

skipDoubleOptIn defaults to false. Pass true from a trusted backend (checkout, server-side import) to create the contact as SUBSCRIBED even when the organization has double opt-in enabled. This does not record a native confirmation click (confirmedAt stays empty). Do not use it on public forms.

Body Parameters

NameTypeDescription
emailstringRequired. Contact email.
namestring or nullDisplay name.
phonestring or nullPhone number.
tagsstring[]Tag names to attach. Created if missing.
fieldsRecordCustom fields. null clears a field.
replaceTagsbooleanWhen true, replace the existing tag set with tags.
resubscribebooleanWhen true, re-subscribe an UNSUBSCRIBED contact.
triggerWorkflowsbooleanWhen true, run subscribe workflows.
skipDoubleOptInbooleanWhen true, create as SUBSCRIBED even if org double opt-in is on. Does not resubscribe UNSUBSCRIBED unless resubscribe is also true.
ipAddressstringOptional signup IP.
countrystringOptional country code.

Response Fields

FieldTypeDescription
idstringSubscriber id.
emailstringEmail.
namestring or nullDisplay name.
phonestring or nullPhone.
statusSubscriberStatusCurrent status.
tags{ id, name }[]Attached tags.
fieldsRecordCustom fields.
createdAtstringOptional ISO 8601 timestamp.
updatedAtstringOptional ISO 8601 timestamp.
warningsstring[]Optional non-fatal notes.

data is the subscriber. Failures return { data: null, error: { name, message, statusCode } }.