Skip to content

List mailing starters

On this page
GET/v1/design/starterslist_design_starters
Riskread
AuthenticationAPI key or OAuth access token
Scopesdesign:read
Idempotencynatural: repeating the call gives the same result
Dry runnot applicable
Success status200
Response typeapplication/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#

FieldTypeRequiredDescription
dataarray of objectyes
data[].idstringyes
data[].namestringyes
data[].descriptionstringyes
data[].priorityone of "P0", "P1", "P2"yes
data[].purposestringyes
data[].layoutstringyes
data[].densitystringyes
data[].subjectstringyes
data[].preheaderstringyes
data[].required_factsarray of objectyesThe facts and links this starter needs before it can be sent. Ask the author for them before you draft.
data[].required_facts[].fieldstringyesThe request field to set, for example simple.facts.author_name or simple.facts.book.links[0].href
data[].required_facts[].needed_whenone of "always", "sections_omitted"yesalways: 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[].reasonstringyesWhat is missing without it, in a sentence you can put to the author
data[].body_is_examplebooleanyesTrue 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"

Response: 200:

JSON
{
  "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#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.