Easymailing
Subscription forms

Create a subscription form

POST /subscription_forms

POST/subscription_forms

Creates a sign-up form for an audience, in the Customer App engine, starting from a template. The form is not live: nobody sees it until publish_subscription_form is called. The consent purposes of the audience that cover the chosen channels are filled in for you.

When to use: To start a new sign-up form, embedded in a page or as a popup. Afterwards adjust it with update_subscription_form, set a popup's triggers with update_subscription_form_popup_behavior, and publish it.

When not to use: Audience, type and channels cannot be changed later: if one is wrong, create another form. To copy a form that already looks right use duplicate_subscription_form. To create a classic form that the Customer App can only read, use create_embedded_form or create_popup_form. The look of the form (colors, images, layout, fields) is edited in the Customer App editor, not through the API.

Side effects: Creates the form with generation: current, never published. The template is copied as its design: when status comes back as form.status.unpublished the design is ready, and when it is form.status.draft the form has no design yet and publish_subscription_form will try again to generate it from the template, answering design_required only if it cannot. Double opt-in is forced to true where the account requires it. With GDPR enabled in the audience, the compatible purposes are added and consent_mode is all_required. The preview thumbnail is generated in the background. Nothing is sent to anyone.

Permissions: Requires the manager role or higher, or the marketing.forms_landings.write capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Request Body

The new 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

curl -X POST "https://api.easymailing.com/subscription_forms" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "audience": "/entity/1",    "type": "popup",    "channels": [      "string"    ],    "email_double_opt_in": true,    "sms_double_opt_in": true,    "locale": "string",    "template_id": 1  }'
{  "@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": "embedded",  "channels": [    "email"  ],  "status": "form.status.unpublished",  "generation": "current",  "converted_at": null,  "subscriber_count": 0,  "created_at": "2026-11-02T09:15:00+01:00",  "updated_at": "2026-11-02T09:15: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": null,  "pending_changes": false,  "share_url": null}