# Create a status page

`POST /api/v1/projects/{projectId}/status-pages`

Creates a status page. A page starts as a draft: add components, then publish it with [Update a status page](https://docs.monitorly.cloud/api/reference/operations/update-status-page.md). `published: true` here needs components.

Sign-in: a dashboard session, an API token with `pages:write` or the `monitorly` CLI's sign-in with `pages:write`.

Section: Status pages. Operation id in openapi.json: `create_status_page`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `projectId` | path | yes | string (uuid) | The project's id. |
| `Idempotency-Key` | header | no | string | Any 1–255 characters, for example a UUID per intended action. A retry with the same key and the same request answers the stored response and creates nothing again; the same key with another request answers `422 request.idempotency_key_reused`. Keys are kept for 24 hours. |

## Request body

Required: yes.

`application/json`: StatusPageInput

| Field | Type | Required | Description |
|---|---|---|---|
| `published` | boolean | no |  |
| `slug` | string | yes | `^[a-z0-9][a-z0-9-]{1,62}$`, unique in the installation. |
| `title` | string | yes |  |

Example:

```json
{
  "published": false,
  "slug": "acme",
  "title": "Acme status"
}
```

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 201

The page.

`application/json`: StatusPageView

| Field | Type | Required | Description |
|---|---|---|---|
| `accentColor` | string \| null | no | `#rrggbb`: the page's accent instead of the product's; white text on it has at least 4.5:1 contrast. |
| `access` | PageAccess | no | Who may open the published page. Always sent; optional in the schema because it was added after the first clients. |
| `components` | array of ComponentView | yes |  |
| `customDomain` | DomainView \| null | no |  |
| `emailSubscriberCount` | integer | no | Confirmed email subscribers. Always sent; optional in the schema. |
| `emailSubscriptions` | boolean | no | Visitors can subscribe by email (the installation sends email). Always sent; optional in the schema. |
| `hasPassword` | boolean | no | A page password is stored (it is never answered). Always sent; optional in the schema. |
| `hideBranding` | boolean | no | The page leaves out "Powered by Monitorly Cloud" (Business plan). Always sent; optional in the schema. |
| `id` | string (uuid) | yes |  |
| `logos` | LogosView | yes |  |
| `managedBy` | ManagedBy | no | `config` when a config apply manages the page, `ui` otherwise. Always sent; optional in the schema because it was added after the first clients. |
| `projectId` | string (uuid) | yes |  |
| `publicUrl` | string \| null | no | The page's public address (`<status host>/<slug>`), also while it is a draft (it answers 404 until the page is published); null when the installation has no status page address. |
| `published` | boolean | yes |  |
| `ref` | string \| null | no | The page's key in a config file; null until a config apply creates or adopts it. Always sent; optional in the schema because it was added after the first clients. |
| `slug` | string | yes |  |
| `subscribeUrl` | string \| null | no | `https://t.me/<bot>?start=sub_<code>`: the page's "Subscribe" link; null without a bot username. |
| `subscriberCount` | integer | yes | Telegram chats subscribed to the page's posts (active ones). |
| `theme` | PageTheme \| null | no |  |
| `title` | string | yes |  |
| `updatedAt` | string | yes |  |
| `websiteUrl` | string \| null | no | The company site the page header links to. |

Example:

```json
{
  "access": "public",
  "components": [],
  "customDomain": null,
  "emailSubscriptions": false,
  "id": "PAGE_ID",
  "logos": {
    "dark": null,
    "light": null
  },
  "managedBy": "ui",
  "projectId": "PROJECT_ID",
  "publicUrl": "https://status.monitorly.cloud/acme",
  "published": false,
  "slug": "acme",
  "subscriberCount": 0,
  "title": "Acme status",
  "updatedAt": "2026-11-27T15:30:00Z"
}
```

### 400

Bad Request.

- `request.malformed`: the body or a parameter is not of the expected shape
- `request.idempotency_key_invalid`: the key is empty or longer than 255 characters
- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.scope_missing`: the token lacks the scope this needs; `detail` names it
- `request.origin_mismatch`, `request.header_required`: a changing request with a session comes from another site or lacks `X-Monitorly-Request: 1`

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 409

Conflict.

- `status_page.slug_taken`: slug already belongs to another page
- `quota.status_pages_reached`: the workspace has as many status pages as its plan allows

### 413

Payload Too Large.

- `request.too_large`: the body is larger than 256 KiB

### 422

Unprocessable Entity.

- `field.required`, `field.too_long`, `field.invalid`: a field breaks a rule; `errors` points at it
- `status_page.slug_invalid`: slug does not match `^[a-z0-9][a-z0-9-]{1,62}$`
- `status_page.slug_reserved`: the slug is reserved: `healthz`, `readyz`, `metrics`
- `status_page.components_required`: publishing a page that has no components: a new page is created as a draft, and `published: true` needs at least one component (`/published`)

### 429

Too Many Requests.

- `token.rate_limited`: more than 10 requests a second with this token
- `session.rate_limited`: more than 5 changes a second from your sessions
- `token.create_limited`: more than 30 resources created within an hour from one token; `Retry-After` in seconds

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
