Skip to content

Create Email Design System

POST
/api/v1/workspaces/{workspace_id}/email_design_systems

Creates a new email design system.

workspace_id
required
integer

Workspace ID

object
name
required
string
description
string
nullable
require_brand_profile_for_use
boolean
nullable
access_scope
required
string
Allowed values: all_workspaces this_workspace_only
design_tokens
object
key
additional properties
any
Example
{
"primary_button_color": "#007bff",
"secondary_button_color": "#6c757d"
}

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
Allowed values: ready processing
Example
success
create_with_ai
required
boolean
require_brand_profile_for_use
required
boolean
prompt
required
string
nullable
Example
I want an email design system with a header, a footer, and a content section.
ai_generation_status
required
string
nullable
Allowed values: generating done
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
Allowed values: all_workspaces this_workspace_only
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
Highlight

Unauthorized

object
message
required
string
Example
Record not found

Forbidden

object
message
required
string
Example
Record not found

Unprocessable 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."
]
}
}