List form templates
GET /subscription_form_templates
/subscription_form_templatesReturns the ready-made designs a new form can start from, for one audience, one form type and one set of channels. Only active templates with the same type, exactly the same channels and the same GDPR state as the audience are returned, newest first.
When to use: Before create_subscription_form, to choose a starting design and get its numeric id.
When not to use: You do not need it when the first compatible template is fine: create_subscription_form uses it when template_id is omitted. A template cannot be changed afterwards through the API: to start from an existing form use duplicate_subscription_form.
Filters: audience, type and channels[] are required. locale picks the language of the template names. The list is not paginated.
Permissions: Requires the manager role or higher, or the marketing.forms_landings.write capability.
Value for the X-Auth-Token header parameter.
In: header
Query Parameters
UUID of the audience that will own the form. Get it from list_audiences.
uuidembedded or popup.
Channels the form will collect: email, sms or both. Must be exactly the channels of the form you are going to create.
Language code for the template names.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/subscription_form_templates?audience=0df14405-90ff-4287-b3e4-ef088901ee6f&type=embedded&channels%5B%5D=email&locale=en" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "id": 0, "title": "string", "channels": [ "string" ], "thumbnail_url": "http://example.com" }]