Easymailing
Subscription forms

Get a form install code

GET /audiences/{audienceUuid}/suscription_forms/{uuid}/publishing_info

GET/audiences/{audienceUuid}/suscription_forms/{uuid}/publishing_info

Returns what is needed to put a published form on a website: the script and HTML snippets, the public URL of the form and links to the WordPress plugin and Shopify app. If the form is not published it returns what is missing instead. It works for classic forms and for forms created in the Customer App.

When to use: After publishing a form, to get the snippet to paste into the website or send to the person who maintains it.

When not to use: To publish the form first use publish_form for a classic form or publish_subscription_form for one created in the Customer App; to read its settings use get_audience_form or get_subscription_form.

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.

uuid*string

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/publishing_info" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "status": "string",  "is_paused": true,  "script_code": "string",  "html_placeholder": "string",  "click_trigger_code": "string",  "form_url": "http://example.com",  "integrations": {    "wordpress": {      "pluginUrl": "string",      "description": "string"    },    "shopify": {      "appUrl": "string",      "description": "string"    }  },  "instructions": {    "title": "string",    "steps": [      "string"    ]  },  "requirements": {    "hasDesign": true,    "hasSenderEmails": true,    "missingRequirements": [      "string"    ]  },  "message": "string"}