Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

List all letters

GET
/api/v2/channels/{{channel}}/letters

List or search through newsletters based on their publication status or keywords.

channel
required
string
filter
string
Example
6

Publication status of results to include (1 = published; 2 = scheduled; 4 = review; 6 = all statuses)

keyword
string

Optional keyword by which to search results

letterUuid
string

Filter results to include only the letter matching the specified UUID.

limit
string
Example
10

Number of results to return

includePrivate
string
Example
true

Whether to include newsletters marked “private.”

page
string
Example
1

Paginated page number

passport
string
Example
false

Whether to authenticate with a passport rather than an API key

api
string
Example
false

When true, instructs the endpoint that you’re authenticating with an organization key as opposed to some other method. In almost all cases you will want to set this value to true.

List all letters

Media type application/json
object
items
Array<object>
object
campaignId
string
copyRendered
string
createdAt
string
deletedAt
nullable
emailServiceProvider
number
emailTemplate
string
id
number
includePromotions
boolean
insights
object
readability
object
ease
number
time
string
private
boolean
promotions
string
publicationDate
string
publicationDateOffset
string
publicationDateTzCode
string
publicationEvent
number
publicationStatus
number
publishIntent
string
sections
string
segmentId
number
segmentName
string
slug
string
specialBanner
string
subtitle
string
title
string
uniqueId
string
updatedAt
string
total
number
Examples
Example List all letters
{
"items": [
{
"campaignId": "6cuswtvr7p",
"copyRendered": "",
"createdAt": "2022-09-14 19:54:12",
"deletedAt": null,
"emailServiceProvider": 3,
"emailTemplate": "<!--The full html of the email -->",
"id": 4991,
"includePromotions": true,
"insights": {
"readability": {
"ease": 86,
"time": "1 minute read"
}
},
"private": false,
"promotions": "",
"publicationDate": "2023-09-20 12:00:00",
"publicationDateOffset": "-05:00",
"publicationDateTzCode": "America/New_York",
"publicationEvent": 0,
"publicationStatus": 2,
"publishIntent": "email",
"sections": "[{ /* the newsletter as javascript */ }]",
"segmentId": 0,
"segmentName": "Entire Audience",
"slug": "",
"specialBanner": "",
"subtitle": "Yes it is",
"title": "This is a scheduled newsletter",
"uniqueId": "6cuswtvr7p",
"updatedAt": "2022-09-14 19:54:12"
}
],
"total": 292
}
Access-Control-Allow-Credentials
string
Example
true
Access-Control-Allow-Origin
string
Example
*
Access-Control-Max-Age
string
Example
86400
Cache-Control
string
Example
no-cache, private
Connection
string
Example
keep-alive
Date
string
Example
Thu, 22 Sep 2022 02:34:04 GMT
Server
string
Example
nginx/1.14.0 (Ubuntu)
Transfer-Encoding
string
Example
chunked

Still can’t find what you need? Contact support.