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
200OKdefaultError
PATCH /api/v1/account
Change language, time zone, display name or theme
Request body:UpdateAccountRequest
Responses
200OKdefaultError
GET /api/v1/account/api-keys
List the API keys
Responses
200OKdefaultError
POST /api/v1/account/api-keys
Create an API key (shown once)
Request body:CreateAPIKeyRequest
Responses
201CreateddefaultError
DELETE /api/v1/account/api-keys/{id}
Revoke an API key
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Responses
204No ContentdefaultError
GET /api/v1/account/appeals
The caller's appeals
Responses
200OKdefaultError
POST /api/v1/account/appeals
Appeal against withheld or clawed-back credits
Request body:AppealRequest
Responses
201CreateddefaultError
GET /api/v1/account/community/profile
Thanks page settings
Responses
200OKdefaultError
PUT /api/v1/account/community/profile
Change thanks page settings
Request body:CommunityProfile
Responses
200OKdefaultError
GET /api/v1/account/credits
Test credit balance and ledger, newest first
Parameters
| Name | In | Required | Description |
|---|---|---|---|
limit | query | no | |
cursor | query | no | next_cursor of the previous page |
kind | query | no | |
status | query | no |
Responses
200OKdefaultError
GET /api/v1/account/credits/export
Export the whole test credit ledger as CSV (UTF-8 with BOM)
Parameters
| Name | In | Required | Description |
|---|---|---|---|
kind | query | no | |
status | query | no |
Responses
200CSV filedefaultError
POST /api/v1/account/delete
Delete the account (personal data is removed, tests become anonymous)
Request body:ConfirmRequest
Responses
204No ContentdefaultError
POST /api/v1/account/email/change
Ask to change the email address; a confirmation link goes to the new one
Request body:ChangeEmailRequest
Responses
202AccepteddefaultError
POST /api/v1/account/email/confirm
Confirm the new email address with the emailed token
Request body:TokenRequest
Responses
204No ContentdefaultError
GET /api/v1/account/identities
Sign-in methods: password, linked Google account
Responses
200OKdefaultError
DELETE /api/v1/account/identities/google
Unlink the Google account (only with a password set)
Request body:ConfirmRequest
Responses
204No ContentdefaultError
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
200OKdefaultError
POST /api/v1/account/mfa/disable
Turn two-step verification off
Responses
204No ContentdefaultError
POST /api/v1/account/mfa/enable
Turn two-step verification on and get the recovery codes
Request body:ConfirmRequest
Responses
200OKdefaultError
POST /api/v1/account/node-tokens
Get the install token of a community node
Request body:NodeTokenRequest
Responses
201CreateddefaultError
GET /api/v1/account/nodes
The caller's nodes: status, reliability, scarcity, credits (about three hours behind), limits
Responses
200OKdefaultError
PATCH /api/v1/account/nodes/{id}
Pause or resume a node, or change its limits
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:UpdateNodeRequest
Responses
200OKdefaultError
POST /api/v1/account/passkeys/register/begin
Start adding a passkey
Request body:ConfirmRequest
Responses
200OKdefaultError
POST /api/v1/account/passkeys/register/finish
Finish adding a passkey
Request body:PasskeyFinishRequest
Responses
201CreateddefaultError
PATCH /api/v1/account/passkeys/{id}
Rename a passkey
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:PasskeyRenameRequest
Responses
200OKdefaultError
DELETE /api/v1/account/passkeys/{id}
Delete a passkey
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:ConfirmRequest
Responses
204No ContentdefaultError
POST /api/v1/account/password
Change the password
Request body:ChangePasswordRequest
Responses
204No ContentdefaultError
POST /api/v1/account/recovery-codes/regenerate
Replace the recovery codes
Responses
200OKdefaultError
GET /api/v1/account/referral
Invitation link
Responses
200OKdefaultError
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
204No ContentdefaultError
GET /api/v1/account/security
Passkeys, two-step verification and recovery code status
Responses
200OKdefaultError
GET /api/v1/account/sessions
Recent sign-ins
Responses
200OKdefaultError
GET /api/v1/alerts
List the alerts of the caller's monitors, newest first
Parameters
| Name | In | Required | Description |
|---|---|---|---|
monitor_id | query | no | |
state | query | no | Only alerts in this state; absent: both |
cursor | query | no | |
limit | query | no | Page size; 0 or absent: 50, at most 200 |
Responses
200OKdefaultError
GET /api/v1/announcements
Site notices in force
Responses
200OKdefaultError
POST /api/v1/auth/login
Sign in with email and password
Request body:LoginRequest
Responses
200OKdefaultError
POST /api/v1/auth/logout
Sign out
Responses
204No ContentdefaultError
POST /api/v1/auth/mfa/begin
Start the passkey step of signing in
Responses
200OKdefaultError
POST /api/v1/auth/mfa/finish
Finish the passkey step of signing in
Request body:MFAFinishRequest
Responses
200OKdefaultError
POST /api/v1/auth/mfa/recovery
Finish signing in with a recovery code
Request body:RecoveryLoginRequest
Responses
200OKdefaultError
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
| Name | In | Required | Description |
|---|---|---|---|
code | query | no | Authorization code from Google |
state | query | no | |
error | query | no | Set by Google when the user cancelled |
Responses
302FounddefaultError
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
200OKdefaultError
POST /api/v1/auth/password/forgot
Email a password reset link
Request body:ForgotPasswordRequest
Responses
202AccepteddefaultError
POST /api/v1/auth/password/reset
Set a new password with the emailed token
Request body:ResetPasswordRequest
Responses
204No ContentdefaultError
POST /api/v1/auth/reauth/begin
Start a passkey re-verification for sensitive actions
Responses
200OKdefaultError
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
200OKdefaultError
POST /api/v1/auth/reauth/email/finish
Finish the emailed re-verification (valid for 5 minutes)
Request body:ReauthCodeRequest
Responses
200OKdefaultError
POST /api/v1/auth/reauth/finish
Finish the passkey re-verification (valid for 5 minutes)
Request body:MFAFinishRequest
Responses
200OKdefaultError
POST /api/v1/auth/register
Create an account and send the verification email
Request body:RegisterRequest
Responses
202AccepteddefaultError
POST /api/v1/auth/resend-verification
Send the verification email again
Responses
202AccepteddefaultError
POST /api/v1/auth/verify-email
Confirm the email address with the emailed token
Request body:TokenRequest
Responses
204No ContentdefaultError
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
201CreateddefaultError
POST /api/v1/ban-appeals/link
Mail a banned account a new appeal link (always 204)
Request body:AppealLinkRequest
Responses
204No ContentdefaultError
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
200OKdefaultError
GET /api/v1/channels
List notification channels
Responses
200OKdefaultError
POST /api/v1/channels
Add a notification channel
Request body:ChannelRequest
Responses
201CreateddefaultError
PATCH /api/v1/channels/{id}
Change a notification channel
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:ChannelUpdate
Responses
200OKdefaultError
DELETE /api/v1/channels/{id}
Delete a notification channel
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Responses
204No ContentdefaultError
POST /api/v1/channels/{id}/test
Send a test notification
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Responses
200OKdefaultError
POST /api/v1/channels/{id}/verification
Email a new verification code to an email channel
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Responses
202AccepteddefaultError
POST /api/v1/channels/{id}/verify
Verify an email channel with its code
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:ChannelVerifyRequest
Responses
200OKdefaultError
GET /api/v1/community/gaps
Gap heat map: scarcity coefficient of every location; top lists the ten scarcest
Responses
200OKdefaultError
GET /api/v1/community/gaps/{key}/history
Hourly scarcity coefficient of one location over 30 days
Parameters
| Name | In | Required | Description |
|---|---|---|---|
key | path | yes | Location key, URL-encoded (CN-GD%7Ctelecom) |
Responses
200OKdefaultError
GET /api/v1/community/reports
Months with a community report
Responses
200OKdefaultError
GET /api/v1/community/reports/{month}
Monthly community report
Parameters
| Name | In | Required | Description |
|---|---|---|---|
month | path | yes |
Responses
200OKdefaultError
GET /api/v1/community/thanks
Thanks page
Responses
200OKdefaultError
GET /api/v1/monitors
List the caller's monitors and free allowance
Parameters
| Name | In | Required | Description |
|---|---|---|---|
cursor | query | no | |
limit | query | no |
Responses
200OKdefaultError
POST /api/v1/monitors
Create a monitor
Request body:MonitorRequest
Responses
201CreateddefaultError
GET /api/v1/monitors/{id}
Get a monitor
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Responses
200OKdefaultError
PUT /api/v1/monitors/{id}
Replace a monitor's definition (enabled absent keeps the current value; true also resumes a paused monitor)
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:MonitorRequest
Responses
200OKdefaultError
DELETE /api/v1/monitors/{id}
Delete a monitor
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Responses
204No ContentdefaultError
POST /api/v1/monitors/{id}/maintenance-windows
Add a maintenance window (no alerts during it)
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:MaintenanceWindowRequest
Responses
201CreateddefaultError
DELETE /api/v1/monitors/{id}/maintenance-windows/{window_id}
Delete a maintenance window
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes | |
window_id | path | yes |
Responses
204No ContentdefaultError
GET /api/v1/monitors/{id}/runs
List a monitor's runs, newest first (8 days)
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes | |
before | query | no | next_cursor of the previous page |
limit | query | no |
Responses
200OKdefaultError
GET /api/v1/monitors/{id}/stats
Availability and latency chart of a monitor
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes | |
from | query | no | RFC 3339; default 24 hours before to |
to | query | no | RFC 3339; default now |
Responses
200OKdefaultError
GET /api/v1/nodes
List public nodes (no IP addresses)
Responses
200OKdefaultError
POST /api/v1/optout
Ask for a site not to be tested
Request body:OptOutRequest
Responses
201CreateddefaultError
POST /api/v1/optout/verify
Check the ownership proof of an opt-out request
Request body:OptOutVerify
Responses
200OKdefaultError
GET /api/v1/site
Public site settings for the web UI (default theme, Turnstile site key)
Responses
200OKdefaultError
GET /api/v1/tests
List the caller's tests (history)
Parameters
| Name | In | Required | Description |
|---|---|---|---|
kind | query | no | |
target | query | no | Part of a target |
from | query | no | Created at or after (RFC 3339) |
to | query | no | Created before (RFC 3339) |
cursor | query | no | next_cursor of the previous page |
limit | query | no | 0 = 20 |
monitor_id | query | no | Only the runs of this monitor; without it monitor runs are not listed |
Responses
200OKdefaultError
POST /api/v1/tests
Start a test
Request body:CreateTestRequest
Responses
201CreateddefaultError
GET /api/v1/tests/{id}
Get a test and its results
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes | |
offset | query | no | Results to skip |
limit | query | no | Results per page; 0 = 1000 |
Responses
200OKdefaultError
PATCH /api/v1/tests/{id}
Share or unshare a test
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Request body:UpdateTestRequest
Responses
200OKdefaultError
POST /api/v1/tests/{id}/cancel
Stop a running test
Parameters
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes |
Responses
204No ContentdefaultError
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
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes | |
Last-Event-ID | header | no | Accepted on reconnect; every connection replays all persisted results, de-duplicate them by task_id |
Responses
200OKdefaultError
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
| Name | In | Required | Description |
|---|---|---|---|
id | path | yes | |
format | query | no | |
lang | query | no | Language of node names (CSV) |
Responses
200CSV (UTF-8 with BOM, streamed) or JSON (the test detail with every result; at most 20000 results, else export_too_large)defaultError
GET /api/v1/usage
Quota usage of the caller: two windows and, for members, test credits
Responses
200OKdefaultError