Emails
Retrieve all of a workspace's template emails.
Responses
200
A collection of emails.
application/json
idstringRequiredExample:
The ID of the email.
981ba079-62a6-442c-8dfb-a72af6e96b8cnamestringRequiredExample:
The email's name.
Welcome EmailcontentobjectRequired
The email's content.
subject_linestringRequiredExample:
The email's subject line.
Hello world!preview_linestringRequiredExample:
The email's preview line.
Hello world!created_atstring · date-timeRequiredExample:
Timestamp of when the email was created.
2025-01-01T00:00:00.000Zupdated_atstring · date-timeRequiredExample:
Timestamp of when the email was last updated.
2025-01-01T00:00:00.000Z401
The user is not authenticated.
403
The user does not have permission to perform this operation.
get/emails
GET /api/v1/emails HTTP/1.1
Accept: */*
[
{
"id": "981ba079-62a6-442c-8dfb-a72af6e96b8c",
"name": "Welcome Email",
"content": {},
"subject_line": "Hello world!",
"preview_line": "Hello world!",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}
]Retrieve an email by ID.
Responses
200
An email.
application/json
idstringRequiredExample:
The ID of the email.
981ba079-62a6-442c-8dfb-a72af6e96b8cnamestringRequiredExample:
The email's name.
Welcome EmailcontentobjectRequired
The email's content.
subject_linestringRequiredExample:
The email's subject line.
Hello world!preview_linestringRequiredExample:
The email's preview line.
Hello world!created_atstring · date-timeRequiredExample:
Timestamp of when the email was created.
2025-01-01T00:00:00.000Zupdated_atstring · date-timeRequiredExample:
Timestamp of when the email was last updated.
2025-01-01T00:00:00.000Z401
The user is not authenticated.
403
The user does not have permission to perform this operation.
get/emails/{emailId}
GET /api/v1/emails/{emailId} HTTP/1.1
Accept: */*
{
"id": "981ba079-62a6-442c-8dfb-a72af6e96b8c",
"name": "Welcome Email",
"content": {},
"subject_line": "Hello world!",
"preview_line": "Hello world!",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}Last updated