# get_design_schema

Get the mailing content schema

`GET /v1/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:

```bash
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

| Status | Codes |
| --- | --- |
| 401 | [`unauthenticated`](/developers/md/errors/unauthenticated), [`credential_revoked`](/developers/md/errors/credential_revoked), [`credential_expired`](/developers/md/errors/credential_expired) |
| 403 | [`insufficient_scope`](/developers/md/errors/insufficient_scope), [`plan_does_not_include`](/developers/md/errors/plan_does_not_include), [`api_suspended`](/developers/md/errors/api_suspended), [`consent_required`](/developers/md/errors/consent_required) |
| 429 | [`rate_limited`](/developers/md/errors/rate_limited) |
| 503 | [`service_unavailable`](/developers/md/errors/service_unavailable) |

Every error is an `application/problem+json` body with a `code`, a `fix` sentence and `next_actions`. See [reading a problem response](/developers/md/guides/agents#reading-a-problem-response).

## Typical next steps

- [`render_design`](/developers/md/operations/render_design)
- [`create_mailing_draft`](/developers/md/operations/create_mailing_draft)

## Related

- [OpenAPI document](https://api.seemly.com/v1/openapi.json)
- [Agent guide](/developers/md/guides/agents)
