Import Email Design System from JSON
POST /api/v1/workspaces/{workspace_id}/email_design_systems/import
POST
/api/v1/workspaces/{workspace_id}/email_design_systems/import
Imports an email design system from JSON data.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspace_id
required
integer
Workspace ID
Request Body
Section titled “Request Body ”object
email_design_system
required
object
name
required
string
Example
My Email Design System description
required
string
Example
My Email Design System design_tokens
required
object
key
additional properties
any
Example
{ "primary_button_color": "#007bff", "secondary_button_color": "#6c757d"} custom_styles
required
Array<object>
object
style
required
string
Example
background-color: yellow; font-weight: bold; name
required
string
Example
highlight label
required
string
Example
Highlight container_component
required
object
name
required
string
Example
MyComponent label
required
string
Example
My Component description
required
string
Example
A hero banner image with a headline and image, body text and a call to action button. container
boolean
template
required
string
Example
<div>My Component</div> field_definitions
required
Array
One of:
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
min_length
integer
max_length
integer
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
number
validations
object
min
number
max
number
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
options
required
Array<object>
object
label
required
string
value
required
string
icon_url
string
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
boolean
validations
object
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
skip_link_tracking
required
boolean
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
max_content_length
integer
min_content_length
integer
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
marks
required
object
bold
required
object
enabled
required
boolean
italic
required
object
enabled
required
boolean
link
required
object
enabled
required
boolean
bullet_list
required
object
enabled
required
boolean
numbered_list
required
object
enabled
required
boolean
Example
{ "bold": { "enabled": true }, "italic": { "enabled": true }, "link": { "enabled": true }, "bullet_list": { "enabled": true }, "numbered_list": { "enabled": true }} custom_styles_names
required
Array<string>
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
position
required
integer
Example
1 feed_id
required
integer
Example
12345 deprecated
required
boolean
components
required
Array<object>
object
name
required
string
Example
MyComponent label
required
string
Example
My Component description
required
string
Example
A hero banner image with a headline and image, body text and a call to action button. container
boolean
template
required
string
Example
<div>My Component</div> field_definitions
required
Array
One of:
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
min_length
integer
max_length
integer
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
number
validations
object
min
number
max
number
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
options
required
Array<object>
object
label
required
string
value
required
string
icon_url
string
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
boolean
validations
object
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
skip_link_tracking
required
boolean
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
max_content_length
integer
min_content_length
integer
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
marks
required
object
bold
required
object
enabled
required
boolean
italic
required
object
enabled
required
boolean
link
required
object
enabled
required
boolean
bullet_list
required
object
enabled
required
boolean
numbered_list
required
object
enabled
required
boolean
Example
{ "bold": { "enabled": true }, "italic": { "enabled": true }, "link": { "enabled": true }, "bullet_list": { "enabled": true }, "numbered_list": { "enabled": true }} custom_styles_names
required
Array<string>
object
type
required
string
label
required
string
group
string
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
position
required
integer
Example
1 feed_id
required
integer
Example
12345 deprecated
required
boolean
Responses
Section titled “ Responses ”Successful
object
id
required
integer
Example
12345 name
required
string
Example
My Email Design System description
string
Example
My Email Design System created_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z updated_at
string format: date-time
Example
2023-08-23T10:30:00.000Z organization_id
required
integer
Example
12345 workspace_id
required
integer
Example
12345 screenshot_url
required
string
Example
https://www.example.com/screenshot.png upload_status
required
string
Example
success create_with_ai
required
boolean
require_brand_profile_for_use
required
boolean
prompt
required
string
Example
I want an email design system with a header, a footer, and a content section. ai_generation_status
required
string
Example
generating archived
required
boolean
design_tokens
required
object
key
additional properties
any
Example
{ "primary_button_color": "#007bff", "secondary_button_color": "#6c757d"} access_scope
required
string
Example
all_workspaces custom_styles
required
Array<object>
object
style
required
string
Example
background-color: yellow; font-weight: bold; name
required
string
Example
highlight label
required
string
Example
HighlightUnauthorized
object
message
required
string
Example
Record not foundForbidden
object
message
required
string
Example
Record not foundUnprocessable Entity
object
message
required
string
Example
Failed to save errors
required
object
key
additional properties
Array<string>
Example
{ "errors": { "username": [ "Username is required.", "Username must be unique." ], "email": [ "Invalid email format." ] }}