Create Subscriber

Add a new subscriber to your Lumail account

MethodPOST
/api/v1/subscribers

https://lumail.io/api/v1/subscribers

Add a new subscriber to your email list or update an existing one. Subscribers are identified by their email address.

Response

  • Success (200 OK) - Returns the subscriber object.
  • Error (400 Bad Request) - Generic message if the email is invalid or if the subscriber limit is reached.
  • Error (402 Payment Required) - Indicates that the subscriber limit is reached.

Response Fields

FieldTypeDescription
successbooleanIndicates if the operation was successful
subscriberobjectThe subscriber object with all its properties
subscriber.idstringUnique identifier for the subscriber
subscriber.emailstringEmail address of the subscriber
subscriber.namestring or nullName of the subscriber (if provided)
subscriber.phonestring or nullPhone number of the subscriber (if provided)
subscriber.unsubscribeReasonstring or nullReason provided when unsubscribing (if applicable)
subscriber.statusstringCurrent status of the subscriber (e.g., "SUBSCRIBED", "UNSUBSCRIBED", "BANNED")
subscriber.clickCountnumberTotal number of clicks from this subscriber
subscriber.openCountnumberTotal number of email opens from this subscriber
subscriber.revenuenumberTotal revenue attributed to this subscriber
subscriber.organizationIdstringID of the organization this subscriber belongs to
subscriber.ipAddressstring or nullIP address of the subscriber (captured at signup)
subscriber.countrystring or nullISO 3166-1 alpha-2 country code (e.g., "US", "FR", "CH")
subscriber.createdAtstringISO timestamp when the subscriber was created
subscriber.updatedAtstringISO timestamp when the subscriber was last updated
subscriber.fieldsarrayCustom field values associated with this subscriber
subscriber.fields[].idstringUnique identifier for the field
subscriber.fields[].namestringName of the field
subscriber.fields[].valuestringValue of the field
subscriber.tagsarrayTags associated with this subscriber
subscriber.tags[].idstringUnique identifier for the tag
subscriber.tags[].namestringName of the tag

Request Schema

FieldTypeDefaultDescription
emailstringrequiredEmail address of the subscriber
namestringoptionalName of the subscriber
phonestringoptionalPhone number of the subscriber
tagsstring[][]Tag names to assign to the subscriber
fieldsobjectoptionalCustom field values (key-value pairs). Note: email, name, and phone are reserved field names and will be ignored if used.
replaceTagsbooleanfalseIf true, replaces all existing tags with the provided ones
resubscribebooleantrueIf true, resubscribes the user if they were previously unsubscribed. For POST, this defaults to true since the user is actively subscribing
triggerWorkflowsbooleantrueIf false, skip triggering workflows even if subscriber's tags match workflow triggers. Useful for bulk imports or syncing data without triggering automations
skipDoubleOptInbooleanfalseIf true, create the contact as SUBSCRIBED even when organization double opt-in is on. No confirmation email or token. Does not write confirmedAt. Does not resubscribe UNSUBSCRIBED unless resubscribe is also true. Use for trusted backends (checkout, server import), not public forms.
ipAddressstringoptionalIP address of the subscriber. Used to auto-detect country if country is not provided
countrystringoptionalISO 3166-1 alpha-2 country code (e.g., "US", "FR", "CH"). Auto-detected from ipAddress if not provided

Reserved Field Names

The following field names are reserved and cannot be used in the fields object:

  • email - Use the dedicated email parameter instead
  • name - Use the dedicated name parameter instead
  • phone - Use the dedicated phone parameter instead

If you attempt to use a reserved field name, it will be ignored and a warning will be returned in the response.

Usage Example

Use this API endpoint to:

  • Add new subscribers to your email list from external forms or applications
  • Import subscribers from other systems
  • Update existing subscriber information
  • Add custom fields for personalization
  • Assign tags for segmentation and targeting
  • Track subscriber information for analytics and reporting