Skip to content

API reference ​

Generated from the OpenAPI specification; do not edit. Specification: openapi.yaml

OpenAPI 3.1.0 · Cloud.me Test API 1.0.0

GET /api/v1/account ​

The signed-in user's profile

Responses

  • 200 OK
  • default Error

PATCH /api/v1/account ​

Change language, time zone, display name or theme

Request body:UpdateAccountRequest

Responses

  • 200 OK
  • default Error

GET /api/v1/account/api-keys ​

List the API keys

Responses

  • 200 OK
  • default Error

POST /api/v1/account/api-keys ​

Create an API key (shown once)

Request body:CreateAPIKeyRequest

Responses

  • 201 Created
  • default Error

DELETE /api/v1/account/api-keys/{id} ​

Revoke an API key

Parameters

NameInRequiredDescription
idpathyes

Responses

  • 204 No Content
  • default Error

GET /api/v1/account/appeals ​

The caller's appeals

Responses

  • 200 OK
  • default Error

POST /api/v1/account/appeals ​

Appeal against withheld or clawed-back credits

Request body:AppealRequest

Responses

  • 201 Created
  • default Error

GET /api/v1/account/community/profile ​

Thanks page settings

Responses

  • 200 OK
  • default Error

PUT /api/v1/account/community/profile ​

Change thanks page settings

Request body:CommunityProfile

Responses

  • 200 OK
  • default Error

GET /api/v1/account/credits ​

Test credit balance and ledger, newest first

Parameters

NameInRequiredDescription
limitqueryno
cursorquerynonext_cursor of the previous page
kindqueryno
statusqueryno

Responses

  • 200 OK
  • default Error

GET /api/v1/account/credits/export ​

Export the whole test credit ledger as CSV (UTF-8 with BOM)

Parameters

NameInRequiredDescription
kindqueryno
statusqueryno

Responses

  • 200 CSV file
  • default Error

POST /api/v1/account/delete ​

Delete the account (personal data is removed, tests become anonymous)

Request body:ConfirmRequest

Responses

  • 204 No Content
  • default Error

POST /api/v1/account/email/change ​

Ask to change the email address; a confirmation link goes to the new one

Request body:ChangeEmailRequest

Responses

  • 202 Accepted
  • default Error

POST /api/v1/account/email/confirm ​

Confirm the new email address with the emailed token

Request body:TokenRequest

Responses

  • 204 No Content
  • default Error

GET /api/v1/account/identities ​

Sign-in methods: password, linked Google account

Responses

  • 200 OK
  • default Error

DELETE /api/v1/account/identities/google ​

Unlink the Google account (only with a password set)

Request body:ConfirmRequest

Responses

  • 204 No Content
  • default Error

POST /api/v1/account/identities/google/link ​

Start linking a Google account

Returns Google's authorization URL; navigate the browser there. The round trip must end in this session.

Request body:GoogleLinkStartRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/account/mfa/disable ​

Turn two-step verification off

Responses

  • 204 No Content
  • default Error

POST /api/v1/account/mfa/enable ​

Turn two-step verification on and get the recovery codes

Request body:ConfirmRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/account/node-tokens ​

Get the install token of a community node

Request body:NodeTokenRequest

Responses

  • 201 Created
  • default Error

GET /api/v1/account/nodes ​

The caller's nodes: status, reliability, scarcity, credits (about three hours behind), limits

Responses

  • 200 OK
  • default Error

PATCH /api/v1/account/nodes/{id} ​

Pause or resume a node, or change its limits

Parameters

NameInRequiredDescription
idpathyes

Request body:UpdateNodeRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/account/passkeys/register/begin ​

Start adding a passkey

Request body:ConfirmRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/account/passkeys/register/finish ​

Finish adding a passkey

Request body:PasskeyFinishRequest

Responses

  • 201 Created
  • default Error

PATCH /api/v1/account/passkeys/{id} ​

Rename a passkey

Parameters

NameInRequiredDescription
idpathyes

Request body:PasskeyRenameRequest

Responses

  • 200 OK
  • default Error

DELETE /api/v1/account/passkeys/{id} ​

Delete a passkey

Parameters

NameInRequiredDescription
idpathyes

Request body:ConfirmRequest

Responses

  • 204 No Content
  • default Error

POST /api/v1/account/password ​

Change the password

Request body:ChangePasswordRequest

Responses

  • 204 No Content
  • default Error

POST /api/v1/account/recovery-codes/regenerate ​

Replace the recovery codes

Responses

  • 200 OK
  • default Error

GET /api/v1/account/referral ​

Invitation link

Responses

  • 200 OK
  • default Error

POST /api/v1/account/referral/claim ​

Name the inviter of this new account (within claim_days of signing up, see get-referral)

Request body:ReferralClaim

Responses

  • 204 No Content
  • default Error

GET /api/v1/account/security ​

Passkeys, two-step verification and recovery code status

Responses

  • 200 OK
  • default Error

GET /api/v1/account/sessions ​

Recent sign-ins

Responses

  • 200 OK
  • default Error

GET /api/v1/alerts ​

List the alerts of the caller's monitors, newest first

Parameters

NameInRequiredDescription
monitor_idqueryno
statequerynoOnly alerts in this state; absent: both
cursorqueryno
limitquerynoPage size; 0 or absent: 50, at most 200

Responses

  • 200 OK
  • default Error

GET /api/v1/announcements ​

Site notices in force

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/login ​

Sign in with email and password

Request body:LoginRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/logout ​

Sign out

Responses

  • 204 No Content
  • default Error

POST /api/v1/auth/mfa/begin ​

Start the passkey step of signing in

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/mfa/finish ​

Finish the passkey step of signing in

Request body:MFAFinishRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/mfa/recovery ​

Finish signing in with a recovery code

Request body:RecoveryLoginRequest

Responses

  • 200 OK
  • default Error

GET /api/v1/auth/oauth/google/callback ​

Google sends the browser back here

Not for API clients. Always answers 302 to the page /account/oauth-result with the outcome in the fragment: result=signed_in|signed_up|mfa_pending|linked, or error=<code> and reason=<reason>; return_to when known.

Parameters

NameInRequiredDescription
codequerynoAuthorization code from Google
statequeryno
errorquerynoSet by Google when the user cancelled

Responses

  • 302 Found
  • default Error

POST /api/v1/auth/oauth/google/start ​

Start signing in (or up) with Google

Returns Google's authorization URL; navigate the browser there. Sets a cookie that binds the round trip (10 minutes) to this browser.

Request body:GoogleLoginStartRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/password/forgot ​

Email a password reset link

Request body:ForgotPasswordRequest

Responses

  • 202 Accepted
  • default Error

POST /api/v1/auth/password/reset ​

Set a new password with the emailed token

Request body:ResetPasswordRequest

Responses

  • 204 No Content
  • default Error

POST /api/v1/auth/reauth/begin ​

Start a passkey re-verification for sensitive actions

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/reauth/email/begin ​

Email a re-verification code (accounts without a password or two-step verification)

Answer to reauth_required with details.method = email. The 6-digit code works for 10 minutes, once, with at most 5 attempts, in this session only.

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/reauth/email/finish ​

Finish the emailed re-verification (valid for 5 minutes)

Request body:ReauthCodeRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/reauth/finish ​

Finish the passkey re-verification (valid for 5 minutes)

Request body:MFAFinishRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/auth/register ​

Create an account and send the verification email

Request body:RegisterRequest

Responses

  • 202 Accepted
  • default Error

POST /api/v1/auth/resend-verification ​

Send the verification email again

Responses

  • 202 Accepted
  • default Error

POST /api/v1/auth/verify-email ​

Confirm the email address with the emailed token

Request body:TokenRequest

Responses

  • 204 No Content
  • default Error

POST /api/v1/ban-appeals ​

File a banned account's appeal (the token is used up; rate_limited during the cooldown after a rejection)

Request body:BanAppealRequest

Responses

  • 201 Created
  • default Error

POST /api/v1/ban-appeals/link ​

Mail a banned account a new appeal link (always 204)

Request body:AppealLinkRequest

Responses

  • 204 No Content
  • default Error

POST /api/v1/ban-appeals/status ​

State of a banned account's appeal (token of the emailed link; a used one still works until it expires)

Request body:BanAppealStatusRequest

Responses

  • 200 OK
  • default Error

GET /api/v1/channels ​

List notification channels

Responses

  • 200 OK
  • default Error

POST /api/v1/channels ​

Add a notification channel

Request body:ChannelRequest

Responses

  • 201 Created
  • default Error

PATCH /api/v1/channels/{id} ​

Change a notification channel

Parameters

NameInRequiredDescription
idpathyes

Request body:ChannelUpdate

Responses

  • 200 OK
  • default Error

DELETE /api/v1/channels/{id} ​

Delete a notification channel

Parameters

NameInRequiredDescription
idpathyes

Responses

  • 204 No Content
  • default Error

POST /api/v1/channels/{id}/test ​

Send a test notification

Parameters

NameInRequiredDescription
idpathyes

Responses

  • 200 OK
  • default Error

POST /api/v1/channels/{id}/verification ​

Email a new verification code to an email channel

Parameters

NameInRequiredDescription
idpathyes

Responses

  • 202 Accepted
  • default Error

POST /api/v1/channels/{id}/verify ​

Verify an email channel with its code

Parameters

NameInRequiredDescription
idpathyes

Request body:ChannelVerifyRequest

Responses

  • 200 OK
  • default Error

GET /api/v1/community/gaps ​

Gap heat map: scarcity coefficient of every location; top lists the ten scarcest

Responses

  • 200 OK
  • default Error

GET /api/v1/community/gaps/{key}/history ​

Hourly scarcity coefficient of one location over 30 days

Parameters

NameInRequiredDescription
keypathyesLocation key, URL-encoded (CN-GD%7Ctelecom)

Responses

  • 200 OK
  • default Error

GET /api/v1/community/reports ​

Months with a community report

Responses

  • 200 OK
  • default Error

GET /api/v1/community/reports/{month} ​

Monthly community report

Parameters

NameInRequiredDescription
monthpathyes

Responses

  • 200 OK
  • default Error

GET /api/v1/community/thanks ​

Thanks page

Responses

  • 200 OK
  • default Error

GET /api/v1/monitors ​

List the caller's monitors and free allowance

Parameters

NameInRequiredDescription
cursorqueryno
limitqueryno

Responses

  • 200 OK
  • default Error

POST /api/v1/monitors ​

Create a monitor

Request body:MonitorRequest

Responses

  • 201 Created
  • default Error

GET /api/v1/monitors/{id} ​

Get a monitor

Parameters

NameInRequiredDescription
idpathyes

Responses

  • 200 OK
  • default Error

PUT /api/v1/monitors/{id} ​

Replace a monitor's definition (enabled absent keeps the current value; true also resumes a paused monitor)

Parameters

NameInRequiredDescription
idpathyes

Request body:MonitorRequest

Responses

  • 200 OK
  • default Error

DELETE /api/v1/monitors/{id} ​

Delete a monitor

Parameters

NameInRequiredDescription
idpathyes

Responses

  • 204 No Content
  • default Error

POST /api/v1/monitors/{id}/maintenance-windows ​

Add a maintenance window (no alerts during it)

Parameters

NameInRequiredDescription
idpathyes

Request body:MaintenanceWindowRequest

Responses

  • 201 Created
  • default Error

DELETE /api/v1/monitors/{id}/maintenance-windows/{window_id} ​

Delete a maintenance window

Parameters

NameInRequiredDescription
idpathyes
window_idpathyes

Responses

  • 204 No Content
  • default Error

GET /api/v1/monitors/{id}/runs ​

List a monitor's runs, newest first (8 days)

Parameters

NameInRequiredDescription
idpathyes
beforequerynonext_cursor of the previous page
limitqueryno

Responses

  • 200 OK
  • default Error

GET /api/v1/monitors/{id}/stats ​

Availability and latency chart of a monitor

Parameters

NameInRequiredDescription
idpathyes
fromquerynoRFC 3339; default 24 hours before to
toquerynoRFC 3339; default now

Responses

  • 200 OK
  • default Error

GET /api/v1/nodes ​

List public nodes (no IP addresses)

Responses

  • 200 OK
  • default Error

POST /api/v1/optout ​

Ask for a site not to be tested

Request body:OptOutRequest

Responses

  • 201 Created
  • default Error

POST /api/v1/optout/verify ​

Check the ownership proof of an opt-out request

Request body:OptOutVerify

Responses

  • 200 OK
  • default Error

GET /api/v1/site ​

Public site settings for the web UI (default theme, Turnstile site key)

Responses

  • 200 OK
  • default Error

GET /api/v1/tests ​

List the caller's tests (history)

Parameters

NameInRequiredDescription
kindqueryno
targetquerynoPart of a target
fromquerynoCreated at or after (RFC 3339)
toquerynoCreated before (RFC 3339)
cursorquerynonext_cursor of the previous page
limitqueryno0 = 20
monitor_idquerynoOnly the runs of this monitor; without it monitor runs are not listed

Responses

  • 200 OK
  • default Error

POST /api/v1/tests ​

Start a test

Request body:CreateTestRequest

Responses

  • 201 Created
  • default Error

GET /api/v1/tests/{id} ​

Get a test and its results

Parameters

NameInRequiredDescription
idpathyes
offsetquerynoResults to skip
limitquerynoResults per page; 0 = 1000

Responses

  • 200 OK
  • default Error

PATCH /api/v1/tests/{id} ​

Share or unshare a test

Parameters

NameInRequiredDescription
idpathyes

Request body:UpdateTestRequest

Responses

  • 200 OK
  • default Error

POST /api/v1/tests/{id}/cancel ​

Stop a running test

Parameters

NameInRequiredDescription
idpathyes

Responses

  • 204 No Content
  • default Error

GET /api/v1/tests/{id}/events ​

Stream test events (SSE): replays persisted results, then live events

Server-sent events of one test (design 5.3). Anyone with the test ID may read it. Every connection, with or without Last-Event-ID, first replays all persisted results, one event per task_id (the same entries get-test shows), then forwards live events until the test is done. Event names: ack, progress, result, node_timeout, done, error. - result and node_timeout carry their task_id as the SSE event id; ack and progress are live only and never replayed. - Clients de-duplicate by task_id, and a later event for the same task_id wins: a result replaces an earlier node_timeout placeholder of that task_id (for example the center's outcome, replayed after a reconnect); a node_timeout never replaces a result. - done carries the test summary; the stream ends after it. - error carries an Error body and is sent once, before the stream closes, when it cannot start or continue. Branch on its code only: not_found, forbidden and unauthorized are final; any other code (rate_limited with details.retry_after_sec, not_implemented, internal) means reconnect with back-off. - A comment line (": keep-alive") is sent at least every 15 seconds. - Node addresses are removed from live frames as from stored results.

Parameters

NameInRequiredDescription
idpathyes
Last-Event-IDheadernoAccepted on reconnect; every connection replays all persisted results, de-duplicate them by task_id

Responses

  • 200 OK
  • default Error

GET /api/v1/tests/{id}/export ​

Export a test's results (CSV for Excel, or JSON)

Anyone with the test ID may export it, like get-test. CSV (the default) is UTF-8 with a byte order mark, so Excel opens it directly; it is streamed, so a test of any size can be exported, one row per result, node names in lang. A text cell that a spreadsheet could take as a formula starts with a quote. JSON is the same document as get-test with every result in results; a test with more than 20000 results or 100000 route hops answers export_too_large (413), export it as CSV instead. Each caller may export 10 times a minute (rate_limited); a server that is already streaming several CSV exports also answers rate_limited (see retry_after_sec). A client must keep reading: a download that stalls for 10 seconds is cut off, and a CSV the server cannot finish after it has started is cut off too (the connection is closed without the end of the body), so check that the download completed. Never indexed (X-Robots-Tag: noindex).

Parameters

NameInRequiredDescription
idpathyes
formatqueryno
langquerynoLanguage of node names (CSV)

Responses

  • 200 CSV (UTF-8 with BOM, streamed) or JSON (the test detail with every result; at most 20000 results, else export_too_large)
  • default Error

GET /api/v1/usage ​

Quota usage of the caller: two windows and, for members, test credits

Responses

  • 200 OK
  • default Error