Skip to content

Render

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

Renders the selected components of an email design system

workspace_id
required
integer

Workspace ID

object
email_design_system_id
required

ID of the email design system

integer
brand_profile_id

ID of the brand profile

integer
content
required
object
subject
required

Subject of the email

string
preheader
required

Preheader of the email

string
container_component_instance
required
object
component_id
required
integer
field_values
object
key
additional properties
One of:
string
component_instances
required
Array<object>
object
component_id
required
integer
field_values
object
key
additional properties
One of:
string

Successful

object
html

HTML output of the rendered components

string
created_at
string format: date-time
Example
2023-08-23T10:30:00.000Z

Unauthorized

object
message
required
string
Example
Record not found

Forbidden

object
message
required
string
Example
Record not found

Not Found

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