Create Subscription
POST
/api/public/subscriptionCreates a new email/SMS subscription. Requires the X-Delightable-Brand-Uuid header. Duplicate requests (same body within 1 hour) are rejected. Can optionally trigger SMS opt-in, single-send campaign emails, and tag assignments. The API always records a joinDate: an explicit joinDate is used unchanged; otherwise today's date is calculated using the request's timezone field, then the resolved store timezone, then America/New_York.
Local join date: Send
joinDate as YYYY-MM-DD when the form already knows the submitter's local date. Otherwise send an IANA timezone, such as America/Los_Angeles. If neither is supplied, the API uses the resolved store timezone, then Eastern time (America/New_York).Headers
| Name | Required | Type | Description |
|---|---|---|---|
X-API-Key | Yes | string | Your Fishbowl API key for authentication and rate limiting. |
X-Delightable-Client-Uuid | Yes | string / uuid | Identifies the client context. |
X-Delightable-Brand-Uuid | Yes | string / uuid |
JSON request body
| Field | Required | Type | Constraints |
|---|---|---|---|
firstName | Yes | string | |
lastName | No | string | |
email | Yes | string / email | |
phoneNumber | No | string | Required if receiveSms is true. Must be 10-15 digits. |
zipCode | No | string | |
birthdayMonth | No | integer | range 1–12 |
birthdayDay | No | integer | range 1–31 |
birthdayYear | No | integer | |
birthdate | No | string / date | Alternative to month/day/year. Format: Y-m-d. |
weddingAnniversary | No | string | |
brandUuid | No | string / uuid | |
storeUuid | No | string / uuid | |
listUuid | Yes | string / uuid | Engagement list UUID. |
receiveEmails | No | boolean | |
receiveSms | No | boolean | If true and phoneNumber is valid, triggers SMS opt-in flow. |
source | Yes | string | Acquisition source identifier. |
createdDate | No | string / date | |
joinDate | No | string / date | Optional submitter-local calendar date when the member joined, in YYYY-MM-DD format. The value is stored without timezone conversion. If omitted, the API uses the current date in the request's timezone field, then the resolved store timezone, then America/New_York. |
timezone | No | string | Optional IANA timezone used to calculate joinDate when joinDate is omitted. Takes precedence over the resolved store timezone. |
campaignUuid | No | string / uuid | Triggers single-send campaign email. |
tags | No | array<string / uuid> | Tag UUIDs to assign. |
Responses
| Status | Description |
|---|---|
200 | Created subscription with member update log. |
400 | Validation error or duplicate request. |
OpenAPI
Download this operation's OpenAPI 3.1 JSON. Operation ID: createSubscription.