const url = 'https://app.monitorly.cloud/api/v1/plans';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.monitorly.cloud/api/v1/plans \ --header 'Authorization: Bearer <token>'The plans with their limits, features and prices. Any token may read them.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The plan catalogue.
The plans and the add-on packs.
object
Checks in one add-on pack.
The most packs of each kind one subscription can have.
One plan of the catalogue: what it allows. Prices are not here: they are at the payment provider and, as shown, in the dashboard’s and landing page’s price file.
object
What the plan allows besides counts.
object
Add-on packs (checks, servers) can be bought on top of the plan.
Offered for new subscriptions (Free is not bought).
Servers (private nodes) in one add-on pack.
Example generated
{ "checksPerPack": 1, "maxPacks": 1, "plans": [ { "apiTokens": 1, "channels": 1, "checks": 1, "features": { "addons": true, "customDomain": true, "hideBranding": true, "privatePages": true }, "forSale": true, "historyDays": 1, "key": "example", "members": 1, "minIntervalSecs": 1, "name": "example", "privateNodes": 1, "projects": 1, "statusPages": 1, "subscribersPerPage": 1 } ], "serversPerPack": 1}Bad Request.
auth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.scope_missing: the token lacks the scope this needs;detailnames it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Too Many Requests.
token.rate_limited: more than 10 requests a second with this token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.