{ "success": false, "message": "Validation errors", "data": { "subscriber_data.custom_fields": [ "Custom fields must be an array with unique keys (case-insensitive)", "Subscriber custom fields must be an array with max 5000 bytes" ] }}
{ "success": false, "message": "Validation errors", "data": { "subscriber_data.custom_fields": [ "Custom fields must be an array with unique keys (case-insensitive)", "Subscriber custom fields must be an array with max 5000 bytes" ] }}
Custom field values. Limited to 5000 characters total. Reserved system merge tags are ignored. If a field doesn’t exist, a new field is created. Supported types: string, date, json, int, float, url. Float precision is limited to 3 decimal places.Keys are case-insensitive — they are trimmed and lowercased on input, so SHOP, shop and Shop are treated as the same field. Two keys that differ only in case or whitespace in the same request are rejected as duplicates.
array
Subscriber tags. Limited to 2000 characters total and 50 characters per tag. Content overwrites current tags. Only updates if the parameter is present and update_existing is true. To clear all tags, send an empty array.
object
Group assignments. Overwrites current values. To keep existing selections, send the current values together with new ones.
string
Firebase Cloud Messaging (FCM) registration token used to deliver push notifications. Max 255 characters. Required whenever you send fcm_app_id. Send null to remove the token, the platform, and the app ID from the contact. Leave the field out to keep the stored values. A token and app ID pair belongs to one contact only: when you send a pair that another contact already has, Ecomail removes it from that other contact.
string
Device platform for push notifications. Must be android, ios, or web. Can only be sent together with fcm_token.
string
Firebase application ID associated with the FCM token. Max 150 characters. Required whenever you send fcm_token.
boolean
default:"false"
Trigger automations when the subscriber is added.
boolean
default:"false"
Send a notification about the new subscriber if configured in list settings.
boolean
default:"false"
Update the subscriber if they already exist in the list.
boolean
default:"false"
Skip double opt-in confirmation. If false, the system sends a double opt-in email and the subscriber is added with status 6 (unconfirmed).
boolean
default:"false"
Force resubscribe if the subscriber was previously unsubscribed (status 2). If status is provided in subscriber_data, it takes precedence. For resubscribe to work, the status must be 1.
If the subscriber already exists in the list, the response includes already_subscribed: true.
The inserted_at field in the response returns the time in UTC format.
{ "success": false, "message": "Validation errors", "data": { "subscriber_data.custom_fields": [ "Custom fields must be an array with unique keys (case-insensitive)", "Subscriber custom fields must be an array with max 5000 bytes" ] }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ecomail API","colors":{"primary":"#0F7B5F","light":"#12B886","dark":"#0D6B52"},"logo":{"light":"https://mintcdn.com/ecomail/qDze0E0xIaXJdAhk/logo/light.svg?fit=max\u0026auto=format\u0026n=qDze0E0xIaXJdAhk\u0026q=85\u0026s=7075922c6fe6d5e18e2edcaf136c8651","dark":"https://mintcdn.com/ecomail/qDze0E0xIaXJdAhk/logo/dark.svg?fit=max\u0026auto=format\u0026n=qDze0E0xIaXJdAhk\u0026q=85\u0026s=5f2b49857188ca4ff3ebb52eb3f8f1db"},"favicon":"https://mintcdn.com/ecomail/Xiiei-AD2s8SmVXm/favicon-32x32.png?fit=max\u0026auto=format\u0026n=Xiiei-AD2s8SmVXm\u0026q=85\u0026s=02961282d0e4fdbe8d438dcbb6432b3a","api":{"mdx":{"auth":{"method":"key","name":"key"},"server":"https://api2.ecomailapp.cz"}},"navbar":{"links":[{"href":"mailto:support@ecomail.cz","label":"Support"}],"primary":{"type":"button","label":"Sign in","href":"https://ecomail.app"}},"footer":{"socials":{"website":"https://ecomail.app"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ecomail","hasAudioNarration":false,"actualSubdomain":"ecomail","customDomains":["docs.ecomail.cz"],"gitSource":{"type":"github","owner":"tlapi","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aeb0ac4c8520f7b8ee1fec2","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"API reference","count":77},{"language":"default","tag":"Lists","count":13},{"language":"default","tag":"Campaigns","count":10},{"language":"default","tag":"Ecomail AI","count":10},{"language":"default","tag":"Automations","count":6},{"language":"default","tag":"Subscribers","count":6},{"language":"default","tag":"Transactions","count":6},{"language":"default","tag":"Recommenders","count":5},{"language":"default","tag":"Discount coupons","count":4},{"language":"default","tag":"Smart delivery","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/lists/subscribe","slug":"/api-reference/lists/subscribe","pageMetadata":{"title":"Add new subscriber to list","api":"POST https://api2.ecomailapp.cz/lists/{list_id}/subscribe","description":"Subscribe a new contact to a specific list.","href":"/api-reference/lists/subscribe"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Subscribe a new contact to a specific list.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Note,ParamField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(ParamField,{path:`list_id`,type:`integer`,required:true,id:`param-list-id`,children:_jsx(_components.p,{children:`ID of the list.`})}),`\n`,_jsxs(ParamField,{body:`subscriber_data`,type:`object`,required:true,id:`param-subscriber-data`,children:[_jsx(_components.p,{children:`Information about the subscriber.`}),_jsxs(Expandable,{title:`subscriber_data properties`,children:[_jsx(ParamField,{body:`subscriber_data[email]`,type:`string`,required:true,id:`param-subscriber-data-email`,children:_jsx(_components.p,{children:`Subscriber’s email address.`})}),_jsx(ParamField,{body:`subscriber_data[name]`,type:`string`,id:`param-subscriber-data-name`,children:_jsx(_components.p,{children:`First name.`})}),_jsx(ParamField,{body:`subscriber_data[surname]`,type:`string`,id:`param-subscriber-data-surname`,children:_jsx(_components.p,{children:`Last name.`})}),_jsx(ParamField,{body:`subscriber_data[gender]`,type:`string`,id:`param-subscriber-data-gender`,children:_jsxs(_components.p,{children:[`Gender. Must be `,_jsx(_components.code,{children:`male`}),` or `,_jsx(_components.code,{children:`female`}),`.`]})}),_jsx(ParamField,{body:`subscriber_data[status]`,type:`integer`,id:`param-subscriber-data-status`,children:_jsxs(_components.p,{children:[`Subscriber status. `,_jsx(_components.code,{children:`1`}),` = subscribed, `,_jsx(_components.code,{children:`2`}),` = unsubscribed, `,_jsx(_components.code,{children:`4`}),` = hard bounce, `,_jsx(_components.code,{children:`5`}),` = spam complaint, `,_jsx(_components.code,{children:`6`}),` = unconfirmed.`]})}),_jsx(ParamField,{body:`subscriber_data[company]`,type:`string`,id:`param-subscriber-data-company`,children:_jsx(_components.p,{children:`Company name.`})}),_jsx(ParamField,{body:`subscriber_data[city]`,type:`string`,id:`param-subscriber-data-city`,children:_jsx(_components.p,{children:`City.`})}),_jsx(ParamField,{body:`subscriber_data[street]`,type:`string`,id:`param-subscriber-data-street`,children:_jsx(_components.p,{children:`Street address.`})}),_jsx(ParamField,{body:`subscriber_data[zip]`,type:`string`,id:`param-subscriber-data-zip`,children:_jsx(_components.p,{children:`ZIP or postal code.`})}),_jsx(ParamField,{body:`subscriber_data[country]`,type:`string`,id:`param-subscriber-data-country`,children:_jsx(_components.p,{children:`Country code.`})}),_jsx(ParamField,{body:`subscriber_data[phone]`,type:`string`,id:`param-subscriber-data-phone`,children:_jsx(_components.p,{children:`Phone number.`})}),_jsx(ParamField,{body:`subscriber_data[pretitle]`,type:`string`,id:`param-subscriber-data-pretitle`,children:_jsx(_components.p,{children:`Pre-title (e.g. Mr., Mrs.).`})}),_jsx(ParamField,{body:`subscriber_data[surtitle]`,type:`string`,id:`param-subscriber-data-surtitle`,children:_jsx(_components.p,{children:`Post-nominal title (e.g. PhD).`})}),_jsx(ParamField,{body:`subscriber_data[birthday]`,type:`string`,id:`param-subscriber-data-birthday`,children:_jsxs(_components.p,{children:[`Birthday in `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` format.`]})}),_jsx(ParamField,{body:`subscriber_data[nameday]`,type:`string`,id:`param-subscriber-data-nameday`,children:_jsxs(_components.p,{children:[`Name day in `,_jsx(_components.code,{children:`MM-DD`}),` format.`]})}),_jsx(ParamField,{body:`subscriber_data[source]`,type:`string`,id:`param-subscriber-data-source`,children:_jsx(_components.p,{children:`Source of the subscriber.`})}),_jsxs(ParamField,{body:`subscriber_data[custom_fields]`,type:`object`,id:`param-subscriber-data-custom-fields`,children:[_jsxs(_components.p,{children:[`Custom field values. Limited to 5000 characters total. Reserved system merge tags are ignored. If a field doesn’t exist, a new field is created. Supported types: `,_jsx(_components.code,{children:`string`}),`, `,_jsx(_components.code,{children:`date`}),`, `,_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`int`}),`, `,_jsx(_components.code,{children:`float`}),`, `,_jsx(_components.code,{children:`url`}),`. Float precision is limited to 3 decimal places.`]}),_jsxs(_components.p,{children:[`Keys are case-insensitive — they are trimmed and lowercased on input, so `,_jsx(_components.code,{children:`SHOP`}),`, `,_jsx(_components.code,{children:`shop`}),` and `,_jsx(_components.code,{children:`Shop`}),` are treated as the same field. Two keys that differ only in case or whitespace in the same request are rejected as duplicates.`]})]}),_jsx(ParamField,{body:`subscriber_data[tags]`,type:`array`,id:`param-subscriber-data-tags`,children:_jsxs(_components.p,{children:[`Subscriber tags. Limited to 2000 characters total and 50 characters per tag. Content overwrites current tags. Only updates if the parameter is present and `,_jsx(_components.code,{children:`update_existing`}),` is `,_jsx(_components.code,{children:`true`}),`. To clear all tags, send an empty array.`]})}),_jsx(ParamField,{body:`subscriber_data[groups]`,type:`object`,id:`param-subscriber-data-groups`,children:_jsx(_components.p,{children:`Group assignments. Overwrites current values. To keep existing selections, send the current values together with new ones.`})}),_jsx(ParamField,{body:`subscriber_data[fcm_token]`,type:`string`,id:`param-subscriber-data-fcm-token`,children:_jsxs(_components.p,{children:[`Firebase Cloud Messaging (FCM) registration token used to deliver push notifications. Max 255 characters. Required whenever you send `,_jsx(_components.code,{children:`fcm_app_id`}),`. Send `,_jsx(_components.code,{children:`null`}),` to remove the token, the platform, and the app ID from the contact. Leave the field out to keep the stored values. A token and app ID pair belongs to one contact only: when you send a pair that another contact already has, Ecomail removes it from that other contact.`]})}),_jsx(ParamField,{body:`subscriber_data[fcm_platform]`,type:`string`,id:`param-subscriber-data-fcm-platform`,children:_jsxs(_components.p,{children:[`Device platform for push notifications. Must be `,_jsx(_components.code,{children:`android`}),`, `,_jsx(_components.code,{children:`ios`}),`, or `,_jsx(_components.code,{children:`web`}),`. Can only be sent together with `,_jsx(_components.code,{children:`fcm_token`}),`.`]})}),_jsx(ParamField,{body:`subscriber_data[fcm_app_id]`,type:`string`,id:`param-subscriber-data-fcm-app-id`,children:_jsxs(_components.p,{children:[`Firebase application ID associated with the FCM token. Max 150 characters. Required whenever you send `,_jsx(_components.code,{children:`fcm_token`}),`.`]})})]})]}),`\n`,_jsx(ParamField,{body:`trigger_autoresponders`,type:`boolean`,default:`false`,id:`param-trigger-autoresponders`,children:_jsx(_components.p,{children:`Trigger automations when the subscriber is added.`})}),`\n`,_jsx(ParamField,{body:`trigger_notification`,type:`boolean`,default:`false`,id:`param-trigger-notification`,children:_jsx(_components.p,{children:`Send a notification about the new subscriber if configured in list settings.`})}),`\n`,_jsx(ParamField,{body:`update_existing`,type:`boolean`,default:`false`,id:`param-update-existing`,children:_jsx(_components.p,{children:`Update the subscriber if they already exist in the list.`})}),`\n`,_jsx(ParamField,{body:`skip_confirmation`,type:`boolean`,default:`false`,id:`param-skip-confirmation`,children:_jsxs(_components.p,{children:[`Skip double opt-in confirmation. If `,_jsx(_components.code,{children:`false`}),`, the system sends a double opt-in email and the subscriber is added with status `,_jsx(_components.code,{children:`6`}),` (unconfirmed).`]})}),`\n`,_jsx(ParamField,{body:`resubscribe`,type:`boolean`,default:`false`,id:`param-resubscribe`,children:_jsxs(_components.p,{children:[`Force resubscribe if the subscriber was previously unsubscribed (status `,_jsx(_components.code,{children:`2`}),`). If `,_jsx(_components.code,{children:`status`}),` is provided in `,_jsx(_components.code,{children:`subscriber_data`}),`, it takes precedence. For resubscribe to work, the status must be `,_jsx(_components.code,{children:`1`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`If the subscriber already exists in the list, the response includes `,_jsx(_components.code,{children:`already_subscribed: true`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`inserted_at`}),` field in the response returns the time in UTC format.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add new subscriber to list","api":"POST https://api2.ecomailapp.cz/lists/{list_id}/subscribe","description":"Subscribe a new contact to a specific list.","href":"/api-reference/lists/subscribe"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Note,ParamField,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsx(ParamField,{path:`list_id`,type:`integer`,required:true,id:`param-list-id`,children:_jsx(_components.p,{children:`ID of the list.`})}),`\n`,_jsxs(ParamField,{body:`subscriber_data`,type:`object`,required:true,id:`param-subscriber-data`,children:[_jsx(_components.p,{children:`Information about the subscriber.`}),_jsxs(Expandable,{title:`subscriber_data properties`,children:[_jsx(ParamField,{body:`subscriber_data[email]`,type:`string`,required:true,id:`param-subscriber-data-email`,children:_jsx(_components.p,{children:`Subscriber’s email address.`})}),_jsx(ParamField,{body:`subscriber_data[name]`,type:`string`,id:`param-subscriber-data-name`,children:_jsx(_components.p,{children:`First name.`})}),_jsx(ParamField,{body:`subscriber_data[surname]`,type:`string`,id:`param-subscriber-data-surname`,children:_jsx(_components.p,{children:`Last name.`})}),_jsx(ParamField,{body:`subscriber_data[gender]`,type:`string`,id:`param-subscriber-data-gender`,children:_jsxs(_components.p,{children:[`Gender. Must be `,_jsx(_components.code,{children:`male`}),` or `,_jsx(_components.code,{children:`female`}),`.`]})}),_jsx(ParamField,{body:`subscriber_data[status]`,type:`integer`,id:`param-subscriber-data-status`,children:_jsxs(_components.p,{children:[`Subscriber status. `,_jsx(_components.code,{children:`1`}),` = subscribed, `,_jsx(_components.code,{children:`2`}),` = unsubscribed, `,_jsx(_components.code,{children:`4`}),` = hard bounce, `,_jsx(_components.code,{children:`5`}),` = spam complaint, `,_jsx(_components.code,{children:`6`}),` = unconfirmed.`]})}),_jsx(ParamField,{body:`subscriber_data[company]`,type:`string`,id:`param-subscriber-data-company`,children:_jsx(_components.p,{children:`Company name.`})}),_jsx(ParamField,{body:`subscriber_data[city]`,type:`string`,id:`param-subscriber-data-city`,children:_jsx(_components.p,{children:`City.`})}),_jsx(ParamField,{body:`subscriber_data[street]`,type:`string`,id:`param-subscriber-data-street`,children:_jsx(_components.p,{children:`Street address.`})}),_jsx(ParamField,{body:`subscriber_data[zip]`,type:`string`,id:`param-subscriber-data-zip`,children:_jsx(_components.p,{children:`ZIP or postal code.`})}),_jsx(ParamField,{body:`subscriber_data[country]`,type:`string`,id:`param-subscriber-data-country`,children:_jsx(_components.p,{children:`Country code.`})}),_jsx(ParamField,{body:`subscriber_data[phone]`,type:`string`,id:`param-subscriber-data-phone`,children:_jsx(_components.p,{children:`Phone number.`})}),_jsx(ParamField,{body:`subscriber_data[pretitle]`,type:`string`,id:`param-subscriber-data-pretitle`,children:_jsx(_components.p,{children:`Pre-title (e.g. Mr., Mrs.).`})}),_jsx(ParamField,{body:`subscriber_data[surtitle]`,type:`string`,id:`param-subscriber-data-surtitle`,children:_jsx(_components.p,{children:`Post-nominal title (e.g. PhD).`})}),_jsx(ParamField,{body:`subscriber_data[birthday]`,type:`string`,id:`param-subscriber-data-birthday`,children:_jsxs(_components.p,{children:[`Birthday in `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` format.`]})}),_jsx(ParamField,{body:`subscriber_data[nameday]`,type:`string`,id:`param-subscriber-data-nameday`,children:_jsxs(_components.p,{children:[`Name day in `,_jsx(_components.code,{children:`MM-DD`}),` format.`]})}),_jsx(ParamField,{body:`subscriber_data[source]`,type:`string`,id:`param-subscriber-data-source`,children:_jsx(_components.p,{children:`Source of the subscriber.`})}),_jsxs(ParamField,{body:`subscriber_data[custom_fields]`,type:`object`,id:`param-subscriber-data-custom-fields`,children:[_jsxs(_components.p,{children:[`Custom field values. Limited to 5000 characters total. Reserved system merge tags are ignored. If a field doesn’t exist, a new field is created. Supported types: `,_jsx(_components.code,{children:`string`}),`, `,_jsx(_components.code,{children:`date`}),`, `,_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`int`}),`, `,_jsx(_components.code,{children:`float`}),`, `,_jsx(_components.code,{children:`url`}),`. Float precision is limited to 3 decimal places.`]}),_jsxs(_components.p,{children:[`Keys are case-insensitive — they are trimmed and lowercased on input, so `,_jsx(_components.code,{children:`SHOP`}),`, `,_jsx(_components.code,{children:`shop`}),` and `,_jsx(_components.code,{children:`Shop`}),` are treated as the same field. Two keys that differ only in case or whitespace in the same request are rejected as duplicates.`]})]}),_jsx(ParamField,{body:`subscriber_data[tags]`,type:`array`,id:`param-subscriber-data-tags`,children:_jsxs(_components.p,{children:[`Subscriber tags. Limited to 2000 characters total and 50 characters per tag. Content overwrites current tags. Only updates if the parameter is present and `,_jsx(_components.code,{children:`update_existing`}),` is `,_jsx(_components.code,{children:`true`}),`. To clear all tags, send an empty array.`]})}),_jsx(ParamField,{body:`subscriber_data[groups]`,type:`object`,id:`param-subscriber-data-groups`,children:_jsx(_components.p,{children:`Group assignments. Overwrites current values. To keep existing selections, send the current values together with new ones.`})}),_jsx(ParamField,{body:`subscriber_data[fcm_token]`,type:`string`,id:`param-subscriber-data-fcm-token`,children:_jsxs(_components.p,{children:[`Firebase Cloud Messaging (FCM) registration token used to deliver push notifications. Max 255 characters. Required whenever you send `,_jsx(_components.code,{children:`fcm_app_id`}),`. Send `,_jsx(_components.code,{children:`null`}),` to remove the token, the platform, and the app ID from the contact. Leave the field out to keep the stored values. A token and app ID pair belongs to one contact only: when you send a pair that another contact already has, Ecomail removes it from that other contact.`]})}),_jsx(ParamField,{body:`subscriber_data[fcm_platform]`,type:`string`,id:`param-subscriber-data-fcm-platform`,children:_jsxs(_components.p,{children:[`Device platform for push notifications. Must be `,_jsx(_components.code,{children:`android`}),`, `,_jsx(_components.code,{children:`ios`}),`, or `,_jsx(_components.code,{children:`web`}),`. Can only be sent together with `,_jsx(_components.code,{children:`fcm_token`}),`.`]})}),_jsx(ParamField,{body:`subscriber_data[fcm_app_id]`,type:`string`,id:`param-subscriber-data-fcm-app-id`,children:_jsxs(_components.p,{children:[`Firebase application ID associated with the FCM token. Max 150 characters. Required whenever you send `,_jsx(_components.code,{children:`fcm_token`}),`.`]})})]})]}),`\n`,_jsx(ParamField,{body:`trigger_autoresponders`,type:`boolean`,default:`false`,id:`param-trigger-autoresponders`,children:_jsx(_components.p,{children:`Trigger automations when the subscriber is added.`})}),`\n`,_jsx(ParamField,{body:`trigger_notification`,type:`boolean`,default:`false`,id:`param-trigger-notification`,children:_jsx(_components.p,{children:`Send a notification about the new subscriber if configured in list settings.`})}),`\n`,_jsx(ParamField,{body:`update_existing`,type:`boolean`,default:`false`,id:`param-update-existing`,children:_jsx(_components.p,{children:`Update the subscriber if they already exist in the list.`})}),`\n`,_jsx(ParamField,{body:`skip_confirmation`,type:`boolean`,default:`false`,id:`param-skip-confirmation`,children:_jsxs(_components.p,{children:[`Skip double opt-in confirmation. If `,_jsx(_components.code,{children:`false`}),`, the system sends a double opt-in email and the subscriber is added with status `,_jsx(_components.code,{children:`6`}),` (unconfirmed).`]})}),`\n`,_jsx(ParamField,{body:`resubscribe`,type:`boolean`,default:`false`,id:`param-resubscribe`,children:_jsxs(_components.p,{children:[`Force resubscribe if the subscriber was previously unsubscribed (status `,_jsx(_components.code,{children:`2`}),`). If `,_jsx(_components.code,{children:`status`}),` is provided in `,_jsx(_components.code,{children:`subscriber_data`}),`, it takes precedence. For resubscribe to work, the status must be `,_jsx(_components.code,{children:`1`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`If the subscriber already exists in the list, the response includes `,_jsx(_components.code,{children:`already_subscribed: true`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`inserted_at`}),` field in the response returns the time in UTC format.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`28`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api2.ecomailapp.cz/lists/1/subscribe`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subscriber_data\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Jan\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"surname\": \"Novak\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"jan@novak.cz\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gender\": \"male\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"company\": \"Company name\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"city\": \"Praha\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"country\": \"CZ\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"phone\": \"+420777888999\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"birthday\": \"1984-01-01\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom_fields\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"shop\": \"myshop.cz\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"birthday\": { \"value\": \"2022-01-20\", \"type\": \"date\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tags\": [\"tags\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"groups\": { \"grp_5a145ee75780f\": [\"Category 1\", \"Category 2\"] },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fcm_token\": \"fcmExampleToken:APA91bExampleRegistrationToken\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fcm_platform\": \"android\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fcm_app_id\": \"1:1234567890:android:abc123def456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"trigger_autoresponders\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"update_existing\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resubscribe\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`36`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`36`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$listId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api2.ecomailapp.cz/lists/{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$listId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}/subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_RETURNTRANSFER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_HTTPHEADER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_POSTFIELDS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`json_encode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'subscriber_data'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'name'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Jan'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'surname'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Novak'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'email'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'jan@novak.cz'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'gender'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'male'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'company'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Company name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'city'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Praha'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'country'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'CZ'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'phone'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '+420777888999'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'birthday'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1984-01-01'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'custom_fields'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'shop'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'myshop.cz'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'birthday'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'value'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2022-01-20'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'type'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'date'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'tags'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'tags'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'groups'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'grp_5a145ee75780f'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Category 1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Category 2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fcm_token'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fcmExampleToken:APA91bExampleRegistrationToken'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fcm_platform'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'android'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fcm_app_id'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1:1234567890:android:abc123def456'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'trigger_autoresponders'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'update_existing'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'resubscribe'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]));`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_exec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`259471`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"surname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Novak\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jan@novak.cz\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gender\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bounce_soft\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bounced_hard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bounce_message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inserted_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2015-01-21 10:50:04\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"already_subscribed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subscriber_data.custom_fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Custom fields must be an array with unique keys (case-insensitive)\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Subscriber custom fields must be an array with max 5000 bytes\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add new subscriber to list","api":"POST https://api2.ecomailapp.cz/lists/{list_id}/subscribe","description":"Subscribe a new contact to a specific list.","href":"/api-reference/lists/subscribe"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"28\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api2.ecomailapp.cz/lists/1/subscribe\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"key: YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subscriber_data\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Jan\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"surname\": \"Novak\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"email\": \"jan@novak.cz\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"gender\": \"male\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"company\": \"Company name\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"city\": \"Praha\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"country\": \"CZ\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"phone\": \"+420777888999\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"birthday\": \"1984-01-01\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"custom_fields\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"shop\": \"myshop.cz\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"birthday\": { \"value\": \"2022-01-20\", \"type\": \"date\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"tags\": [\"tags\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"groups\": { \"grp_5a145ee75780f\": [\"Category 1\", \"Category 2\"] },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fcm_token\": \"fcmExampleToken:APA91bExampleRegistrationToken\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fcm_platform\": \"android\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fcm_app_id\": \"1:1234567890:android:abc123def456\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"trigger_autoresponders\": false,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"update_existing\": false,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resubscribe\": false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"PHP","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"php\">\u003ccode language=\"php\" numberOfLines=\"36\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$listId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_init\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_URL\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api2.ecomailapp.cz/lists/{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$listId\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}/subscribe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_RETURNTRANSFER\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_POST\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_HTTPHEADER\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'key: YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_POSTFIELDS\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">json_encode\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">([\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'subscriber_data'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'name'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Jan'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'surname'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Novak'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'email'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'jan@novak.cz'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'gender'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'male'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'company'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Company name'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'city'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Praha'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'country'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'CZ'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'phone'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '+420777888999'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'birthday'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '1984-01-01'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'custom_fields'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'shop'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'myshop.cz'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'birthday'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'value'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '2022-01-20'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'type'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'date'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'tags'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'tags'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'groups'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'grp_5a145ee75780f'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Category 1'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Category 2'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'fcm_token'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'fcmExampleToken:APA91bExampleRegistrationToken'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'fcm_platform'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'android'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'fcm_app_id'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '1:1234567890:android:abc123def456'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'trigger_autoresponders'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'update_existing'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'resubscribe'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]));\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_exec\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_close\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">259471\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Jan\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"surname\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Novak\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"jan@novak.cz\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"gender\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"bounce_soft\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"bounced_hard\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"bounce_message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"inserted_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2015-01-21 10:50:04\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"already_subscribed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"422","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation errors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"subscriber_data.custom_fields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Custom fields must be an array with unique keys (case-insensitive)\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Subscriber custom fields must be an array with max 5000 bytes\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Add new subscriber to list","path":"/lists/{list_id}/subscribe","servers":[{"url":"https://api2.ecomailapp.cz"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"list_id":{"schema":[{"type":"integer","description":"ID of the list.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"subscriber_data":[{"type":"object","properties":{"subscriber_data[email]":[{"type":"string","description":"Subscriber’s email address.","required":true}],"subscriber_data[name]":[{"type":"string","description":"First name."}],"subscriber_data[surname]":[{"type":"string","description":"Last name."}],"subscriber_data[gender]":[{"type":"string","description":"Gender. Must be `male` or `female` ."}],"subscriber_data[status]":[{"type":"integer","description":"Subscriber status. `1` = subscribed, `2` = unsubscribed, `4` = hard bounce, `5` = spam complaint, `6` = unconfirmed."}],"subscriber_data[company]":[{"type":"string","description":"Company name."}],"subscriber_data[city]":[{"type":"string","description":"City."}],"subscriber_data[street]":[{"type":"string","description":"Street address."}],"subscriber_data[zip]":[{"type":"string","description":"ZIP or postal code."}],"subscriber_data[country]":[{"type":"string","description":"Country code."}],"subscriber_data[phone]":[{"type":"string","description":"Phone number."}],"subscriber_data[pretitle]":[{"type":"string","description":"Pre-title (e.g. Mr., Mrs.)."}],"subscriber_data[surtitle]":[{"type":"string","description":"Post-nominal title (e.g. PhD)."}],"subscriber_data[birthday]":[{"type":"string","description":"Birthday in `YYYY-MM-DD` format."}],"subscriber_data[nameday]":[{"type":"string","description":"Name day in `MM-DD` format."}],"subscriber_data[source]":[{"type":"string","description":"Source of the subscriber."}],"subscriber_data[custom_fields]":[{"type":"object","properties":{},"description":"Custom field values. Limited to 5000 characters total. Reserved system merge tags are ignored. If a field doesn’t exist, a new field is created. Supported types: `string` , `date` , `json` , `int` , `float` , `url` . Float precision is limited to 3 decimal places. Keys are case-insensitive — they are trimmed and lowercased on input, so `SHOP` , `shop` and `Shop` are treated as the same field. Two keys that differ only in case or whitespace in the same request are rejected as duplicates."}],"subscriber_data[tags]":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Subscriber tags. Limited to 2000 characters total and 50 characters per tag. Content overwrites current tags. Only updates if the parameter is present and `update_existing` is `true` . To clear all tags, send an empty array."}],"subscriber_data[groups]":[{"type":"object","properties":{},"description":"Group assignments. Overwrites current values. To keep existing selections, send the current values together with new ones."}],"subscriber_data[fcm_token]":[{"type":"string","description":"Firebase Cloud Messaging (FCM) registration token used to deliver push notifications. Max 255 characters. Required whenever you send `fcm_app_id` . Send `null` to remove the token, the platform, and the app ID from the contact. Leave the field out to keep the stored values. A token and app ID pair belongs to one contact only: when you send a pair that another contact already has, Ecomail removes it from that other contact."}],"subscriber_data[fcm_platform]":[{"type":"string","description":"Device platform for push notifications. Must be `android` , `ios` , or `web` . Can only be sent together with `fcm_token` ."}],"subscriber_data[fcm_app_id]":[{"type":"string","description":"Firebase application ID associated with the FCM token. Max 150 characters. Required whenever you send `fcm_token` ."}]},"description":"Information about the subscriber.","required":true}],"trigger_autoresponders":[{"type":"boolean","description":"Trigger automations when the subscriber is added."}],"trigger_notification":[{"type":"boolean","description":"Send a notification about the new subscriber if configured in list settings."}],"update_existing":[{"type":"boolean","description":"Update the subscriber if they already exist in the list."}],"skip_confirmation":[{"type":"boolean","description":"Skip double opt-in confirmation. If `false` , the system sends a double opt-in email and the subscriber is added with status `6` (unconfirmed)."}],"resubscribe":[{"type":"boolean","description":"Force resubscribe if the subscriber was previously unsubscribed (status `2` ). If `status` is provided in `subscriber_data` , it takes precedence. For resubscribe to work, the status must be `1` ."}]}}],"examples":{"example":{"value":{"subscriber_data":{"subscriber_data[email]":"\u003cstring>","subscriber_data[name]":"\u003cstring>","subscriber_data[surname]":"\u003cstring>","subscriber_data[gender]":"\u003cstring>","subscriber_data[status]":123,"subscriber_data[company]":"\u003cstring>","subscriber_data[city]":"\u003cstring>","subscriber_data[street]":"\u003cstring>","subscriber_data[zip]":"\u003cstring>","subscriber_data[country]":"\u003cstring>","subscriber_data[phone]":"\u003cstring>","subscriber_data[pretitle]":"\u003cstring>","subscriber_data[surtitle]":"\u003cstring>","subscriber_data[birthday]":"\u003cstring>","subscriber_data[nameday]":"\u003cstring>","subscriber_data[source]":"\u003cstring>","subscriber_data[custom_fields]":{},"subscriber_data[tags]":[{}],"subscriber_data[groups]":{},"subscriber_data[fcm_token]":"\u003cstring>","subscriber_data[fcm_platform]":"\u003cstring>","subscriber_data[fcm_app_id]":"\u003cstring>"},"trigger_autoresponders":true,"trigger_notification":true,"update_existing":true,"skip_confirmation":true,"resubscribe":true}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"ecomail","siteName":"Ecomail API","title":"Add new subscriber to list - Ecomail API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T15:17:38.905Z","originalFileLocation":"api-reference/lists/subscribe.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Subscribe a new contact to a specific list.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ecomail API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add new subscriber to list - Ecomail API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Subscribe a new contact to a specific list.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ecomail API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ecomail.cz/api-reference/lists/subscribe\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ecomail.mintlify.site/_mintlify/api/og/v2?division=Lists\u0026amp;title=Add+new+subscriber+to+list\u0026amp;description=Subscribe+a+new+contact+to+a+specific+list.\u0026amp;theme=5710956715191f02568e2e6d\u0026amp;signature=90756efddcbc232c2d80cca84c48353ca7831a321b46b544933f1627f80d8b2c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add new subscriber to list - Ecomail API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Subscribe a new contact to a specific list.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ecomail.mintlify.site/_mintlify/api/og/v2?division=Lists\u0026amp;title=Add+new+subscriber+to+list\u0026amp;description=Subscribe+a+new+contact+to+a+specific+list.\u0026amp;theme=5710956715191f02568e2e6d\u0026amp;signature=90756efddcbc232c2d80cca84c48353ca7831a321b46b544933f1627f80d8b2c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ecomail API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F7B5F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ecomail.cz/api-reference/lists/subscribe\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/lists/subscribe.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ecomail.cz/#organization\",\"name\":\"Ecomail API\",\"url\":\"https://docs.ecomail.cz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ecomail/qDze0E0xIaXJdAhk/logo/light.svg?fit=max\u0026auto=format\u0026n=qDze0E0xIaXJdAhk\u0026q=85\u0026s=7075922c6fe6d5e18e2edcaf136c8651\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ecomail.cz#website\",\"name\":\"Ecomail API\",\"url\":\"https://docs.ecomail.cz\",\"publisher\":{\"@id\":\"https://docs.ecomail.cz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ecomail.cz/api-reference/lists/subscribe#webpage\",\"url\":\"https://docs.ecomail.cz/api-reference/lists/subscribe\",\"name\":\"Add new subscriber to list\",\"description\":\"Subscribe a new contact to a specific list.\",\"dateModified\":\"2026-11-02T15:17:38.905Z\",\"isPartOf\":{\"@id\":\"https://docs.ecomail.cz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ecomail.cz/api-reference/lists/subscribe#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ecomail.cz/api-reference/lists/subscribe#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lists\",\"item\":\"https://docs.ecomail.cz/api-reference/lists/list-all\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add new subscriber to list\",\"item\":\"https://docs.ecomail.cz/api-reference/lists/subscribe\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ecomail.cz/api-reference/lists/subscribe#apireference\",\"headline\":\"Add new subscriber to list\",\"name\":\"Add new subscriber to list\",\"description\":\"Subscribe a new contact to a specific list.\",\"url\":\"https://docs.ecomail.cz/api-reference/lists/subscribe\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ecomail.cz/api-reference/lists/subscribe#webpage\"},\"dateModified\":\"2026-11-02T15:17:38.905Z\",\"publisher\":{\"@id\":\"https://docs.ecomail.cz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ecomail.cz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ecomail API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ecomail API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/lists/subscribe.md","siteName":"Ecomail API","nav":{"global":null,"tabs":[{"tab":"API reference","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Automations","pages":[{"title":"List all automations","api":"GET https://api2.ecomailapp.cz/pipelines","href":"/api-reference/automations/list-all"},{"title":"Get automation actions","api":"GET https://api2.ecomailapp.cz/pipelines/{id}/actions","href":"/api-reference/automations/get-actions"},{"title":"Get automation action detail","api":"GET https://api2.ecomailapp.cz/pipelines/{id}/actions/{actionId}","href":"/api-reference/automations/get-action-detail"},{"title":"Trigger automation","api":"POST https://api2.ecomailapp.cz/pipelines/{pipeline_id}/trigger","href":"/api-reference/automations/trigger"},{"title":"Get automation stats","api":"GET https://api2.ecomailapp.cz/pipelines/{pipeline_id}/stats","href":"/api-reference/automations/get-stats"},{"title":"Get automation stats detail","api":"GET https://api2.ecomailapp.cz/pipelines/{pipeline_id}/stats-detail","href":"/api-reference/automations/get-stats-detail"}]},{"group":"Campaigns","pages":[{"title":"List all campaigns","api":"GET https://api2.ecomailapp.cz/campaigns","href":"/api-reference/campaigns/list-all"},{"title":"Add new campaign","api":"POST https://api2.ecomailapp.cz/campaigns","href":"/api-reference/campaigns/add-new"},{"title":"Get campaign detail","api":"GET https://api2.ecomailapp.cz/campaigns/{campaign_id}","href":"/api-reference/campaigns/get-detail"},{"title":"Update campaign","api":"PUT https://api2.ecomailapp.cz/campaigns/{campaign_id}","href":"/api-reference/campaigns/update"},{"title":"Send campaign","api":"POST https://api2.ecomailapp.cz/campaigns/{campaign_id}/send","href":"/api-reference/campaigns/send"},{"title":"Send test campaign","api":"POST https://api2.ecomailapp.cz/campaigns/{campaign_id}/send-test","href":"/api-reference/campaigns/send-test"},{"title":"Get campaign stats","api":"GET https://api2.ecomailapp.cz/campaigns/{campaign_id}/stats","href":"/api-reference/campaigns/get-stats"},{"title":"Get campaign stats detail","api":"GET https://api2.ecomailapp.cz/campaigns/{id}/stats-detail","href":"/api-reference/campaigns/get-stats-detail"},{"title":"Get segment stats","api":"GET https://api2.ecomailapp.cz/campaigns/segment/{segmentId}/stats","href":"/api-reference/campaigns/get-segment-stats"},{"title":"Get campaign log","api":"GET https://api2.ecomailapp.cz/campaigns/{campaignId}/log","href":"/api-reference/campaigns/get-log"}]},{"group":"Discount coupons","pages":[{"title":"Import discount coupons","api":"POST https://api2.ecomailapp.cz/coupons/import","href":"/api-reference/coupons/import"},{"title":"Create or overwrite discount coupons","api":"PUT https://api2.ecomailapp.cz/coupons/import","href":"/api-reference/coupons/put-import"},{"title":"Delete discount coupons","api":"DELETE https://api2.ecomailapp.cz/coupons/delete","href":"/api-reference/coupons/delete"},{"title":"List coupon folders","api":"GET https://api2.ecomailapp.cz/coupons/folders","href":"/api-reference/coupons/folders"}]},{"group":"Domains","pages":[{"title":"List all domains","api":"GET https://api2.ecomailapp.cz/domains","href":"/api-reference/domains/list-all"},{"title":"Create a new domain","api":"POST https://api2.ecomailapp.cz/domains","href":"/api-reference/domains/create"},{"title":"Delete a domain","api":"DELETE https://api2.ecomailapp.cz/domains/{domain}","href":"/api-reference/domains/delete"}]},{"group":"Feeds","pages":[{"title":"List all feeds","api":"GET https://api2.ecomailapp.cz/feeds","href":"/api-reference/feeds/list-all"},{"title":"Refresh product feed","api":"GET https://api2.ecomailapp.cz/feeds/{feed_id}/refresh","href":"/api-reference/feeds/refresh-product"},{"title":"Refresh data feed","api":"GET https://api2.ecomailapp.cz/data-feeds/{feed_id}/refresh","href":"/api-reference/feeds/refresh-data"}]},{"group":"Lists","pages":[{"title":"View all lists","api":"GET https://api2.ecomailapp.cz/lists","href":"/api-reference/lists/list-all"},{"title":"Add new list","api":"POST https://api2.ecomailapp.cz/lists","href":"/api-reference/lists/add-new"},{"title":"Show list detail","api":"GET https://api2.ecomailapp.cz/lists/{list_id}","href":"/api-reference/lists/show"},{"title":"Update list","api":"PUT https://api2.ecomailapp.cz/lists/{list_id}","href":"/api-reference/lists/update"},{"title":"Get segments","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/segments","href":"/api-reference/lists/get-segments"},{"title":"Get subscribers","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/subscribers","href":"/api-reference/lists/get-subscribers"},{"title":"Get subscriber from list","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/subscriber/{email}","href":"/api-reference/lists/get-subscriber"},{"title":"Get subscriber by phone","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/subscriber-by-phone/{phone}","description":"Retrieve a specific subscriber from a list by their phone number.","href":"/api-reference/lists/get-subscriber-by-phone"},{"title":"Add new subscriber to list","api":"POST https://api2.ecomailapp.cz/lists/{list_id}/subscribe","href":"/api-reference/lists/subscribe"},{"title":"Add bulk subscribers","api":"POST https://api2.ecomailapp.cz/lists/{list_id}/subscribe-bulk","description":"Subscribe multiple contacts to a specific list in a single request.","href":"/api-reference/lists/subscribe-bulk"},{"title":"Unsubscribe subscriber from list","api":"DELETE https://api2.ecomailapp.cz/lists/{list_id}/unsubscribe","href":"/api-reference/lists/unsubscribe"},{"title":"Update subscriber","api":"PUT https://api2.ecomailapp.cz/lists/{list_id}/update-subscriber","href":"/api-reference/lists/update-subscriber"},{"title":"Update bulk subscribers","api":"PUT https://api2.ecomailapp.cz/lists/{list_id}/update-subscribers-bulk","href":"/api-reference/lists/update-subscribers-bulk"}]},{"group":"Push notifications","pages":[{"title":"Register a push click","api":"POST https://api2.ecomailapp.cz/push/click","href":"/api-reference/push/register-click"}]},{"group":"Recommenders","pages":[{"title":"List all recommenders","api":"GET https://api2.ecomailapp.cz/recommenders","href":"/api-reference/recommenders/list-all"},{"title":"Create recommender","api":"POST https://api2.ecomailapp.cz/recommenders","href":"/api-reference/recommenders/create"},{"title":"Get recommender","api":"GET https://api2.ecomailapp.cz/recommenders/{recommender_id}","href":"/api-reference/recommenders/show"},{"title":"Update recommender","api":"PUT https://api2.ecomailapp.cz/recommenders/{recommender_id}","href":"/api-reference/recommenders/update"},{"title":"Delete recommender","api":"DELETE https://api2.ecomailapp.cz/recommenders/{recommender_id}","href":"/api-reference/recommenders/delete"}]},{"group":"Search","pages":[{"title":"Find contact","api":"POST https://api2.ecomailapp.cz/search","href":"/api-reference/search/find-contact"}]},{"group":"Smart delivery","pages":[{"title":"List smart delivery rules","api":"GET https://api2.ecomailapp.cz/smart-delivery/rules","href":"/api-reference/smart-delivery/list-all"},{"title":"Create smart delivery rule","api":"POST https://api2.ecomailapp.cz/smart-delivery/rules","href":"/api-reference/smart-delivery/create"},{"title":"Update smart delivery rule","api":"PUT https://api2.ecomailapp.cz/smart-delivery/rules/{id}","href":"/api-reference/smart-delivery/update"},{"title":"Delete smart delivery rule","api":"DELETE https://api2.ecomailapp.cz/smart-delivery/rules/{id}","href":"/api-reference/smart-delivery/delete"}]},{"group":"Subscribers","pages":[{"title":"Get subscriber","api":"GET https://api2.ecomailapp.cz/subscribers/{email}","href":"/api-reference/subscribers/get"},{"title":"Get transactions","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/transactions","href":"/api-reference/subscribers/transactions"},{"title":"Get events for subscriber","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/events","href":"/api-reference/subscribers/events"},{"title":"Get email log","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/email-log","href":"/api-reference/subscribers/email-log"},{"title":"Get automation log","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/automation-log","href":"/api-reference/subscribers/automation-log"},{"title":"Delete subscriber","api":"DELETE https://api2.ecomailapp.cz/subscribers/{email}/delete","href":"/api-reference/subscribers/delete"}]},{"group":"Templates","pages":[{"title":"List all templates","api":"GET https://api2.ecomailapp.cz/templates","href":"/api-reference/templates/list-all"},{"title":"Create a new template","api":"POST https://api2.ecomailapp.cz/templates","href":"/api-reference/templates/create"},{"title":"Get template","api":"GET https://api2.ecomailapp.cz/templates/{template_id}","href":"/api-reference/templates/get"},{"title":"Update template","api":"PUT https://api2.ecomailapp.cz/templates/{template_id}","href":"/api-reference/templates/update"}]},{"group":"Tracker events","pages":[{"title":"Create an event","api":"POST https://api2.ecomailapp.cz/tracker/events","href":"/api-reference/tracker/create-event"},{"title":"Get event by ID","api":"GET https://api2.ecomailapp.cz/tracker/events/{id}","href":"/api-reference/tracker/get-event"}]},{"group":"Transactional emails","pages":[{"title":"Send transactional email","api":"POST https://api2.ecomailapp.cz/transactional/send-message","href":"/api-reference/transactional/send-message"},{"title":"Send transactional template","api":"POST https://api2.ecomailapp.cz/transactional/send-template","href":"/api-reference/transactional/send-template"},{"title":"Transactional email stats","api":"GET https://api2.ecomailapp.cz/transactional/stats","href":"/api-reference/transactional/stats"},{"title":"Double opt-in stats","api":"GET https://api2.ecomailapp.cz/transactional/stats/doi","href":"/api-reference/transactional/doi-stats"}]},{"group":"Transactions","pages":[{"title":"Create a transaction","api":"POST https://api2.ecomailapp.cz/tracker/transaction","href":"/api-reference/transactions/create"},{"title":"Create bulk transactions","api":"POST https://api2.ecomailapp.cz/tracker/transaction-bulk","href":"/api-reference/transactions/create-bulk"},{"title":"Get transactions","api":"GET https://api2.ecomailapp.cz/tracker/transaction","href":"/api-reference/transactions/get"},{"title":"Update a transaction","api":"PUT https://api2.ecomailapp.cz/tracker/transaction/{order_id}","href":"/api-reference/transactions/update"},{"title":"Delete a transaction","api":"DELETE https://api2.ecomailapp.cz/tracker/transaction/{order_id}/delete","href":"/api-reference/transactions/delete"},{"title":"Delete bulk transactions","api":"DELETE https://api2.ecomailapp.cz/tracker/transaction/delete-bulk","href":"/api-reference/transactions/delete-bulk"}]},{"group":"Webhooks","pages":[{"title":"Set webhook URL","api":"POST https://api2.ecomailapp.cz/account/settings/webhook","href":"/api-reference/webhooks/set-url"},{"title":"Get webhook URL","api":"GET https://api2.ecomailapp.cz/account/settings/webhook","href":"/api-reference/webhooks/get-url"},{"title":"Delete webhook URL","api":"DELETE https://api2.ecomailapp.cz/account/settings/webhook","href":"/api-reference/webhooks/delete-url"},{"title":"Webhook events","href":"/api-reference/webhooks/events"}]}]},{"tab":"Template language","pages":[{"title":"Template language","href":"/template-language/links"}]},{"tab":"Ecomail AI","pages":[{"title":"Ecomail AI","href":"/ecomail-ai/overview"}]}]},"basePath":"","title":"Add new subscriber to list - Ecomail API","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BgGj2PGS.js","utils-BhNOqRKb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BAgRNUZo.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CGkb0TPw.js","snippetPresets-ChLkL1a6.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Ef10Jrbx.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DlVCnjU8.js","shallow-BA55zJxQ.js","getApiPlaygroundDisplay-DR09dKtp.js","CodeSnippet-BZ8J8Kll.js","CodeSnippets-CcguVheG.js","Page-C7x-eUfk.js","getPastedJson-D5UqeqBp.js","icon-DpD0l99C.js","MethodPill-Wg2NXsp_.js","DuplicateIcon-CCSyX8lh.js","createIcon-C4Ukv9HX.js","DynamicMarkdown-RhjEuCHC.js","SectionHeading-DL1MykRq.js","axios-vUo_bRtp.js"]}