# REST API

> The Monitorly Cloud REST API - base address, JSON conventions, authentication, and where the reference of every operation is.

Everything the dashboard does goes through the REST API, and most of it is open to personal API tokens.

```sh title="List your workspaces"
curl -fsS https://app.monitorly.cloud/api/v1/workspaces \
  -H "Authorization: Bearer $MONITORLY_TOKEN"
```

## Conventions

- Base address: `https://app.monitorly.cloud/api/v1`.
- Bodies are JSON in UTF-8, at most 256 KiB. Field names are camelCase. An unknown field is an error.
- Times are RFC 3339 in UTC, such as `2026-11-10T14:02:00Z`.
- Ids are UUIDs. Names and titles are one line.
- Errors are `application/problem+json` with a stable code: [Errors](https://docs.monitorly.cloud/api/errors.md).
- Lists that can be long return `{items, nextCursor}`: [Pagination](https://docs.monitorly.cloud/api/pagination.md).
- Creating requests accept `Idempotency-Key`: [Idempotency](https://docs.monitorly.cloud/api/idempotency.md).

## Topics

- [Authentication](https://docs.monitorly.cloud/api/authentication.md): personal API tokens, scopes, what a token may never do.
- [Errors](https://docs.monitorly.cloud/api/errors.md): the problem format and every code.
- [Pagination](https://docs.monitorly.cloud/api/pagination.md)
- [Idempotency](https://docs.monitorly.cloud/api/idempotency.md)
- [Rate limits](https://docs.monitorly.cloud/api/rate-limits.md)
- [Webhooks](https://docs.monitorly.cloud/webhooks.md): what a webhook alert channel receives, and how to verify it.

## Reference

The [REST reference](https://docs.monitorly.cloud/api/reference.md) lists every operation with its parameters, request body and responses, grouped by area. It is generated from the OpenAPI 3.1 document of the API, which you can download as [openapi.json](https://docs.monitorly.cloud/openapi.json) for your own client generator.

A few areas are not in the reference because they are not REST: the [MCP server](https://docs.monitorly.cloud/mcp.md) and [OAuth sign-in](https://docs.monitorly.cloud/mcp/oauth.md), heartbeat [ping URLs](https://docs.monitorly.cloud/checks/heartbeat.md#the-ping-url), and the [`monitorly.yaml` schema](https://docs.monitorly.cloud/cli/monitorly-yaml.md#json-schema).
