API

서버, 잔액, 키, 고객지원 문의를 REST API로 관리할 수 있습니다. 사람과 AI를 위한 설명: OpenAPI와 llms.txt.

시작하기

Address: https://0x.cloud/v1. Format: JSON. Time: UTC. Amounts: US dollars. Errors come as {"error": {"code": "...", "message": "..."}}.

You connect to the server through the web console in the dashboard. An administrator tops up the balance when you contact support.

키

콘솔의 ‘API 및 MCP’ 메뉴에서 키를 생성하세요. 키에는 권한 범위, 분당 요청 한도, 유효 기간이 있습니다. 키는 한 번만 표시됩니다.

curl https://0x.cloud/v1/servers \
  -H "Authorization: Bearer $TOKEN"

생성 없이 가격 확인

서버 생성 요청에 "dry_run": true를 추가하면 정확한 가격, 만료 시각 pricing_expires_at, 불투명한 pricing_fingerprint를 돌려줍니다. 아무것도 생성되거나 과금되지 않습니다. 견적은 10분간 유효합니다. 소유자에게 보여 주고, 지문은 바꾸거나 직접 만들지 마세요.

curl https://0x.cloud/v1/servers \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"plan": "s1-2", "billing_cycle": "hourly", "dry_run": true}'

→ {"dry_run": true, "currency": "USD", "plan": "s1-2", "billing_cycle": "hourly", "monthly_usd": "7.99", "hourly_usd": "0.010945", "total_usd": "0.00", "pricing_expires_at": "…", "pricing_fingerprint": "…"}

서버 생성

curl https://0x.cloud/v1/servers \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"plan": "s1-2", "os_template": "Ubuntu 24.04", "billing_cycle": "hourly", "ttl_hours": 6, "pricing_fingerprint": ""}'

→ {"data": {"id": "srv_8f3k2m9x4qpz7w1c", "status": "provisioning", ...}, "username": "root", "password": "..."}

Create only after the owner explicitly agreed to the price. On 409 price_changed nothing was created or charged: show error.quote, get a new yes and use the new quote with a new Idempotency-Key; never repeat the order automatically. After an unknown network outcome you may repeat only the same body with the same fingerprint and key while the quote is valid. A plan with is_auto_provision: false is issued by a person: get the same quote first, after an explicit yes send POST /v1/server-requests with accept_manual_issue: true and its pricing_fingerprint; this is a request, the server is issued by hand once capacity is confirmed. The root password is shown once. Wait for the installation: GET /v1/servers/srv_8f3k2m9x4qpz7w1c/wait?timeout=25 – repeat while the answer has "ready": false. With ttl_hours the server deletes itself and the unused rest returns to the balance. A deleted server can be brought back within 24 hours: POST /v1/servers/srv_8f3k2m9x4qpz7w1c/restore.

에이전트 접근

A human creates the account on the website. They issue the agent a key in the dashboard, under “API”, and set its permissions, spend limit and expiry themselves. MCP clients that support sign-in connect without a key. A new account’s balance is $0.00: top it up through support before the first server.

GET  /v1/overview                                 → key, balance, servers in one answer
GET  /v1/balance                                  → what is left on the balance
POST /v1/servers  {"plan": "s1-2", "dry_run": true} → the price without creating

MCP

MCP 서버 주소: https://0x.cloud/v1/mcp (Streamable HTTP). 인증은 같은 API 키를 Authorization: Bearer 헤더로 보냅니다. 도구: 요금제와 이미지, 잔액, 서버 목록, 생성, 수동 발급 신청, 전원, 비밀번호 재설정, 재설치, 삭제와 복원, 고객지원 문의. 삭제와 재설치에는 명시적인 확인 confirm: true가 필요합니다.

curl https://0x.cloud/v1/mcp \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'

웹훅과 재시도

웹훅은 서버, 잔액, 문의에 관한 이벤트를 지정한 https 주소로 보냅니다. 모든 이벤트에는 서명이 있습니다. 헤더 X-0x-Signature: t=<time>,v1=<signature>의 서명은 웹훅 시크릿으로 t.body 문자열을 HMAC-SHA256한 값입니다. 전송에 실패하면 최대 여섯 번 재시도합니다.

curl https://0x.cloud/v1/webhooks \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/hooks/0x", "events": ["server.created", "server.deleted"]}'

The Idempotency-Key header makes a repeated POST, PATCH or DELETE safe: the same key with the same body within 24 hours returns the stored answer instead of doing the action twice. Use the API with curl or any HTTP client.

전체 메서드

분류메서드
서버GET/POST /servers · GET/PATCH/DELETE /servers/{id} · POST /servers/{id}/restore · POST /servers/{id}/freeze · POST /servers/{id}/unfreeze
작업POST /servers/{id}/power · /install · /password-reset · /resize · GET /servers/{id}/state · /wait · /metrics · /history
카탈로그GET /plans · /images · /locations · /public/pricing
결제GET /balance · /transactions · /topups · /payment-methods · /deposit-addresses · /withdrawals
계정GET /overview · GET /account · /api-keys · /ssh-keys · /referrals
고객지원GET/POST /tickets · GET /tickets/{id} · POST /tickets/{id}/messages
연동GET/POST /webhooks · POST /webhooks/{id}/test · GET /webhooks/{id}/deliveries · POST /mcp
API에 없는 기능command-line tool and SDK