Create or update a subscriber.
create_or_update_subscriberAdd or update a Flodesk subscriber by email or ID, setting names, segments, custom fields, and opt-in preferences.
Instructions
Create or update a subscriber.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The subscriber's `id`. Either `email` or `id` must be included. | |
| No | The subscriber's `email`. Either `email` or `id` must be included. | ||
| account | No | Exact configured private account profile label; not a tenant or provider account ID. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete native JSON body; do not mix with body flags or payload_file. Arrays use repeated JSON object flags or a whole native array in a private file. | |
| optin_ip | No | IP address from which the subscriber confirmed their opt-in. | |
| last_name | No | The subscriber's last name. | |
| first_name | No | The subscriber's first name. | |
| segment_ids | No | The segments this subscriber will be added to. Cap at `50`. | |
| double_optin | No | ||
| payload_file | No | Absolute regular non-symlink JSON body file, at most 1 MiB. Cannot mix with payload/body flags. | |
| custom_fields | No | An object containing custom field data. E.g. ``` "favorite_color": "Lavender" ```. | |
| optin_timestamp | No | The date and time the subscribers confirmed their opt-in in ISO 8601 format. E.g. `2023-01-02T15:04:05.999Z`. |