Create a brand style from a website
POST /design_settings/from_url
/design_settings/from_urlCreates a brand style by reading the colors, fonts, logos and social links of a website with brand detection (Brandfetch). If the brand cannot be read, the style is still created with default values.
When to use: To set up a customer's brand quickly from the address of their website instead of entering each value.
When not to use: To enter the values yourself use create_design_setting.
Side effects: The website address is sent to Brandfetch to detect the brand.
Permissions: Requires the author role or higher, or the marketing.templates.write capability.
Value for the X-Auth-Token header parameter.
In: header
The new DesignSetting resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/design_settings/from_url" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "website_url": "http://example.com" }'{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "color_palette": [ { "title": "string", "color": "string" } ], "button": { "styles": { "background_color": "string", "color": "string", "font_family": "string", "font_weight": "string", "font_size": "string", "border_radius": "string", "padding": "string" } }, "email_width": 400, "page_width": 800, "social_links": [ { "key": "facebook", "title": "string", "url": "http://example.com", "icon_url": "http://example.com", "icon_url_white": "http://example.com" } ], "default_fonts": [ { "name": "string", "font_family": "string", "url": "http://example.com", "font_weight": {}, "active": true } ], "custom_fonts": [ { "name": "string", "font_family": "string", "url": "http://example.com", "font_weight": {}, "active": true } ], "titles": { "h1": { "color": "string", "font_family": "string", "font_size": "string", "font_weight": "string", "link_color": "string" }, "h2": { "color": "string", "font_family": "string", "font_size": "string", "font_weight": "string", "link_color": "string" }, "h3": { "color": "string", "font_family": "string", "font_size": "string", "font_weight": "string", "link_color": "string" } }, "texts": { "list": { "styles": { "color": "string", "font_family": "string", "font_size": "string", "font_weight": "string", "link_color": "string", "line_height": "string" } }, "paragraph": { "styles": { "color": "string", "font_family": "string", "font_size": "string", "font_weight": "string", "link_color": "string", "line_height": "string" } } }, "logo_light_url": "http://example.com", "logo_dark_url": "http://example.com", "default": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}