Set when a popup form appears
PUT /subscription_forms/{uuid}/popup_behavior
/subscription_forms/{uuid}/popup_behaviorSets when a popup form shows (after a delay, after scrolling or when the visitor is about to leave), how often the same visitor sees it, between which dates, and on which pages and devices. Send only what you want to change.
When to use: To decide when the popup appears: after some seconds, after a scroll depth, on exit intent; how many days before it shows again; during which dates; only on or never on certain URLs; and whether to hide it on desktop, tablet or phone.
When not to use: Only popup forms have behavior: an embedded form answers 422. The design of the popup is edited in the Customer App editor. Classic popups use update_popup_form.
Side effects: On a published form, the change reaches visitors only after publish_subscription_form; until then pending_changes is true.
Permissions: Requires the manager role or higher, or the marketing.forms_landings.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the form. Get it from list_subscription_forms.
uuidThe updated SubscriptionForm resource
TypeScript Definitions
Use the request body type in TypeScript.
Subscription forms of the Customer App ("current generation") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).
The texts are the approved contract's (trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json).
Published since the unveil (branch feature/api-formularios-destape, after the QA of MKT-010): the operations were
built hidden with deprecated: true (decision D4) and now appear in the specification, the snapshot and the MCP.
SubscriptionFormsApprovedContractTest compares them with the approved contract. Each operation declares the whole
example of its response (DocumentationOverride::RESPONSE_EXAMPLE): the schema is shared and its property examples
cannot vary per operation.
subscription_form:list is the summary every item of the list has; subscription_form:read adds the settings
only get_subscription_form returns.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08/popup_behavior" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "on_load_time_enabled": true, "on_load_time_seconds": 0, "on_load_scroll_enabled": true, "on_load_scroll_percentage": 25, "on_exit": true, "frequency_days": 1, "schedule_enabled": true, "schedule_start_at": "2019-08-24", "schedule_end_at": "2019-08-24", "include_urls": [ "string" ], "exclude_urls": [ "string" ], "hide_on_desktop": true, "hide_on_tablet": true, "hide_on_mobile": true }'{ "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08", "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08", "title": "Newsletter sign-up", "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f", "type": "popup", "channels": [ "email" ], "status": "form.status.published", "generation": "current", "converted_at": null, "subscriber_count": 128, "created_at": "2026-11-02T09:15:00+01:00", "updated_at": "2026-11-10T11:00:00+01:00", "locale": "en", "email_double_opt_in": true, "sms_double_opt_in": false, "consent_mode": "all_required", "purposes": [ { "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b", "name": "Marketing emails" } ], "available_purposes": [ { "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b", "name": "Marketing emails" } ], "groups": [ "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21" ], "welcome_email_enabled": true, "crm_data_policy": { "contact": "fill_empty", "company": "fill_empty" }, "popup_behavior": { "on_load_time_enabled": true, "on_load_time_seconds": 8, "on_load_scroll_enabled": false, "on_load_scroll_percentage": 50, "on_exit": true, "frequency_days": 30, "schedule_enabled": false, "schedule_start_at": null, "schedule_end_at": null, "include_urls": [], "exclude_urls": [], "hide_on_desktop": false, "hide_on_tablet": false, "hide_on_mobile": false }, "pending_changes": true, "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"}