List mailing starters
On this page
GET
/v1/design/starterslist_design_starters| Risk | read |
| Authentication | API key or OAuth access token |
| Scopes | design:read |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |
What it does#
- Use when: You are about to draft a mailing and want to pick its starting layout (new release, newsletter, sale, and so on). Each starter lists the facts and links it needs (required_facts), so you can ask the author first.
- Do not use when: you already know the starter id (call create_mailing_draft).
- Side effects: None.
- Reversible: Not applicable, nothing changes.
- Required scope: design:read.
- Idempotency: safe to repeat.
- Typical next step: call list_design_skins, then render_design or create_mailing_draft.
Scopes#
design:read: Read design starters and skins, and render a design to HTML.
Request#
Path parameters#
None.
Query parameters#
None.
Every read also accepts fields=a,b,c to return only those top-level fields.
Response#
| Field | Type | Required | Description |
|---|---|---|---|
data | array of object | yes | |
data[].id | string | yes | |
data[].name | string | yes | |
data[].description | string | yes | |
data[].priority | one of "P0", "P1", "P2" | yes | |
data[].purpose | string | yes | |
data[].layout | string | yes | |
data[].density | string | yes | |
data[].subject | string | yes | |
data[].preheader | string | yes | |
data[].required_facts | array of object | yes | The facts and links this starter needs before it can be sent. Ask the author for them before you draft. |
data[].required_facts[].field | string | yes | The request field to set, for example simple.facts.author_name or simple.facts.book.links[0].href |
data[].required_facts[].needed_when | one of "always", "sections_omitted" | yes | always: the masthead or closing uses it whatever you send in sections. sections_omitted: only the starter's own body uses it, so it is not needed once you send simple.sections. |
data[].required_facts[].reason | string | yes | What is missing without it, in a sentence you can put to the author |
data[].body_is_example | boolean | yes | True when the starter's own body is example text that only simple.sections can replace, so send sections. False when the facts alone make the starter sendable. |
Examples#
blank and new release#
Request:
curl 'https://api.seemly.com/v1/design/starters' \
-H "Authorization: Bearer $SEEMLY_API_KEY"const response = await fetch("https://api.seemly.com/v1/design/starters", {
headers: {
"Authorization": `Bearer ${process.env.SEEMLY_API_KEY}`,
},
});
const result = await response.json();
console.log(response.status, result);import os
import requests
response = requests.get(
"https://api.seemly.com/v1/design/starters",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
},
)
print(response.status_code, response.json())Response: 200:
{
"data": [
{
"id": "blank",
"name": "Blank",
"description": "A masthead, one paragraph to replace and a signature. No opinions.",
"priority": "P0",
"purpose": "regular",
"layout": "letter",
"density": "low",
"subject": "",
"preheader": "",
"required_facts": [
{
"field": "simple.facts.author_name",
"needed_when": "always",
"reason": "The masthead and the signature need the author's name."
}
],
"body_is_example": true
},
{
"id": "new_release",
"name": "New Book Release",
"description": "The cover and where to get it take center stage, with a short thank you.",
"priority": "P0",
"purpose": "launch",
"layout": "book_spotlight",
"density": "high",
"subject": "My new book is out, and I wanted to say thank you",
"preheader": "Where to get it, plus a thank-you for reading along.",
"required_facts": [
{
"field": "simple.facts.author_name",
"needed_when": "always",
"reason": "The masthead and the signature need the author's name."
},
{
"field": "simple.facts.book.title",
"needed_when": "sections_omitted",
"reason": "The starter names the book and needs its title."
},
{
"field": "simple.facts.book.description",
"needed_when": "sections_omitted",
"reason": "The starter shows a short blurb of the book."
},
{
"field": "simple.facts.book.links[0].href",
"needed_when": "sections_omitted",
"reason": "The starter's button needs a store page (set links[0].href, and links[0].label for its name)."
}
],
"body_is_example": false
}
]
}Errors#
| Status | Codes |
|---|---|
| 401 | unauthenticated, credential_revoked, credential_expired |
| 403 | insufficient_scope, plan_does_not_include, api_suspended, consent_required |
| 429 | rate_limited |
| 503 | service_unavailable |
Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.