Easymailing
Subscription forms

List subscription forms

GET /audiences/{audienceUuid}/suscription_forms

GET/audiences/{audienceUuid}/suscription_forms

Returns the subscription forms of one audience, most recently updated first, with their type (embedded or popup), publication state and, for classic forms, conversion statistics. It lists classic forms and forms created in the Customer App.

When to use: To find which sign-up forms an audience has, or which are published, paused or still drafts, before changing one or getting its embed code.

When not to use: To read a single form use get_audience_form; to get the code that embeds a published form on a website use get_form_publishing_info. To list the forms of all audiences at once, use list_subscription_forms. Forms created in the Customer App (generation: current) are managed with the subscription_form operations. Their stats is null here: read get_subscription_form_statistics.

Filters: title: partial match on the form title. type: exact type, embedded or popup. active: true for published forms, false for the rest. audience: UUID of an audience (already fixed by the path). Sort with order[created_at], order[updated_at] or order[title] (asc/desc).

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

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience the form belongs to. Get it with list_audiences.

Query Parameters

page?integer

The collection page number

Default1
itemsPerPage?integer

The number of items per page

Range0 <= value <= 50
Default30
title?string

Return only forms whose title contains this text.

type?string

Return only forms of this type.

active?string

true returns only published forms, false only the unpublished ones.

audience?string

Return only forms of this audience UUID. The path already restricts the list to its audience, so you rarely need it.

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/suscription_forms?title=newsletter&type=popup&active=true&audience=0df14405-90ff-4287-b3e4-ef088901ee6f" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "id": 0,    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "hash": "string",    "url": "http://example.com",    "domain": "string",    "title": "string",    "type": "popup",    "status": "form.status.draft",    "generation": "current",    "converted_at": "2019-08-24T14:15:22Z",    "double_opt_in": true,    "channels": [      "email"    ],    "sms_double_opt_in": true,    "enable_welcome_email": true,    "active": true,    "paused": true,    "audience": "string",    "groups": [      "/entity/1"    ],    "behavior": {      "triggers": {},      "schedule": {},      "frequency": {},      "visibility": {}    },    "stats": {      "impressions": 0,      "conversions": 0,      "conversion_rate": 0.1,      "last_subscription_at": "2019-08-24T14:15:22Z"    },    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]