Get a subscription form
GET /audiences/{audienceUuid}/suscription_forms/{uuid}
/audiences/{audienceUuid}/suscription_forms/{uuid}Returns one subscription form: type, title, whether it is published or paused, double opt-in and channel settings, groups, popup behavior and, for classic forms, conversion statistics. It reads classic forms and forms created in the Customer App.
When to use: To check the state or settings of a form you already know, for example before publishing or editing it.
When not to use: To find forms use list_audience_forms; to get the code that embeds the form on a website use get_form_publishing_info. Forms created in the Customer App (generation: current) are managed with the subscription_form operations. For those, get_subscription_form also gives consent, CRM data policy, welcome email and public link, and stats is null here: read get_subscription_form_statistics.
Permissions: Requires the manager role or higher, or the marketing.forms_landings.read capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the audience the form belongs to. Get it with list_audiences.
UUID of the subscription form. Get it with list_audience_forms.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/suscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08" \ -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"}