Skip to content

Get the mailing content schema

On this page
GET/v1/design/schemaget_design_schema
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 build mailing content and need the allowed blocks, their limits, example data and the simple form.
  • Do not use when: you only need layouts and colors (call list_design_starters or list_design_skins).
  • Side effects: None.
  • Reversible: Not applicable, nothing changes.
  • Required scope: design:read.
  • Idempotency: safe to repeat.
  • Typical next step: call render_design with your content.

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
designobjectyes
design.descriptionstringyes
design.block_typesarray of objectyesOne entry per block type: type, label, description, limits, single, locked and example_data.
simple_formobjectyesJSON Schema of the simple form that create_mailing_draft and render_design accept. A field with a default is not required.
inline_marksarray of stringyesThe inline marks a paragraph or blurb text understands.

Examples#

document#

Request:

curl 'https://api.seemly.com/v1/design/schema' \
  -H "Authorization: Bearer $SEEMLY_API_KEY"

Response: 200:

JSON
{
  "design": {
    "description": "EmailDesignV1",
    "block_types": []
  },
  "simple_form": {},
  "inline_marks": [
    "**bold**"
  ]
}

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.