Get the mailing content schema
On this page
GET
/v1/design/schemaget_design_schema| 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 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#
| Field | Type | Required | Description |
|---|---|---|---|
design | object | yes | |
design.description | string | yes | |
design.block_types | array of object | yes | One entry per block type: type, label, description, limits, single, locked and example_data. |
simple_form | object | yes | JSON Schema of the simple form that create_mailing_draft and render_design accept. A field with a default is not required. |
inline_marks | array of string | yes | The 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"const response = await fetch("https://api.seemly.com/v1/design/schema", {
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/schema",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
},
)
print(response.status_code, response.json())Response: 200:
{
"design": {
"description": "EmailDesignV1",
"block_types": []
},
"simple_form": {},
"inline_marks": [
"**bold**"
]
}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.