Skip to content

介面參考 ​

本頁由 OpenAPI 規範自動產生,請勿手工修改。規範檔案: openapi.yaml

OpenAPI 3.1.0 · Cloud.me Test API 1.0.0

GET /api/v1/account ​

The signed-in user's profile

回應

  • 200 OK
  • default Error

PATCH /api/v1/account ​

Change language, time zone, display name or theme

請求體:UpdateAccountRequest

回應

  • 200 OK
  • default Error

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

List the API keys

回應

  • 200 OK
  • default Error

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

Create an API key (shown once)

請求體:CreateAPIKeyRequest

回應

  • 201 Created
  • default Error

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

Revoke an API key

參數

名稱位置必填說明
idpath是

回應

  • 204 No Content
  • default Error

GET /api/v1/account/appeals ​

The caller's appeals

回應

  • 200 OK
  • default Error

POST /api/v1/account/appeals ​

Appeal against withheld or clawed-back credits

請求體:AppealRequest

回應

  • 201 Created
  • default Error

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

Thanks page settings

回應

  • 200 OK
  • default Error

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

Change thanks page settings

請求體:CommunityProfile

回應

  • 200 OK
  • default Error

GET /api/v1/account/credits ​

Test credit balance and ledger, newest first

參數

名稱位置必填說明
limitquery否
cursorquery否next_cursor of the previous page
kindquery否
statusquery否

回應

  • 200 OK
  • default Error

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

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

參數

名稱位置必填說明
kindquery否
statusquery否

回應

  • 200 CSV file
  • default Error

POST /api/v1/account/delete ​

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

請求體:ConfirmRequest

回應

  • 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

請求體:ChangeEmailRequest

回應

  • 202 Accepted
  • default Error

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

Confirm the new email address with the emailed token

請求體:TokenRequest

回應

  • 204 No Content
  • default Error

GET /api/v1/account/identities ​

Sign-in methods: password, linked Google account

回應

  • 200 OK
  • default Error

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

Unlink the Google account (only with a password set)

請求體:ConfirmRequest

回應

  • 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.

請求體:GoogleLinkStartRequest

回應

  • 200 OK
  • default Error

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

Turn two-step verification off

回應

  • 204 No Content
  • default Error

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

Turn two-step verification on and get the recovery codes

請求體:ConfirmRequest

回應

  • 200 OK
  • default Error

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

Get the install token of a community node

請求體:NodeTokenRequest

回應

  • 201 Created
  • default Error

GET /api/v1/account/nodes ​

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

回應

  • 200 OK
  • default Error

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

Pause or resume a node, or change its limits

參數

名稱位置必填說明
idpath是

請求體:UpdateNodeRequest

回應

  • 200 OK
  • default Error

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

Start adding a passkey

請求體:ConfirmRequest

回應

  • 200 OK
  • default Error

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

Finish adding a passkey

請求體:PasskeyFinishRequest

回應

  • 201 Created
  • default Error

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

Rename a passkey

參數

名稱位置必填說明
idpath是

請求體:PasskeyRenameRequest

回應

  • 200 OK
  • default Error

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

Delete a passkey

參數

名稱位置必填說明
idpath是

請求體:ConfirmRequest

回應

  • 204 No Content
  • default Error

POST /api/v1/account/password ​

Change the password

請求體:ChangePasswordRequest

回應

  • 204 No Content
  • default Error

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

Replace the recovery codes

回應

  • 200 OK
  • default Error

GET /api/v1/account/referral ​

Invitation link

回應

  • 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)

請求體:ReferralClaim

回應

  • 204 No Content
  • default Error

GET /api/v1/account/security ​

Passkeys, two-step verification and recovery code status

回應

  • 200 OK
  • default Error

GET /api/v1/account/sessions ​

Recent sign-ins

回應

  • 200 OK
  • default Error

GET /api/v1/alerts ​

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

參數

名稱位置必填說明
monitor_idquery否
statequery否Only alerts in this state; absent: both
cursorquery否
limitquery否Page size; 0 or absent: 50, at most 200

回應

  • 200 OK
  • default Error

GET /api/v1/announcements ​

Site notices in force

回應

  • 200 OK
  • default Error

POST /api/v1/auth/login ​

Sign in with email and password

請求體:LoginRequest

回應

  • 200 OK
  • default Error

POST /api/v1/auth/logout ​

Sign out

回應

  • 204 No Content
  • default Error

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

Start the passkey step of signing in

回應

  • 200 OK
  • default Error

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

Finish the passkey step of signing in

請求體:MFAFinishRequest

回應

  • 200 OK
  • default Error

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

Finish signing in with a recovery code

請求體:RecoveryLoginRequest

回應

  • 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.

參數

名稱位置必填說明
codequery否Authorization code from Google
statequery否
errorquery否Set by Google when the user cancelled

回應

  • 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.

請求體:GoogleLoginStartRequest

回應

  • 200 OK
  • default Error

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

Email a password reset link

請求體:ForgotPasswordRequest

回應

  • 202 Accepted
  • default Error

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

Set a new password with the emailed token

請求體:ResetPasswordRequest

回應

  • 204 No Content
  • default Error

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

Start a passkey re-verification for sensitive actions

回應

  • 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.

回應

  • 200 OK
  • default Error

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

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

請求體:ReauthCodeRequest

回應

  • 200 OK
  • default Error

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

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

請求體:MFAFinishRequest

回應

  • 200 OK
  • default Error

POST /api/v1/auth/register ​

Create an account and send the verification email

請求體:RegisterRequest

回應

  • 202 Accepted
  • default Error

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

Send the verification email again

回應

  • 202 Accepted
  • default Error

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

Confirm the email address with the emailed token

請求體:TokenRequest

回應

  • 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)

請求體:BanAppealRequest

回應

  • 201 Created
  • default Error

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

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

請求體:AppealLinkRequest

回應

  • 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)

請求體:BanAppealStatusRequest

回應

  • 200 OK
  • default Error

GET /api/v1/channels ​

List notification channels

回應

  • 200 OK
  • default Error

POST /api/v1/channels ​

Add a notification channel

請求體:ChannelRequest

回應

  • 201 Created
  • default Error

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

Change a notification channel

參數

名稱位置必填說明
idpath是

請求體:ChannelUpdate

回應

  • 200 OK
  • default Error

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

Delete a notification channel

參數

名稱位置必填說明
idpath是

回應

  • 204 No Content
  • default Error

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

Send a test notification

參數

名稱位置必填說明
idpath是

回應

  • 200 OK
  • default Error

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

Email a new verification code to an email channel

參數

名稱位置必填說明
idpath是

回應

  • 202 Accepted
  • default Error

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

Verify an email channel with its code

參數

名稱位置必填說明
idpath是

請求體:ChannelVerifyRequest

回應

  • 200 OK
  • default Error

GET /api/v1/community/gaps ​

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

回應

  • 200 OK
  • default Error

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

Hourly scarcity coefficient of one location over 30 days

參數

名稱位置必填說明
keypath是Location key, URL-encoded (CN-GD%7Ctelecom)

回應

  • 200 OK
  • default Error

GET /api/v1/community/reports ​

Months with a community report

回應

  • 200 OK
  • default Error

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

Monthly community report

參數

名稱位置必填說明
monthpath是

回應

  • 200 OK
  • default Error

GET /api/v1/community/thanks ​

Thanks page

回應

  • 200 OK
  • default Error

GET /api/v1/monitors ​

List the caller's monitors and free allowance

參數

名稱位置必填說明
cursorquery否
limitquery否

回應

  • 200 OK
  • default Error

POST /api/v1/monitors ​

Create a monitor

請求體:MonitorRequest

回應

  • 201 Created
  • default Error

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

Get a monitor

參數

名稱位置必填說明
idpath是

回應

  • 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)

參數

名稱位置必填說明
idpath是

請求體:MonitorRequest

回應

  • 200 OK
  • default Error

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

Delete a monitor

參數

名稱位置必填說明
idpath是

回應

  • 204 No Content
  • default Error

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

Add a maintenance window (no alerts during it)

參數

名稱位置必填說明
idpath是

請求體:MaintenanceWindowRequest

回應

  • 201 Created
  • default Error

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

Delete a maintenance window

參數

名稱位置必填說明
idpath是
window_idpath是

回應

  • 204 No Content
  • default Error

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

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

參數

名稱位置必填說明
idpath是
beforequery否next_cursor of the previous page
limitquery否

回應

  • 200 OK
  • default Error

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

Availability and latency chart of a monitor

參數

名稱位置必填說明
idpath是
fromquery否RFC 3339; default 24 hours before to
toquery否RFC 3339; default now

回應

  • 200 OK
  • default Error

GET /api/v1/nodes ​

List public nodes (no IP addresses)

回應

  • 200 OK
  • default Error

POST /api/v1/optout ​

Ask for a site not to be tested

請求體:OptOutRequest

回應

  • 201 Created
  • default Error

POST /api/v1/optout/verify ​

Check the ownership proof of an opt-out request

請求體:OptOutVerify

回應

  • 200 OK
  • default Error

GET /api/v1/site ​

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

回應

  • 200 OK
  • default Error

GET /api/v1/tests ​

List the caller's tests (history)

參數

名稱位置必填說明
kindquery否
targetquery否Part of a target
fromquery否Created at or after (RFC 3339)
toquery否Created before (RFC 3339)
cursorquery否next_cursor of the previous page
limitquery否0 = 20
monitor_idquery否Only the runs of this monitor; without it monitor runs are not listed

回應

  • 200 OK
  • default Error

POST /api/v1/tests ​

Start a test

請求體:CreateTestRequest

回應

  • 201 Created
  • default Error

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

Get a test and its results

參數

名稱位置必填說明
idpath是
offsetquery否Results to skip
limitquery否Results per page; 0 = 1000

回應

  • 200 OK
  • default Error

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

Share or unshare a test

參數

名稱位置必填說明
idpath是

請求體:UpdateTestRequest

回應

  • 200 OK
  • default Error

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

Stop a running test

參數

名稱位置必填說明
idpath是

回應

  • 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.

參數

名稱位置必填說明
idpath是
Last-Event-IDheader否Accepted on reconnect; every connection replays all persisted results, de-duplicate them by task_id

回應

  • 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).

參數

名稱位置必填說明
idpath是
formatquery否
langquery否Language of node names (CSV)

回應

  • 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

回應

  • 200 OK
  • default Error