# Clouduxe API > The Clouduxe API lets customers order, manage and automate VPS, Dedicated servers and the DDoS-protected proxy without the panel. JSON over HTTPS at https://api.clouduxe.com/v1, with bearer API tokens that start with cxk_live_. Every page below is also served as HTML at docs.clouduxe.com/api. The whole API documentation in one file: https://docs.clouduxe.com/llms-full.txt. The OpenAPI contract: https://docs.clouduxe.com/api/openapi.yaml. ## Guides - [Overview and quickstart](https://docs.clouduxe.com/api/md/overview.md): What the Clouduxe API does and the rules every request follows, then your first call and a VPS restart in three steps. - [Authentication and scopes](https://docs.clouduxe.com/api/md/authentication.md): How a request proves who sent it, how to make an API token in the panel, and which scope each operation needs. - [Errors](https://docs.clouduxe.com/api/md/errors.md): The one shape every error takes, how to branch on it, and every error code the API can answer with what to do about each. - [Pagination](https://docs.clouduxe.com/api/md/pagination.md): How lists come back one page at a time, how to follow the cursor to the end, and what makes a cursor stop working. - [Idempotency](https://docs.clouduxe.com/api/md/idempotency.md): Why every write carries an Idempotency-Key, what happens when you send one again, and how secrets are kept out of a replay. - [Rate limits](https://docs.clouduxe.com/api/md/rate-limits.md): How many requests a token and an account can make, the headers that say how much is left, and what to do with a 429. - [Long-running actions](https://docs.clouduxe.com/api/md/actions.md): Restarts, reinstalls, plan changes and new servers answer an action at once; how to follow one to its final state, and how to read a password once. - [Webhooks](https://docs.clouduxe.com/api/md/webhooks.md): Have Clouduxe call your endpoint when something happens, check every delivery's signature before you trust it, and handle retries and repeats. - [Versioning and changelog](https://docs.clouduxe.com/api/md/changelog.md): How the API keeps your code working as it grows, what counts as a breaking change, and every change to the API so far. - [Keeping tokens safe](https://docs.clouduxe.com/api/md/token-security.md): How to store, scope and limit API tokens and webhook secrets, and what to do the moment one leaks. - [Build with AI](https://docs.clouduxe.com/api/md/build-with-ai.md): Give an AI assistant the Clouduxe API docs in one link, and start from ready-made prompts for ordering, syncing and webhooks. ## Reference - [API reference](https://docs.clouduxe.com/api/md/reference.md): Every resource and endpoint, generated from the API contract. - [Account reference](https://docs.clouduxe.com/api/md/reference/account.md): Your account. - [Catalogue reference](https://docs.clouduxe.com/api/md/reference/catalogue.md): Plans at your price, and regions. - [Orders reference](https://docs.clouduxe.com/api/md/reference/orders.md): Ordering services, paid from wallet credit. - [Services reference](https://docs.clouduxe.com/api/md/reference/services.md): Your VPS, Dedicated and proxy services. - [Server actions reference](https://docs.clouduxe.com/api/md/reference/server-actions.md): Power, console, reinstall and password reset, and the actions they start. - [Lifecycle reference](https://docs.clouduxe.com/api/md/reference/lifecycle.md): Plan changes, cancellation and termination. - [Firewall reference](https://docs.clouduxe.com/api/md/reference/firewall.md): A server's Shield firewall. - [SSH keys reference](https://docs.clouduxe.com/api/md/reference/ssh-keys.md): Your SSH key library. - [Billing reference](https://docs.clouduxe.com/api/md/reference/billing.md): Invoices and wallet credit. - [Support reference](https://docs.clouduxe.com/api/md/reference/support.md): Tickets and attachments. - [Webhooks reference](https://docs.clouduxe.com/api/md/reference/webhooks.md): Webhook endpoints and events. - [API tokens reference](https://docs.clouduxe.com/api/md/reference/api-tokens.md): Tokens: list and revoke. Tokens are made in the panel, at /account/api-tokens. - [Protection reference](https://docs.clouduxe.com/api/md/reference/protection.md): A protected server's DDoS protection, read-only: status, traffic now, and its attack history. ## Operations - [Get your account (GET /account)](https://docs.clouduxe.com/api/md/reference/account/get-account.md): Use this to read the account this token belongs to: its name, billing country and currency, and whether API ordering and service emails are on. - [List plans (GET /plans)](https://docs.clouduxe.com/api/md/reference/catalogue/list-plans.md): Use this to show your catalogue or pick a plan to order. - [Get a plan (GET /plans/{planId})](https://docs.clouduxe.com/api/md/reference/catalogue/get-plan.md): Use this before ordering: orderForm lists the required fields, the OS images, the option groups and, for a proxy, the protection profiles. - [List regions (GET /regions)](https://docs.clouduxe.com/api/md/reference/catalogue/list-regions.md): Use this to show where plans run. - [Preview an order (POST /orders/preview)](https://docs.clouduxe.com/api/md/reference/orders/preview-order.md): Use this to show a customer what an order costs before placing it, at this account's price, and whether wallet credit covers it. - [List orders (GET /orders)](https://docs.clouduxe.com/api/md/reference/orders/list-orders.md): Use this to find orders, newest first. - [Create an order (POST /orders)](https://docs.clouduxe.com/api/md/reference/orders/create-order.md): Use this to buy one to ten services in one order. - [Get an order (GET /orders/{orderId})](https://docs.clouduxe.com/api/md/reference/orders/get-order.md): Use this to check an order's status and the services it made. - [Update an order (PATCH /orders/{orderId})](https://docs.clouduxe.com/api/md/reference/orders/update-order.md): Use this to keep your own bookkeeping on an order. - [List services (GET /services)](https://docs.clouduxe.com/api/md/reference/services/list-services.md): Use this to find services, newest first: filter by type, status, region, reference or metadata. - [Get a service (GET /services/{serviceId})](https://docs.clouduxe.com/api/md/reference/services/get-service.md): Use this to read a service's status, billing, addresses, power state and resources. - [Update a service (PATCH /services/{serviceId})](https://docs.clouduxe.com/api/md/reference/services/update-service.md): Use this for your own bookkeeping on a service. - [List a server's OS images (GET /services/{serviceId}/images)](https://docs.clouduxe.com/api/md/reference/services/list-service-images.md): Use this before reinstallService to pick an imageId. - [Get a service's traffic (GET /services/{serviceId}/usage)](https://docs.clouduxe.com/api/md/reference/services/get-service-usage.md): Use this to read traffic used in the current traffic period against the allowance. - [List plan change options (GET /services/{serviceId}/plan-options)](https://docs.clouduxe.com/api/md/reference/services/list-service-plan-options.md): Use this before changeServicePlan: each option has its price per cycle and what changing now costs. - [Run a power action (POST /services/{serviceId}/power)](https://docs.clouduxe.com/api/md/reference/server-actions/power-service.md): Use this to change a VPS's power state. - [Reinstall a server (POST /services/{serviceId}/reinstall)](https://docs.clouduxe.com/api/md/reference/server-actions/reinstall-service.md): Use this to rebuild a VPS with a new OS, hostname and, for owner tokens, your SSH keys. - [Reset a server's password (POST /services/{serviceId}/reset-password)](https://docs.clouduxe.com/api/md/reference/server-actions/reset-service-password.md): Use this when root (or Administrator on Windows) access is lost. - [List a service's actions (GET /services/{serviceId}/actions)](https://docs.clouduxe.com/api/md/reference/server-actions/list-service-actions.md): Use this to see what ran on a service, newest first. - [Get an action (GET /actions/{actionId})](https://docs.clouduxe.com/api/md/reference/server-actions/get-action.md): Use this to poll a long-running change until its status is succeeded, failed or unknown. - [Retrieve an action's secret (GET /actions/{actionId}/secret)](https://docs.clouduxe.com/api/md/reference/server-actions/get-action-secret.md): Use this after an action with secretAvailable true succeeds: a provision or reinstall that set a password, or a password reset with delivery api. - [Delete an action's secret (DELETE /actions/{actionId}/secret)](https://docs.clouduxe.com/api/md/reference/server-actions/delete-action-secret.md): Use this as soon as you have stored the secret from getActionSecret, so it can never be read again. - [Change a service's plan (POST /services/{serviceId}/plan-change)](https://docs.clouduxe.com/api/md/reference/lifecycle/change-service-plan.md): Use this to upgrade a service. - [Set cancellation at period end (PUT /services/{serviceId}/cancellation)](https://docs.clouduxe.com/api/md/reference/lifecycle/set-service-cancellation.md): Use this to stop a service renewing: it keeps running until its paidThrough day, then ends. - [Terminate a service (POST /services/{serviceId}/terminate)](https://docs.clouduxe.com/api/md/reference/lifecycle/terminate-service.md): Use this to end a service immediately, for example when your customer leaves. - [Get a firewall (GET /services/{serviceId}/firewall)](https://docs.clouduxe.com/api/md/reference/firewall/get-firewall.md): Use this to read a VPS's or Dedicated server's Shield firewall: protection on or off, the default policy, port rules, blocked and trusted addresses. - [Turn protection on or off (PUT /services/{serviceId}/firewall/protection)](https://docs.clouduxe.com/api/md/reference/firewall/set-firewall-protection.md): Use this to switch Shield filtering for the server on or off. - [Set the default policy (PUT /services/{serviceId}/firewall/default-policy)](https://docs.clouduxe.com/api/md/reference/firewall/set-firewall-default-policy.md): Use this to allow or deny traffic to ports without an enabled rule. - [Add a firewall rule (POST /services/{serviceId}/firewall/rules)](https://docs.clouduxe.com/api/md/reference/firewall/create-firewall-rule.md): Use this to open and protect a port range with a protection profile. - [Update a firewall rule (PATCH /services/{serviceId}/firewall/rules/{ruleId})](https://docs.clouduxe.com/api/md/reference/firewall/update-firewall-rule.md): Use this to change a rule's ports, profile, limits or checks, or to switch it off. - [Delete a firewall rule (DELETE /services/{serviceId}/firewall/rules/{ruleId})](https://docs.clouduxe.com/api/md/reference/firewall/delete-firewall-rule.md): Use this to close a port range. - [Block an address (POST /services/{serviceId}/firewall/blocked-ips)](https://docs.clouduxe.com/api/md/reference/firewall/block-firewall-ip.md): Use this to drop all traffic from one IPv4 address, for a time or for good. - [Unblock an address (DELETE /services/{serviceId}/firewall/blocked-ips/{ip})](https://docs.clouduxe.com/api/md/reference/firewall/unblock-firewall-ip.md): Use this to lift a block. - [Trust an address (POST /services/{serviceId}/firewall/trusted-ips)](https://docs.clouduxe.com/api/md/reference/firewall/trust-firewall-ip.md): Use this so traffic from one IPv4 address, such as your monitoring, is never filtered. - [Untrust an address (DELETE /services/{serviceId}/firewall/trusted-ips/{ip})](https://docs.clouduxe.com/api/md/reference/firewall/untrust-firewall-ip.md): Use this to remove an address from the trusted list. - [Apply a firewall preset (POST /services/{serviceId}/firewall/presets)](https://docs.clouduxe.com/api/md/reference/firewall/apply-firewall-preset.md): Use this to add a ready-made rule set for a common server. - [List firewall presets (GET /firewall-presets)](https://docs.clouduxe.com/api/md/reference/firewall/list-firewall-presets.md): Use this to pick a presetId for applyFirewallPreset. - [List SSH keys (GET /ssh-keys)](https://docs.clouduxe.com/api/md/reference/ssh-keys/list-ssh-keys.md): Use this to find key ids for createOrder and reinstallService. - [Add an SSH key (POST /ssh-keys)](https://docs.clouduxe.com/api/md/reference/ssh-keys/create-ssh-key.md): Use this to add a public key to your library, then pass its id when ordering or reinstalling. - [Get an SSH key (GET /ssh-keys/{sshKeyId})](https://docs.clouduxe.com/api/md/reference/ssh-keys/get-ssh-key.md): Use this to read one key's name and fingerprint. - [Update an SSH key (PATCH /ssh-keys/{sshKeyId})](https://docs.clouduxe.com/api/md/reference/ssh-keys/update-ssh-key.md): Use this for your own bookkeeping on a key. - [Delete an SSH key (DELETE /ssh-keys/{sshKeyId})](https://docs.clouduxe.com/api/md/reference/ssh-keys/delete-ssh-key.md): Use this to remove a key from your library. - [List invoices (GET /invoices)](https://docs.clouduxe.com/api/md/reference/billing/list-invoices.md): Use this to reconcile your bills, newest first. - [Get an invoice (GET /invoices/{invoiceId})](https://docs.clouduxe.com/api/md/reference/billing/get-invoice.md): Use this to read an invoice's lines, tax and amounts. - [Get an invoice PDF link (GET /invoices/{invoiceId}/pdf)](https://docs.clouduxe.com/api/md/reference/billing/get-invoice-pdf.md): Use this to download the tax invoice. - [Get your wallet (GET /wallet)](https://docs.clouduxe.com/api/md/reference/billing/get-wallet.md): Use this to check credit before ordering. - [List wallet transactions (GET /wallet/transactions)](https://docs.clouduxe.com/api/md/reference/billing/list-wallet-transactions.md): Use this to see what added or spent credit, newest first. - [List support departments (GET /support/departments)](https://docs.clouduxe.com/api/md/reference/support/list-support-departments.md): Use this to pick a departmentId for createTicket. - [List tickets (GET /tickets)](https://docs.clouduxe.com/api/md/reference/support/list-tickets.md): Use this to find tickets, latest activity first. - [Open a ticket (POST /tickets)](https://docs.clouduxe.com/api/md/reference/support/create-ticket.md): Use this to ask Clouduxe support for help, optionally about one service or invoice, with uploaded attachments. - [Get a ticket (GET /tickets/{ticketId})](https://docs.clouduxe.com/api/md/reference/support/get-ticket.md): Use this to read a ticket's conversation. - [Reply to a ticket (POST /tickets/{ticketId}/replies)](https://docs.clouduxe.com/api/md/reference/support/reply-to-ticket.md): Use this to add a message to an open ticket. - [Close a ticket (POST /tickets/{ticketId}/close)](https://docs.clouduxe.com/api/md/reference/support/close-ticket.md): Use this when the issue is solved. - [Start an attachment upload (POST /attachments)](https://docs.clouduxe.com/api/md/reference/support/create-attachment.md): Use this first to attach a file: it answers an upload URL. - [Finish an attachment upload (POST /attachments/{attachmentId}/complete)](https://docs.clouduxe.com/api/md/reference/support/complete-attachment.md): Use this after the PUT: the file's type is checked from its bytes, and a ready attachment can be passed in attachmentIds. - [Get an attachment (GET /attachments/{attachmentId})](https://docs.clouduxe.com/api/md/reference/support/get-attachment.md): Use this to download a file from a ticket. - [List webhook endpoints (GET /webhook-endpoints)](https://docs.clouduxe.com/api/md/reference/webhooks/list-webhook-endpoints.md): Use this to see where events are sent. - [Create a webhook endpoint (POST /webhook-endpoints)](https://docs.clouduxe.com/api/md/reference/webhooks/create-webhook-endpoint.md): Use this to receive events at your URL. - [Get a webhook endpoint (GET /webhook-endpoints/{endpointId})](https://docs.clouduxe.com/api/md/reference/webhooks/get-webhook-endpoint.md): Use this to read one endpoint. - [Update a webhook endpoint (PATCH /webhook-endpoints/{endpointId})](https://docs.clouduxe.com/api/md/reference/webhooks/update-webhook-endpoint.md): Use this to change an endpoint's URL or events, or to disable or re-enable it. - [Delete a webhook endpoint (DELETE /webhook-endpoints/{endpointId})](https://docs.clouduxe.com/api/md/reference/webhooks/delete-webhook-endpoint.md): Use this to stop sending events to a URL. - [Rotate a webhook secret (POST /webhook-endpoints/{endpointId}/rotate-secret)](https://docs.clouduxe.com/api/md/reference/webhooks/rotate-webhook-endpoint-secret.md): Use this if a secret may have leaked. - [Send a test event (POST /webhook-endpoints/{endpointId}/test)](https://docs.clouduxe.com/api/md/reference/webhooks/test-webhook-endpoint.md): Use this to check that your endpoint receives and verifies events. - [Redeliver an event (POST /events/{eventId}/redeliver)](https://docs.clouduxe.com/api/md/reference/webhooks/redeliver-event.md): Use this to resend an event of the last 30 days to one of your enabled endpoints, for example after your endpoint was down for more than 3 days. - [Get a webhook delivery (GET /webhook-deliveries/{deliveryId})](https://docs.clouduxe.com/api/md/reference/webhooks/get-webhook-delivery.md): Use this to read how a test send or a redelivery went: pending, delivered or failed, with your endpoint's status and timing. - [List events (GET /events)](https://docs.clouduxe.com/api/md/reference/webhooks/list-events.md): Use this to catch up on events from the last 30 days, newest first, for example after downtime on your side. - [Get an event (GET /events/{eventId})](https://docs.clouduxe.com/api/md/reference/webhooks/get-event.md): Use this to fetch one event by its id. - [List API tokens (GET /api-tokens)](https://docs.clouduxe.com/api/md/reference/api-tokens/list-api-tokens.md): Use this to audit which tokens exist and when they were last used. - [Get the current token (GET /api-tokens/current)](https://docs.clouduxe.com/api/md/reference/api-tokens/get-current-api-token.md): Use this to check what the token you hold may do. - [Get an API token (GET /api-tokens/{tokenId})](https://docs.clouduxe.com/api/md/reference/api-tokens/get-api-token.md): Use this to read one token's details. - [Revoke an API token (DELETE /api-tokens/{tokenId})](https://docs.clouduxe.com/api/md/reference/api-tokens/revoke-api-token.md): Use this to stop a token working at once, for example after a leak. - [Get protection status (GET /services/{serviceId}/protection)](https://docs.clouduxe.com/api/md/reference/protection/get-protection.md): Use this to show whether a server is protected, under attack or paused, its traffic at the protection layer now, the incident being mitigated, and its protected ports. - [List attacks (GET /services/{serviceId}/protection/incidents)](https://docs.clouduxe.com/api/md/reference/protection/list-protection-incidents.md): Use this to read a server's attack history, newest first: each incident's start, end, peak, vector and the action taken. - [Get an attack (GET /services/{serviceId}/protection/incidents/{incidentId})](https://docs.clouduxe.com/api/md/reference/protection/get-protection-incident.md): Use this to read one incident's figures, for example to show your customer what happened during an outage. ## Optional - [OpenAPI contract](https://docs.clouduxe.com/api/openapi.yaml): the machine-readable source every reference page is generated from.