API V1 (v1)
Download OpenAPI specification:Download
Update Organization
Updates an organization.
Authorizations:
path Parameters
id required | integer Organization ID |
Request Body schema: application/json
name | string |
string | |
country | string |
Responses
Request samples
- Payload
{- "name": "Example Inc.",
- "country": "US"
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "My Organization",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "free_trial_ends_at": "2023-08-23T10:30:00.000Z",
- "country": "US",
- "subscription_details": {
- "status": "active",
- "ends_at": "2024-01-01T00:00:00.000Z",
- "free_trial_ends_at": "2024-01-01T00:00:00.000Z",
- "current_period_start": "2024-01-01T00:00:00.000Z",
- "current_period_end": "2024-01-01T00:00:00.000Z",
- "has_subscription": true,
- "is_on_free_trial": true,
- "free_trial_has_expired": true,
- "is_active": true,
- "is_canceled": true,
- "is_on_grace_period": true,
- "is_past_due": true,
- "is_unpaid": true,
- "is_incomplete": true,
- "is_ended": true,
- "product_name": "Pro Plan",
- "product_key": "pro_plan",
- "interval": "month",
- "beta_signup": true
}, - "features": {
- "ai_email_design_system_generation": true,
- "ai_email_generation": true
}
}
List Projects
Retrieves the projects the user has access to.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
search | string Filter projects by name |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "name": "Black Friday 2023",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "description": "Black Friday 2023 Marketing Campaign",
- "organization_id": 12345
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Creates a project.
Creates a new project.
Authorizations:
Request Body schema: application/json
name required | string Project name |
description | string or null Project description |
Responses
Request samples
- Payload
{- "name": "Black Friday 2020",
- "description": "All emails related to Black Friday 2020."
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "Black Friday 2023",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "description": "Black Friday 2023 Marketing Campaign",
- "organization_id": 12345
}
Get Project
Retrieves a single project by ID.
Authorizations:
path Parameters
id required | integer Project ID |
Responses
Response samples
- 200
{- "id": 12345,
- "name": "Black Friday 2023",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "description": "Black Friday 2023 Marketing Campaign",
- "organization_id": 12345
}
Update Project
Updates a project.
Authorizations:
path Parameters
id required | integer Project ID |
Request Body schema: application/json
name required | string Project name |
description | string or null Project description |
Responses
Request samples
- Payload
{- "name": "Black Friday 2020",
- "description": "All emails related to Black Friday 2020."
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "Black Friday 2023",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "description": "Black Friday 2023 Marketing Campaign",
- "organization_id": 12345
}
List Project Users
Retrieves the users for a project.
Authorizations:
path Parameters
id required | integer Project ID |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "first_name": "Joe",
- "last_name": "Cottam",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "requires_email_confirmation": false,
- "organization_id": 12345,
- "role": "admin",
- "invitation_sent_at": "2023-08-23T10:30:00.000Z",
- "invitation_accepted_at": "2023-08-23T10:30:00.000Z",
- "permissions": [
- "update_emails"
], - "wants_marketing_emails": false
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Update Project Users
Updates the users for a project.
Authorizations:
path Parameters
id required | integer Project ID |
Request Body schema: application/json
user_ids required | Array of integers |
Responses
Request samples
- Payload
{- "user_ids": [
- 0
]
}
Response samples
- 200
- 422
{- "results": [
- {
- "id": 12345,
- "first_name": "Joe",
- "last_name": "Cottam",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "requires_email_confirmation": false,
- "organization_id": 12345,
- "role": "admin",
- "invitation_sent_at": "2023-08-23T10:30:00.000Z",
- "invitation_accepted_at": "2023-08-23T10:30:00.000Z",
- "permissions": [
- "update_emails"
], - "wants_marketing_emails": false
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
List Emails
Retrieves the Emails the user has access to.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
project_id | integer Filter emails by project ID |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "name": "My Email",
- "project_id": 12345,
- "created_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "email_design_system_id": 12345,
- "email_content": {
- "subject": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}, - "property2": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}
}
}, - "preheader": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}, - "property2": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}
}
}, - "container_component_instance": {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}, - "component_instances": [
- {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": null
}, - "property2": {
- "value": null
}
}, - "property2": {
- "property1": {
- "value": null
}, - "property2": {
- "value": null
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": null
}, - "property2": {
- "value": null
}
}, - "property2": {
- "property1": {
- "value": null
}, - "property2": {
- "value": null
}
}
}
}
}
]
}, - "default_locale": "en-US",
- "locales": [
- "en-US"
], - "updated_at": "2023-08-23T10:30:00.000Z",
- "last_updated_by": {
- "id": 12345,
- "first_name": "John",
- "last_name": "Smith",
}, - "create_with_ai": false,
- "prompt": "Write a welcome email to a new customer",
- "ai_generation_status": "generating",
- "ai_agent_id": 12345
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create Email
Creates a new Email.
Authorizations:
Request Body schema: application/json
name required | string |
email_design_system_id required | integer |
default_locale | string (Locale) Enum: "ar-SA" "bn-BD" "bn-IN" "cs-CZ" "da-DK" "de-AT" "de-CH" "de-DE" "el-GR" "en-AU" "en-CA" "en-GB" "en-IE" "en-IN" "en-NZ" "en-US" "en-ZA" "es-AR" "es-CL" "es-CO" "es-ES" "es-MX" "es-US" "fi-FI" "fr-BE" "fr-CA" "fr-CH" "fr-FR" "he-IL" "hi-IN" "hu-HU" "id-ID" "it-CH" "it-IT" "ja-JP" "ko-KR" "nl-BE" "nl-NL" "no-NO" "pl-PL" "pt-BR" "pt-PT" "ro-RO" "ru-RU" "sk-SK" "sv-SE" "ta-IN" "ta-LK" "th-TH" "tr-TR" "zh-CN" "zh-HK" |
locales | Array of strings (Locale) Items Enum: "ar-SA" "bn-BD" "bn-IN" "cs-CZ" "da-DK" "de-AT" "de-CH" "de-DE" "el-GR" "en-AU" "en-CA" "en-GB" "en-IE" "en-IN" "en-NZ" "en-US" "en-ZA" "es-AR" "es-CL" "es-CO" "es-ES" "es-MX" "es-US" "fi-FI" "fr-BE" "fr-CA" "fr-CH" "fr-FR" "he-IL" "hi-IN" "hu-HU" "id-ID" "it-CH" "it-IT" "ja-JP" "ko-KR" "nl-BE" "nl-NL" "no-NO" "pl-PL" "pt-BR" "pt-PT" "ro-RO" "ru-RU" "sk-SK" "sv-SE" "ta-IN" "ta-LK" "th-TH" "tr-TR" "zh-CN" "zh-HK" |
project_id required | integer |
create_with_ai | boolean |
ai_agent_id | integer |
prompt | string |
Responses
Request samples
- Payload
{- "name": "string",
- "email_design_system_id": 0,
- "default_locale": "en-US",
- "locales": [
- "en-US"
], - "project_id": 0,
- "create_with_ai": true,
- "ai_agent_id": 0,
- "prompt": "string"
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "My Email",
- "project_id": 12345,
- "created_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "email_design_system_id": 12345,
- "email_content": {
- "subject": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}, - "property2": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}
}
}, - "preheader": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}, - "property2": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}
}
}, - "container_component_instance": {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}, - "component_instances": [
- {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}
]
}, - "default_locale": "en-US",
- "locales": [
- "en-US"
], - "updated_at": "2023-08-23T10:30:00.000Z",
- "last_updated_by": {
- "id": 12345,
- "first_name": "John",
- "last_name": "Smith",
}, - "create_with_ai": false,
- "prompt": "Write a welcome email to a new customer",
- "ai_generation_status": "generating",
- "ai_agent_id": 12345
}
Get Email
Retrieves an email by ID.
Authorizations:
path Parameters
id required | integer Email ID |
Responses
Response samples
- 200
{- "id": 12345,
- "name": "My Email",
- "project_id": 12345,
- "created_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "email_design_system_id": 12345,
- "email_content": {
- "subject": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}, - "property2": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}
}
}, - "preheader": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}, - "property2": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}
}
}, - "container_component_instance": {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}, - "component_instances": [
- {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}
]
}, - "default_locale": "en-US",
- "locales": [
- "en-US"
], - "updated_at": "2023-08-23T10:30:00.000Z",
- "last_updated_by": {
- "id": 12345,
- "first_name": "John",
- "last_name": "Smith",
}, - "create_with_ai": false,
- "prompt": "Write a welcome email to a new customer",
- "ai_generation_status": "generating",
- "ai_agent_id": 12345
}
Update Email
Updates an email.
Authorizations:
path Parameters
id required | integer Email ID |
Request Body schema: application/json
name | string |
object (EmailContent) | |
default_locale | string (Locale) Enum: "ar-SA" "bn-BD" "bn-IN" "cs-CZ" "da-DK" "de-AT" "de-CH" "de-DE" "el-GR" "en-AU" "en-CA" "en-GB" "en-IE" "en-IN" "en-NZ" "en-US" "en-ZA" "es-AR" "es-CL" "es-CO" "es-ES" "es-MX" "es-US" "fi-FI" "fr-BE" "fr-CA" "fr-CH" "fr-FR" "he-IL" "hi-IN" "hu-HU" "id-ID" "it-CH" "it-IT" "ja-JP" "ko-KR" "nl-BE" "nl-NL" "no-NO" "pl-PL" "pt-BR" "pt-PT" "ro-RO" "ru-RU" "sk-SK" "sv-SE" "ta-IN" "ta-LK" "th-TH" "tr-TR" "zh-CN" "zh-HK" |
locales | Array of strings (Locale) Items Enum: "ar-SA" "bn-BD" "bn-IN" "cs-CZ" "da-DK" "de-AT" "de-CH" "de-DE" "el-GR" "en-AU" "en-CA" "en-GB" "en-IE" "en-IN" "en-NZ" "en-US" "en-ZA" "es-AR" "es-CL" "es-CO" "es-ES" "es-MX" "es-US" "fi-FI" "fr-BE" "fr-CA" "fr-CH" "fr-FR" "he-IL" "hi-IN" "hu-HU" "id-ID" "it-CH" "it-IT" "ja-JP" "ko-KR" "nl-BE" "nl-NL" "no-NO" "pl-PL" "pt-BR" "pt-PT" "ro-RO" "ru-RU" "sk-SK" "sv-SE" "ta-IN" "ta-LK" "th-TH" "tr-TR" "zh-CN" "zh-HK" |
Responses
Request samples
- Payload
{- "name": "string",
- "email_content": {
- "subject": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}, - "property2": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}
}
}, - "preheader": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}, - "property2": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}
}
}, - "container_component_instance": {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}, - "component_instances": [
- {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}
]
}, - "default_locale": "en-US",
- "locales": [
- "en-US"
]
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "My Email",
- "project_id": 12345,
- "created_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "email_design_system_id": 12345,
- "email_content": {
- "subject": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}, - "property2": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}
}
}, - "preheader": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}, - "property2": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}
}
}, - "container_component_instance": {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}, - "component_instances": [
- {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}
]
}, - "default_locale": "en-US",
- "locales": [
- "en-US"
], - "updated_at": "2023-08-23T10:30:00.000Z",
- "last_updated_by": {
- "id": 12345,
- "first_name": "John",
- "last_name": "Smith",
}, - "create_with_ai": false,
- "prompt": "Write a welcome email to a new customer",
- "ai_generation_status": "generating",
- "ai_agent_id": 12345
}
Create Email Translation
Creates a new Email Translation.
Authorizations:
path Parameters
id required | integer Email ID |
Request Body schema: application/json
target_locales required | Array of strings |
Responses
Request samples
- Payload
{- "target_locales": [
- "string"
]
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "email_id": 12345,
- "organization_id": 12345,
- "target_locales": [
- "string"
], - "status": "in_progress",
- "locale_statuses": {
- "property1": "in_progress",
- "property2": "in_progress"
}
}
Get Email Translation
Retrieves an email translation.
Authorizations:
path Parameters
id required | integer Email ID |
email_translation_id required | integer Email Translation ID |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": 12345,
- "email_id": 12345,
- "organization_id": 12345,
- "target_locales": [
- "string"
], - "status": "in_progress",
- "locale_statuses": {
- "property1": "in_progress",
- "property2": "in_progress"
}
}
Upload Email Translation Spreadsheet
Uploads a CSV file to update an email translation.
Authorizations:
path Parameters
id required | integer Email ID |
Request Body schema: multipart/form-data
csv_file required | string <binary> |
Responses
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "My Email",
- "project_id": 12345,
- "created_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "email_design_system_id": 12345,
- "email_content": {
- "subject": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}, - "property2": {
- "property1": "My Email Subject in a Specific Locale",
- "property2": "My Email Subject in a Specific Locale"
}
}
}, - "preheader": {
- "conditional_id": 0,
- "branch_content": {
- "property1": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}, - "property2": {
- "property1": "My Email Preheader in a Specific Locale",
- "property2": "My Email Preheader in a Specific Locale"
}
}
}, - "container_component_instance": {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}, - "component_instances": [
- {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Component",
- "component_id": 0,
- "conditional_id": 0,
- "field_values": {
- "property1": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}, - "property2": {
- "property1": {
- "value": "string"
}, - "property2": {
- "value": "string"
}
}
}
}
}
]
}, - "default_locale": "en-US",
- "locales": [
- "en-US"
], - "updated_at": "2023-08-23T10:30:00.000Z",
- "last_updated_by": {
- "id": 12345,
- "first_name": "John",
- "last_name": "Smith",
}, - "create_with_ai": false,
- "prompt": "Write a welcome email to a new customer",
- "ai_generation_status": "generating",
- "ai_agent_id": 12345
}
List Exports
Retrieves the exports.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "organization_id": 12345,
- "connector_id": 12345,
- "email_id": 12345,
- "dynamic_content_profile_id": "a8c5c5c0-5b1a-4b5a-9b0a-5e8b5c5c5c5c",
- "status": "in_progress",
- "export_type": "html",
- "options": {
- "locales": [
- "en-US"
], - "export_field_values": {
- "property1": "string",
- "property2": "string"
}, - "per_locale_options": {
- "property1": {
- "resource_name": "string",
- "update_previous_export": true
}, - "property2": {
- "resource_name": "string",
- "update_previous_export": true
}
}
}, - "integration_name": "Brevo",
- "metadata": {
- "conditional_ids": [
- 12345
], - "personalization_tag_ids": [
- 12345
], - "image_ids": [
- 12345
]
}, - "export_errors": {
- "base": [
- "My Error"
], - "additionalProperties": {
- "property1": [
- "My Error"
], - "property2": [
- "My Error"
]
}
}, - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create Export
Creates a new export.
Authorizations:
Request Body schema: application/json
connector_id | integer or null |
email_id required | integer |
export_type required | string Enum: "html" "connector" "json" |
dynamic_content_profile_id | string or null |
required | object (ExportOptions) |
Responses
Request samples
- Payload
{- "connector_id": 0,
- "email_id": 0,
- "export_type": "html",
- "dynamic_content_profile_id": "string",
- "options": {
- "locales": [
- "en-US"
], - "export_field_values": {
- "property1": "string",
- "property2": "string"
}, - "per_locale_options": {
- "property1": {
- "resource_name": "string",
- "update_previous_export": true
}, - "property2": {
- "resource_name": "string",
- "update_previous_export": true
}
}
}
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "organization_id": 12345,
- "connector_id": 12345,
- "email_id": 12345,
- "dynamic_content_profile_id": "a8c5c5c0-5b1a-4b5a-9b0a-5e8b5c5c5c5c",
- "status": "in_progress",
- "export_type": "html",
- "options": {
- "locales": [
- "en-US"
], - "export_field_values": {
- "property1": "string",
- "property2": "string"
}, - "per_locale_options": {
- "property1": {
- "resource_name": "string",
- "update_previous_export": true
}, - "property2": {
- "resource_name": "string",
- "update_previous_export": true
}
}
}, - "integration_name": "Brevo",
- "metadata": {
- "conditional_ids": [
- 12345
], - "personalization_tag_ids": [
- 12345
], - "image_ids": [
- 12345
]
}, - "export_errors": {
- "base": [
- "My Error"
], - "additionalProperties": {
- "property1": [
- "My Error"
], - "property2": [
- "My Error"
]
}
}, - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
}
Get Export
Retrieves an export.
Authorizations:
path Parameters
id required | integer Export ID |
Responses
Response samples
- 200
{- "id": 12345,
- "organization_id": 12345,
- "connector_id": 12345,
- "email_id": 12345,
- "dynamic_content_profile_id": "a8c5c5c0-5b1a-4b5a-9b0a-5e8b5c5c5c5c",
- "status": "in_progress",
- "export_type": "html",
- "options": {
- "locales": [
- "en-US"
], - "export_field_values": {
- "property1": "string",
- "property2": "string"
}, - "per_locale_options": {
- "property1": {
- "resource_name": "string",
- "update_previous_export": true
}, - "property2": {
- "resource_name": "string",
- "update_previous_export": true
}
}
}, - "integration_name": "Brevo",
- "metadata": {
- "conditional_ids": [
- 12345
], - "personalization_tag_ids": [
- 12345
], - "image_ids": [
- 12345
]
}, - "export_errors": {
- "base": [
- "My Error"
], - "additionalProperties": {
- "property1": [
- "My Error"
], - "property2": [
- "My Error"
]
}
}, - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
}
List Email Design Systems
Retrieves the email design systems for the currently logged in user.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
archived | string Default: false Enum: "true" "false" "all" Example: archived=false Filter projects by archive status:
|
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "name": "My Email Design System",
- "description": "My Email Design System",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "upload_status": "success",
- "create_with_ai": false,
- "prompt": "I want an email design system with a header, a footer, and a content section.",
- "ai_generation_status": "generating",
- "archived": false
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create Email Design System
Creates a new email design system.
Authorizations:
Request Body schema: application/json
name required | string |
description | string or null |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string"
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "My Email Design System",
- "description": "My Email Design System",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "upload_status": "success",
- "create_with_ai": false,
- "prompt": "I want an email design system with a header, a footer, and a content section.",
- "ai_generation_status": "generating",
- "archived": false
}
Get Email Design System
Retrieves an email design system.
Authorizations:
path Parameters
id required | integer Email Design System ID |
Responses
Response samples
- 200
{- "id": 12345,
- "name": "My Email Design System",
- "description": "My Email Design System",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "upload_status": "success",
- "create_with_ai": false,
- "prompt": "I want an email design system with a header, a footer, and a content section.",
- "ai_generation_status": "generating",
- "archived": false
}
Update Email Design System
Updates an email design system.
Authorizations:
path Parameters
id required | integer Email Design System ID |
Request Body schema: application/json
name | string |
description | string or null |
archived | boolean or null |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "archived": true
}
Response samples
- 200
- 401
- 403
- 422
{- "id": 12345,
- "name": "My Email Design System",
- "description": "My Email Design System",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "upload_status": "success",
- "create_with_ai": false,
- "prompt": "I want an email design system with a header, a footer, and a content section.",
- "ai_generation_status": "generating",
- "archived": false
}
Parse Email Design System HTML
Parses an Email Design System HTML into a JSON representation.
Authorizations:
Request Body schema: application/json
html required | string |
Responses
Request samples
- Payload
{- "html": "string"
}
Response samples
- 200
- 422
{- "container_component": {
- "id": 12345,
- "name": "MyComponent",
- "label": "My Component",
- "email_design_system_id": 12345,
- "updated_at": "2023-08-23T10:30:00.000Z",
- "created_at": "2023-08-23T10:30:00.000Z",
- "container": false,
- "template": "<div>My Component</div>",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
], - "position": 1
}, - "components": [
- {
- "id": 12345,
- "name": "MyComponent",
- "label": "My Component",
- "email_design_system_id": 12345,
- "updated_at": "2023-08-23T10:30:00.000Z",
- "created_at": "2023-08-23T10:30:00.000Z",
- "container": false,
- "template": "<div>My Component</div>",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
], - "position": 1
}
]
}
Get Email Design System HTML
Retrieves an Email Design System HTML.
Authorizations:
path Parameters
emailDesignSystemId required | integer Email Design System ID |
Responses
Response samples
- 200
{- "html": "<html><head></head><body><p>Hello, World!</p></body></html>"
}
Update Email Design System HTML
Updates an email design system html for the currently logged in user.
Authorizations:
path Parameters
emailDesignSystemId required | integer Email Design System ID |
Request Body schema: application/json
html required | string |
Responses
Request samples
- Payload
{- "html": "string"
}
Response samples
- 200
- 422
{- "html": "<html><head></head><body><p>Hello, World!</p></body></html>"
}
Reorder Components
Reorders the components.
Authorizations:
path Parameters
emailDesignSystemId required | integer Email Design System ID |
Request Body schema: application/json
component_ids required | Array of integers |
Responses
Request samples
- Payload
{- "component_ids": [
- 0
]
}
Response samples
- 401
- 403
{- "message": "Record not found"
}
List Components
Retrieves the components.
Authorizations:
path Parameters
emailDesignSystemId required | integer Email Design System ID |
Responses
Response samples
- 200
- 401
- 403
{- "results": [
- {
- "id": 12345,
- "name": "MyComponent",
- "label": "My Component",
- "email_design_system_id": 12345,
- "updated_at": "2023-08-23T10:30:00.000Z",
- "created_at": "2023-08-23T10:30:00.000Z",
- "container": false,
- "template": "<div>My Component</div>",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
], - "position": 1
}
]
}
Create Component
Creates a new component.
Authorizations:
path Parameters
emailDesignSystemId required | integer Email Design System ID |
Request Body schema: application/json
name required | string |
label required | string |
template required | string |
required | Array of TextFieldDefinition (object) or NumberFieldDefinition (object) or EnumFieldDefinition (object) or BooleanFieldDefinition (object) or UrlFieldDefinition (object) or ImageFieldDefinition (object) or ColorFieldDefinition (object) or RichTextFieldDefinition (object) (FieldDefinition) |
Responses
Request samples
- Payload
{- "name": "string",
- "label": "string",
- "template": "string",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
]
}
Response samples
- 201
- 401
- 403
- 422
{- "id": 12345,
- "name": "MyComponent",
- "label": "My Component",
- "email_design_system_id": 12345,
- "updated_at": "2023-08-23T10:30:00.000Z",
- "created_at": "2023-08-23T10:30:00.000Z",
- "container": false,
- "template": "<div>My Component</div>",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
], - "position": 1
}
Get Component
Retrieves a component.
Authorizations:
path Parameters
id required | integer Component ID |
emailDesignSystemId required | integer Email Design System ID |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": 12345,
- "name": "MyComponent",
- "label": "My Component",
- "email_design_system_id": 12345,
- "updated_at": "2023-08-23T10:30:00.000Z",
- "created_at": "2023-08-23T10:30:00.000Z",
- "container": false,
- "template": "<div>My Component</div>",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
], - "position": 1
}
Update Component
Updates a component.
Authorizations:
path Parameters
id required | integer Component ID |
emailDesignSystemId required | integer Email Design System ID |
Request Body schema: application/json
name | string |
label | string |
template | string |
Array of TextFieldDefinition (object) or NumberFieldDefinition (object) or EnumFieldDefinition (object) or BooleanFieldDefinition (object) or UrlFieldDefinition (object) or ImageFieldDefinition (object) or ColorFieldDefinition (object) or RichTextFieldDefinition (object) (FieldDefinition) |
Responses
Request samples
- Payload
{- "name": "string",
- "label": "string",
- "template": "string",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
]
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": 12345,
- "name": "MyComponent",
- "label": "My Component",
- "email_design_system_id": 12345,
- "updated_at": "2023-08-23T10:30:00.000Z",
- "created_at": "2023-08-23T10:30:00.000Z",
- "container": false,
- "template": "<div>My Component</div>",
- "field_definitions": [
- {
- "type": "text",
- "label": "string",
- "liquid_variable": "string",
- "visible_if": "string",
- "default_value": "string",
- "minLength": 0,
- "maxLength": 0,
- "hint": "string"
}
], - "position": 1
}
List Dynamic Content Profiles
Retrieves the dynamic content profiles for the currently logged in user.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
Responses
Response samples
- 200
{- "results": [
- {
- "id": "uuid TODO",
- "name": "Mailchimp Profile",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create Dynamic Content Profile
Creates a new DynamicContentProfile for the currently logged in user.
Authorizations:
Request Body schema: application/json
name required | string |
Responses
Request samples
- Payload
{- "name": "Mailchimp Profile"
}
Response samples
- 201
- 401
- 403
- 422
{- "id": "uuid TODO",
- "name": "Mailchimp Profile",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345
}
Get Dynamic Content Profile
Retrieves a DynamicContentProfile.
Authorizations:
path Parameters
id required | string DynamicContentProfile ID |
Responses
Response samples
- 200
{- "id": "uuid TODO",
- "name": "Mailchimp Profile",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345
}
Update Dynamic Content Profile
Updates a DynamicContentProfile.
Authorizations:
path Parameters
id required | string Conditional ID |
Request Body schema: application/json
name | string |
Responses
Request samples
- Payload
{- "name": "Mailchimp Profile"
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": "uuid TODO",
- "name": "Mailchimp Profile",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345
}
List Conditionals
Retrieves the conditionals.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "label": "Over age 30s",
- "default_syntax": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "branches": [
- {
- "key": "key",
- "label": "label"
}
], - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_syntaxes": {
- "property1": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}
}
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create Conditionals
Creates a new conditional.
Authorizations:
Request Body schema: application/json
label required | string |
default_value required | string |
object (DynamicContentProfileValues) |
Responses
Request samples
- Payload
{- "label": "Over age 30",
- "default_value": "TODO",
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 401
- 403
- 422
{- "id": 12345,
- "label": "Over age 30s",
- "default_syntax": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "branches": [
- {
- "key": "key",
- "label": "label"
}
], - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_syntaxes": {
- "property1": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}
}
}
Get Conditional
Retrieves a conditional.
Authorizations:
path Parameters
id required | integer Conditional ID |
Responses
Response samples
- 200
{- "id": 12345,
- "label": "Over age 30s",
- "default_syntax": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "branches": [
- {
- "key": "key",
- "label": "label"
}
], - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_syntaxes": {
- "property1": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}
}
}
Update Conditional
Updates a conditional.
Authorizations:
path Parameters
id required | integer Conditional ID |
Request Body schema: application/json
label | string |
default_value | string |
object (DynamicContentProfileValues) |
Responses
Request samples
- Payload
{- "label": "Over Age 30s",
- "default_value": "TODO",
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": 12345,
- "label": "Over age 30s",
- "default_syntax": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "branches": [
- {
- "key": "key",
- "label": "label"
}
], - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_syntaxes": {
- "property1": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "closing": "string",
- "branch_values": {
- "property1": "string",
- "property2": "string"
}
}
}
}
List PersonalizationTags
Retrieves the personalization_tags.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "label": "First name",
- "default_value": "{{firstName}}",
- "example_value": "John",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create PersonalizationTag
Creates a new personalization_tag.
Authorizations:
Request Body schema: application/json
label required | string |
default_value required | string |
example_value required | string |
object (DynamicContentProfileValues) |
Responses
Request samples
- Payload
{- "label": "First name",
- "default_value": "{{firstName}}",
- "example_value": "John",
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 401
- 403
- 422
{- "id": 12345,
- "label": "First name",
- "default_value": "{{firstName}}",
- "example_value": "John",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
Get PersonalizationTag
Retrieves a personalization_tag.
Authorizations:
path Parameters
id required | integer PersonalizationTag ID |
Responses
Response samples
- 200
{- "id": 12345,
- "label": "First name",
- "default_value": "{{firstName}}",
- "example_value": "John",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
Update PersonalizationTag
Updates a personalization_tag.
Authorizations:
path Parameters
id required | integer PersonalizationTag ID |
Request Body schema: application/json
label | string |
default_value | string |
example_value | string |
object (DynamicContentProfileValues) |
Responses
Request samples
- Payload
{- "label": "First name",
- "default_value": "{{firstName}}",
- "example_value": "John",
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": 12345,
- "label": "First name",
- "default_value": "{{firstName}}",
- "example_value": "John",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
- "dynamic_content_profile_values": {
- "property1": "string",
- "property2": "string"
}
}
List Images
Retrieves the images.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
search | string Filter images by search term |
Responses
Response samples
- 200
{- "results": [
- {
- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Image",
- "filename": "image.png",
- "width": 100,
- "height": 100,
- "file_size": 1000,
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create Image
Creates a new image.
Authorizations:
Request Body schema: multipart/form-data
file required | string <binary> |
Responses
Response samples
- 201
- 401
- 403
- 422
{- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Image",
- "filename": "image.png",
- "width": 100,
- "height": 100,
- "file_size": 1000,
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
}
Update Image
Updates an image.
Authorizations:
path Parameters
id required | string Image ID |
Request Body schema: application/json
name | string |
Responses
Request samples
- Payload
{- "name": "New Name"
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": "bd1c1b82-1a7b-4f0f-b079-30c1d4189bed",
- "name": "My Image",
- "filename": "image.png",
- "width": 100,
- "height": 100,
- "file_size": 1000,
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "organization_id": 12345,
}
List users
Retrieves the users.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
search | string Filter users by search term |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "first_name": "Joe",
- "last_name": "Cottam",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "requires_email_confirmation": false,
- "organization_id": 12345,
- "role": "admin",
- "invitation_sent_at": "2023-08-23T10:30:00.000Z",
- "invitation_accepted_at": "2023-08-23T10:30:00.000Z",
- "permissions": [
- "update_emails"
], - "wants_marketing_emails": false
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create user
Creates a new user.
Authorizations:
Request Body schema: application/json
first_name required | string |
last_name required | string |
email required | string |
role required | string Enum: "admin" "developer" "editor" "viewer" |
Responses
Request samples
- Payload
{- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "role": "admin"
}
Response samples
- 201
- 401
- 403
- 422
{- "id": 12345,
- "first_name": "Joe",
- "last_name": "Cottam",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "requires_email_confirmation": false,
- "organization_id": 12345,
- "role": "admin",
- "invitation_sent_at": "2023-08-23T10:30:00.000Z",
- "invitation_accepted_at": "2023-08-23T10:30:00.000Z",
- "permissions": [
- "update_emails"
], - "wants_marketing_emails": false
}
Get user
Retrieves a user.
Authorizations:
path Parameters
id required | integer User ID |
Responses
Response samples
- 200
{- "id": 12345,
- "first_name": "Joe",
- "last_name": "Cottam",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "requires_email_confirmation": false,
- "organization_id": 12345,
- "role": "admin",
- "invitation_sent_at": "2023-08-23T10:30:00.000Z",
- "invitation_accepted_at": "2023-08-23T10:30:00.000Z",
- "permissions": [
- "update_emails"
], - "wants_marketing_emails": false
}
Update user
Updates a user.
Authorizations:
path Parameters
id required | integer User ID |
Request Body schema: application/json
role | string Enum: "admin" "developer" "editor" "viewer" |
Responses
Request samples
- Payload
{- "role": "admin"
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": 12345,
- "first_name": "Joe",
- "last_name": "Cottam",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
- "requires_email_confirmation": false,
- "organization_id": 12345,
- "role": "admin",
- "invitation_sent_at": "2023-08-23T10:30:00.000Z",
- "invitation_accepted_at": "2023-08-23T10:30:00.000Z",
- "permissions": [
- "update_emails"
], - "wants_marketing_emails": false
}
List connectors
Retrieves connectors.
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
Responses
Response samples
- 200
{- "results": [
- {
- "id": 12345,
- "name": "Mailchimp",
- "integration_name": "mailchimp",
- "settings": {
- "setup_fields": { }
}, - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Creates a connector.
Creates a new connector.
Authorizations:
Request Body schema: application/json
name required | string Connector name |
integration_name required | string Integration name |
required | object |
Responses
Request samples
- Payload
{- "name": "Mailchimp",
- "integration_name": "mailchimp",
- "settings": { }
}
Response samples
- 200
- 422
{- "id": 12345,
- "name": "Mailchimp",
- "integration_name": "mailchimp",
- "settings": {
- "setup_fields": { }
}, - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
}
Get connector
Retrieves a single connector by ID.
Authorizations:
path Parameters
id required | integer Connector ID |
Responses
Response samples
- 200
{- "id": 12345,
- "name": "Mailchimp",
- "integration_name": "mailchimp",
- "settings": {
- "setup_fields": { }
}, - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
}
Update connector
Updates a connector.
Authorizations:
path Parameters
id required | integer Project ID |
Request Body schema: application/json
name | string Connector name |
integration_name | string Integration name |
object |
Responses
Request samples
- Payload
{- "name": "Mailchimp",
- "integration_name": "mailchimp",
- "settings": { }
}
Response samples
- 200
- 422
{- "id": 12345,
- "name": "Mailchimp",
- "integration_name": "mailchimp",
- "settings": {
- "setup_fields": { }
}, - "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z",
}
List external connector resources
Retrieves the external connector resources
Authorizations:
query Parameters
email_id | integer Email ID |
connector_id | integer Connector ID |
Responses
Response samples
- 200
- 401
- 403
{- "results": [
- {
- "external_id": "string",
- "external_name": "string",
- "export_id": 0,
- "connector_id": 0,
- "last_exported_at": "2019-08-24T14:15:22Z",
- "email_id": 0,
- "locale": "en-US",
- "external_metadata": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
List AI agents
Retrieves the AI agents
Authorizations:
query Parameters
per | integer Default: 10 Number of records per page |
page | integer Default: 1 Page number |
Responses
Response samples
- 200
- 401
- 403
{- "results": [
- {
- "id": 12345,
- "name": "My AI Agent",
- "company_name": "My Company",
- "company_overview": "My Company is a company that makes widgets.",
- "tone": "My Company is a company that makes widgets.",
- "guidelines": "My Company is a company that makes widgets.",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z"
}
], - "pagination": {
- "per": 10,
- "page": 1,
- "total": 100
}
}
Create AI agent
Creates a new AI agent.
Authorizations:
Request Body schema: application/json
name required | string |
company_name | string |
company_overview | string |
tone | string |
guidelines | string |
Responses
Request samples
- Payload
{- "name": "string",
- "company_name": "string",
- "company_overview": "string",
- "tone": "string",
- "guidelines": "string"
}
Response samples
- 201
- 401
- 403
- 422
{- "id": 12345,
- "name": "My AI Agent",
- "company_name": "My Company",
- "company_overview": "My Company is a company that makes widgets.",
- "tone": "My Company is a company that makes widgets.",
- "guidelines": "My Company is a company that makes widgets.",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z"
}
Get AI agent
Retrieves a single AI agent by ID.
Authorizations:
path Parameters
id required | integer AI agent ID |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": 12345,
- "name": "My AI Agent",
- "company_name": "My Company",
- "company_overview": "My Company is a company that makes widgets.",
- "tone": "My Company is a company that makes widgets.",
- "guidelines": "My Company is a company that makes widgets.",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z"
}
Update AI agent
Updates a single AI agent by ID.
Authorizations:
path Parameters
id required | integer AI agent ID |
Request Body schema: application/json
name | string |
company_name | string |
company_overview | string |
tone | string |
guidelines | string |
Responses
Request samples
- Payload
{- "name": "string",
- "company_name": "string",
- "company_overview": "string",
- "tone": "string",
- "guidelines": "string"
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": 12345,
- "name": "My AI Agent",
- "company_name": "My Company",
- "company_overview": "My Company is a company that makes widgets.",
- "tone": "My Company is a company that makes widgets.",
- "guidelines": "My Company is a company that makes widgets.",
- "created_at": "2023-08-23T10:30:00.000Z",
- "updated_at": "2023-08-23T10:30:00.000Z"
}
Render
Renders the selected components of an email design system
Authorizations:
Request Body schema: application/json
email_design_system_id required | integer ID of the email design system |
required | object |
Responses
Request samples
- Payload
{- "email_design_system_id": 0,
- "content": {
- "subject": "string",
- "preheader": "string",
- "container_component_instance": {
- "component_id": 0,
- "field_values": {
- "property1": "string",
- "property2": "string"
}
}, - "component_instances": [
- {
- "component_id": 0,
- "field_values": {
- "property1": "string",
- "property2": "string"
}
}
]
}
}
Response samples
- 201
- 401
- 403
- 404
- 422
{- "html": "string",
- "created_at": "2023-08-23T10:30:00.000Z"
}