openapi: 3.1.0
info:
  title: Clouduxe API
  version: '2026-12-01'
  description: |
    The Clouduxe API lets you automate your Clouduxe services: order VPS, Dedicated servers and DDoS-protected proxies paid from wallet credit, manage their power, OS, firewall and lifecycle, read invoices, talk to support, and receive signed webhooks.

    **Authentication.** Send an API token as `Authorization: Bearer <token>`. Make tokens in the panel at https://dash.clouduxe.com/account/api-tokens; each has scopes, an optional expiry and an optional IP allowlist. Live tokens start `cxk_live_`.

    **Versions.** The path holds the major version (`/v1`). Send `Clouduxe-Version` (for example `2026-12-01`) to pin a dated version; without it your token's version is used. New fields, endpoints, enum values and event types can appear in any version: ignore what you do not know.

    **Requests and responses.** JSON only, camelCase fields, UTF-8. Ids are opaque strings. Money is `{ amount, currency }` with an integer amount in the currency's smallest unit; prices exclude GST. Times are RFC 3339 in UTC; calendar days are `YYYY-MM-DD`.

    **Lists** are paged by cursor: `limit` (1 to 100) and `cursor` (the previous page's `nextCursor`), answered with `hasMore`.

    **Writes** need an `Idempotency-Key` header: retrying with the same key is safe.

    **Errors** share one shape, `{ error: { type, code, message, param, requestId, docUrl } }`. Branch on `code`.

    **Rate limits.** Per token, 1,200 reads and 240 writes a minute; per account, 3,000 reads and 600 writes a minute. Every response carries `RateLimit-*` headers; a 429 carries `Retry-After`.

    **Long-running changes** answer an action. Poll `getAction`, or listen for `action.completed`.
  contact:
    name: Clouduxe support
    url: 'https://clouduxe.com'
servers:
  - url: 'https://api.clouduxe.com/v1'
    description: The Clouduxe API.
security:
  - bearerAuth: []
tags:
  - name: Account
    description: Your account.
    x-resource: Account
  - name: Catalogue
    description: 'Plans at your price, and regions.'
    x-resource: Plan
  - name: Orders
    description: 'Ordering services, paid from wallet credit.'
    x-resource: Order
  - name: Services
    description: 'Your VPS, Dedicated and proxy services.'
    x-resource: Service
  - name: Server actions
    description: 'Power, console, reinstall and password reset, and the actions they start.'
    x-resource: Action
  - name: Lifecycle
    description: 'Plan changes, cancellation and termination.'
    x-resource: Service
  - name: Firewall
    description: A server's Shield firewall.
    x-resource: Firewall
  - name: SSH keys
    description: Your SSH key library.
    x-resource: SshKey
  - name: Billing
    description: Invoices and wallet credit.
    x-resource: Invoice
  - name: Support
    description: Tickets and attachments.
    x-resource: Ticket
  - name: Webhooks
    description: Webhook endpoints and events.
    x-resource: WebhookEndpoint
  - name: API tokens
    description: 'Tokens: list and revoke. Tokens are made in the panel, at /account/api-tokens.'
    x-resource: ApiToken
  - name: Protection
    description: 'A protected server''s DDoS protection, read-only: status, traffic now, and its attack history.'
    x-resource: Protection
x-changelog:
  - date: '2026-11-05'
    apiVersion: '2026-12-01'
    changes:
      - The first version of the Clouduxe API contract.
x-error-catalogue:
  - code: account_closed
    status: 409
    type: conflict_error
    meaning: This account is closed.
    action: No action is possible on a closed account.
  - code: action_limit_reached
    status: 429
    type: rate_limit_error
    meaning: This service has reached its limit for this action.
    action: Retry after Retry-After seconds.
  - code: actions_unavailable
    status: 503
    type: api_error
    meaning: Server actions are paused for a moment.
    action: Retry after Retry-After seconds.
  - code: api_access_disabled
    status: 403
    type: permission_error
    meaning: API access is paused for this account.
    action: Contact support.
  - code: api_ordering_disabled
    status: 403
    type: permission_error
    meaning: Ordering through the API is switched off for this account.
    action: 'The account owner can switch it on in the panel, under API settings.'
  - code: attachment_unavailable
    status: 422
    type: invalid_request_error
    meaning: 'An attachment is not uploaded, not yours, or already used.'
    action: Upload the file again and pass the new attachmentId.
  - code: billing_currency_unknown
    status: 422
    type: invalid_request_error
    meaning: The account has no billing currency yet.
    action: Add a billing address in the panel.
  - code: cancellation_final
    status: 409
    type: conflict_error
    meaning: 'The paid period has ended, so the cancellation can no longer be undone.'
    action: Order a new service if you need one.
  - code: confirmation_mismatch
    status: 422
    type: invalid_request_error
    meaning: confirm must equal the service's id.
    action: Send the service's own id in confirm.
  - code: coupon_exhausted
    status: 409
    type: conflict_error
    meaning: This coupon has no uses left.
    action: Order again without couponCode.
  - code: coupon_invalid
    status: 422
    type: invalid_request_error
    meaning: This coupon does not exist or does not apply to this order.
    action: Remove or change couponCode.
  - code: credit_currency_mismatch
    status: 402
    type: payment_error
    meaning: The wallet holds no credit in this order's currency. Credit is never converted.
    action: Add credit in the order's currency in the panel.
  - code: currency_not_offered
    status: 409
    type: conflict_error
    meaning: The target plan is not offered in this service's currency.
    action: Open a support ticket.
  - code: cursor_invalid
    status: 400
    type: invalid_request_error
    meaning: 'The cursor is malformed, has expired, or belongs to a list with other filters.'
    action: Start the list again without a cursor.
  - code: cycle_unavailable
    status: 422
    type: invalid_request_error
    meaning: This plan has no orderable price for that billing cycle.
    action: Pick one of the plan's cycles.
  - code: department_unavailable
    status: 422
    type: invalid_request_error
    meaning: This support department is not available.
    action: Use a department from GET /v1/support/departments.
  - code: files_unavailable
    status: 503
    type: api_error
    meaning: File storage could not be reached.
    action: Retry shortly.
  - code: firewall_not_available
    status: 409
    type: conflict_error
    meaning: Protection is not set up for this server yet.
    action: 'Retry later, or contact support.'
  - code: firewall_preset_covered
    status: 409
    type: conflict_error
    meaning: Every rule of this preset is already covered.
    action: No action is needed.
  - code: firewall_preset_unavailable
    status: 422
    type: invalid_request_error
    meaning: No such firewall preset is available.
    action: Use a preset from GET /v1/firewall-presets.
  - code: firewall_resetting
    status: 423
    type: conflict_error
    meaning: 'This address recently changed hands, and its firewall is being reset.'
    action: Retry in a few minutes.
  - code: firewall_rule_exists
    status: 409
    type: conflict_error
    meaning: A rule with this protocol and first port already exists.
    action: Edit it instead.
  - code: firewall_rule_limit
    status: 422
    type: invalid_request_error
    meaning: This server already has 15 firewall rules.
    action: Remove or merge rules first.
  - code: firewall_rule_overlap
    status: 409
    type: conflict_error
    meaning: The rule's ports overlap another rule of the same protocol.
    action: Edit the existing rule instead.
  - code: firewall_value_refused
    status: 422
    type: invalid_request_error
    meaning: The protection service refused one of the rule's values.
    action: Check the rule's limits in the reference.
  - code: firewall_would_block_all
    status: 409
    type: conflict_error
    meaning: 'This change would leave no enabled rule while the default policy denies, which blocks every port.'
    action: 'Enable another rule first, or set the default policy to allow.'
  - code: forbidden
    status: 403
    type: permission_error
    meaning: Your role on this service does not allow this action.
    action: 'Ask the account owner for access, or use the owner''s token.'
  - code: hostname_invalid
    status: 422
    type: invalid_request_error
    meaning: The hostname must be a valid DNS name of at most 253 characters.
    action: 'Send DNS labels of letters, digits and hyphens joined by dots.'
  - code: idempotency_in_progress
    status: 409
    type: idempotency_error
    meaning: A request with this Idempotency-Key is still running.
    action: Retry after Retry-After seconds with the same key.
  - code: idempotency_key_invalid
    status: 400
    type: idempotency_error
    meaning: 'Idempotency-Key must be 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen.'
    action: Use a UUID.
  - code: idempotency_key_required
    status: 400
    type: idempotency_error
    meaning: This request needs an Idempotency-Key header.
    action: 'Send a new unique key, such as a UUID, for each logical request.'
  - code: idempotency_mismatch
    status: 422
    type: idempotency_error
    meaning: This Idempotency-Key was already used with a different request.
    action: Use a new key for a new request.
  - code: image_unavailable
    status: 422
    type: invalid_request_error
    meaning: This OS image is not offered here.
    action: 'Use an image from the plan''s orderForm, or from GET /v1/services/{serviceId}/images.'
  - code: insufficient_credit
    status: 402
    type: payment_error
    meaning: Wallet credit in the order's currency does not cover the total. Nothing was ordered.
    action: 'Add credit in the panel, then try again.'
  - code: internal_error
    status: 500
    type: api_error
    meaning: An unexpected error occurred. It has been logged with this request id.
    action: 'Retry once. If it repeats, contact support with the requestId.'
  - code: invalid_json
    status: 400
    type: invalid_request_error
    meaning: The request body is not valid JSON.
    action: Send a JSON body.
  - code: ip_address_invalid
    status: 422
    type: invalid_request_error
    meaning: Send one IPv4 address.
    action: Send a single dotted IPv4 address.
  - code: ip_already_listed
    status: 409
    type: conflict_error
    meaning: That address is already on this list.
    action: 'No action is needed, or remove it first to change it.'
  - code: ip_is_infrastructure
    status: 422
    type: invalid_request_error
    meaning: That address serves this server's protection and cannot be blocked or removed.
    action: No action is possible for this address.
  - code: ip_is_own_address
    status: 422
    type: invalid_request_error
    meaning: That is this server's own address.
    action: Do not block your own server.
  - code: ip_not_allowed
    status: 403
    type: permission_error
    meaning: This request came from an address outside the token's IP allowlist.
    action: 'Call from an allowed address, or change the allowlist in the panel.'
  - code: ip_range_unsupported
    status: 422
    type: invalid_request_error
    meaning: Address ranges are not supported here. Send one IPv4 address.
    action: Send single addresses.
  - code: limits_unavailable
    status: 503
    type: api_error
    meaning: 'Rate limits could not be checked, so the change was refused.'
    action: Retry shortly.
  - code: maintenance
    status: 503
    type: api_error
    meaning: This kind of change is paused for maintenance. Reads still work.
    action: Retry after Retry-After seconds.
  - code: metadata_invalid
    status: 400
    type: invalid_request_error
    meaning: 'metadata takes at most 20 keys of up to 40 characters, each with a string value of up to 500 characters.'
    action: Fix the keys or values.
  - code: method_not_allowed
    status: 405
    type: invalid_request_error
    meaning: This path does not take this HTTP method.
    action: Check the method in the reference.
  - code: not_found
    status: 404
    type: not_found_error
    meaning: 'No such object, or it is not visible to this token.'
    action: 'Check the id, and that the token belongs to the right account.'
  - code: option_invalid
    status: 422
    type: invalid_request_error
    meaning: 'An option is missing, unknown, or not offered on this plan.'
    action: Use the option groups in the plan's orderForm.
  - code: order_limit_reached
    status: 429
    type: rate_limit_error
    meaning: This account has ordered its hourly maximum of services.
    action: 'Retry after Retry-After seconds, or ask support to raise the limit.'
  - code: orders_unavailable
    status: 503
    type: api_error
    meaning: Ordering is paused for a moment. Nothing was ordered.
    action: Retry after Retry-After seconds.
  - code: origin_invalid
    status: 422
    type: invalid_request_error
    meaning: The proxy origin must be one of this account's own servers.
    action: 'Send a service id, or an IPv4 address of one of your servers.'
  - code: out_of_stock
    status: 409
    type: conflict_error
    meaning: This plan is sold out.
    action: 'Pick another plan or region, or try again later.'
  - code: outcome_unknown
    status: 503
    type: api_error
    meaning: The request may or may not have taken effect.
    action: 'Retry with the same Idempotency-Key: the retry answers what happened, or does it once.'
  - code: parameter_invalid
    status: 400
    type: invalid_request_error
    meaning: A field has the wrong type or is out of range.
    action: Fix the field named in param. The reference gives each field's rules.
  - code: parameter_missing
    status: 400
    type: invalid_request_error
    meaning: A required field is missing.
    action: Send the field named in param.
  - code: parameter_unknown
    status: 400
    type: invalid_request_error
    meaning: The request has a field this operation does not take.
    action: Remove the field named in param.
  - code: plan_change_not_allowed
    status: 422
    type: invalid_request_error
    meaning: This plan is not an allowed change for this service.
    action: 'Pick a plan from GET /v1/services/{serviceId}/plan-options.'
  - code: plan_change_open
    status: 409
    type: conflict_error
    meaning: A plan change for this service is already paid and waiting to be applied.
    action: Wait for its plan_change action to finish.
  - code: plan_change_too_soon
    status: 409
    type: conflict_error
    meaning: This service had a plan change request in the last 10 minutes.
    action: Retry after Retry-After seconds.
  - code: plan_change_unavailable
    status: 503
    type: api_error
    meaning: Plan changes for this service are paused for a moment. Nothing was changed.
    action: Retry after Retry-After seconds.
  - code: plan_unavailable
    status: 422
    type: invalid_request_error
    meaning: This plan cannot be ordered.
    action: Pick a plan from GET /v1/plans.
  - code: platform_unavailable
    status: 503
    type: api_error
    meaning: The server platform could not be reached. Nothing was changed.
    action: Retry shortly.
  - code: previous_change_pending
    status: 409
    type: conflict_error
    meaning: An earlier plan change is waiting for the server's next power cycle.
    action: 'Restart the server, wait for the change to apply, then try again.'
  - code: protection_not_available
    status: 409
    type: conflict_error
    meaning: 'This service has no protection data to show: it is not a protected server, or protection is not set up yet.'
    action: 'For a protected proxy, ask support. Otherwise retry once the service is active.'
  - code: quote_incomplete
    status: 422
    type: invalid_request_error
    meaning: The price cannot be fixed until the account's billing details are complete.
    action: 'Complete the billing address (for an Indian account, its GST state) in the panel.'
  - code: rate_limited
    status: 429
    type: rate_limit_error
    meaning: Too many requests.
    action: Retry after Retry-After seconds. The RateLimit headers show the window.
  - code: reinstall_in_doubt
    status: 409
    type: conflict_error
    meaning: 'A recent reinstall''s outcome is unknown, so another is refused for up to 15 minutes.'
    action: 'Check the server, then retry after Retry-After seconds.'
  - code: renewal_in_progress
    status: 409
    type: conflict_error
    meaning: 'A renewal for the next period is already paid, so the plan cannot change through the API.'
    action: Open a support ticket.
  - code: request_too_large
    status: 413
    type: invalid_request_error
    meaning: The request body is larger than 1 MiB.
    action: Send a smaller body. Upload files through createAttachment.
  - code: scope_missing
    status: 403
    type: permission_error
    meaning: This API token does not have the scope this operation needs.
    action: Make a token with the scope named in the reference for this operation.
  - code: secret_unavailable
    status: 410
    type: conflict_error
    meaning: 'This action''s secret was deleted, has expired, was read 5 times, or never existed.'
    action: 'This is final: do not retry. Reset the password again with delivery api and retrieve it within 60 minutes.'
  - code: service_building
    status: 409
    type: conflict_error
    meaning: A build or reinstall is running on this server.
    action: Wait for its action to finish.
  - code: service_ended
    status: 409
    type: conflict_error
    meaning: 'This service has ended, so its cancellation cannot change.'
    action: No action is possible on an ended service.
  - code: service_locked
    status: 423
    type: conflict_error
    meaning: 'This service is suspended, cancelled or terminated.'
    action: 'Pay any overdue invoice, or contact support.'
  - code: service_not_ready
    status: 409
    type: conflict_error
    meaning: This service is still being set up.
    action: 'Wait for the service.provisioned event, then retry.'
  - code: service_unconfirmed
    status: 423
    type: conflict_error
    meaning: Actions on this server are paused while its ownership is re-checked.
    action: 'Retry later, or contact support.'
  - code: ssh_key_invalid
    status: 422
    type: invalid_request_error
    meaning: The public key is not one accepted OpenSSH public key line.
    action: 'Send ssh-ed25519, ecdsa-sha2-nistp256, -nistp384 or -nistp521, or ssh-rsa of at least 2048 bits.'
  - code: ssh_key_unknown
    status: 422
    type: invalid_request_error
    meaning: An SSH key id is not in this account's key library.
    action: Use ids from GET /v1/ssh-keys.
  - code: ssh_keys_not_allowed
    status: 403
    type: permission_error
    meaning: Only the account owner can pass SSH keys to a reinstall.
    action: 'Reinstall without sshKeyIds, or use the owner''s token.'
  - code: termination_pending
    status: 409
    type: conflict_error
    meaning: This service is already being terminated.
    action: No action is needed.
  - code: terms_outdated
    status: 409
    type: conflict_error
    meaning: Updated terms of service must be accepted before ordering.
    action: The account owner accepts them in the panel.
  - code: ticket_closed
    status: 409
    type: conflict_error
    meaning: This ticket is closed.
    action: Open a new ticket.
  - code: token_expired
    status: 401
    type: authentication_error
    meaning: The API token has expired.
    action: Make a new token in the panel.
  - code: token_invalid
    status: 401
    type: authentication_error
    meaning: The API token is not valid.
    action: 'Check the token, or make a new one in the panel.'
  - code: token_missing
    status: 401
    type: authentication_error
    meaning: 'No API token was sent. Send it as Authorization: Bearer <token>.'
    action: Send your token in the Authorization header.
  - code: token_revoked
    status: 401
    type: authentication_error
    meaning: The API token was revoked.
    action: 'Make a new token. If you did not revoke it, review your account''s security log.'
  - code: too_many_ssh_keys
    status: 422
    type: invalid_request_error
    meaning: Too many SSH keys for one request.
    action: Send at most 10 key ids.
  - code: unavailable
    status: 503
    type: api_error
    meaning: The API is briefly unavailable.
    action: Retry after Retry-After seconds.
  - code: unsupported_media_type
    status: 415
    type: invalid_request_error
    meaning: The request body must be application/json.
    action: 'Send Content-Type: application/json.'
  - code: version_invalid
    status: 400
    type: invalid_request_error
    meaning: Clouduxe-Version does not name an API version.
    action: 'Send a version listed in the changelog, or omit the header to use your token''s version.'
  - code: webhook_endpoint_limit
    status: 409
    type: conflict_error
    meaning: This account already has 10 webhook endpoints.
    action: Delete an endpoint you no longer use.
  - code: webhook_url_refused
    status: 422
    type: invalid_request_error
    meaning: 'The webhook URL must be https on port 443 or 8443, with a public DNS name that is not a Clouduxe host.'
    action: Use a public https URL on your own domain.
paths:
  /account:
    get:
      operationId: getAccount
      summary: Get your account
      description: '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. Owner tokens only.'
      tags:
        - Account
      security:
        - bearerAuth:
            - 'account:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
      responses:
        '200':
          description: The account.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
              example:
                object: account
                id: 5f2c9a4e-7b1d-4c3a-9e8f-2a6b1c0d4e7f
                displayName: Acme Hosting
                status: active
                company:
                  name: Acme Hosting Private Limited
                  gstin: null
                billingCountry: IN
                billingCurrency: INR
                billingCurrencyUnknownReason: null
                apiOrdering: true
                serviceEmailsForApiOrders: false
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: account.get
      x-updated: '2026-11-05'
  /plans:
    get:
      operationId: listPlans
      summary: List plans
      description: 'Use this to show your catalogue or pick a plan to order. Prices are what this account pays, in its billing currency, excluding GST, and are shown only to tokens with orders:read (the account owner''s); other tokens see each price as null with unpricedReason no-access. Filter by type or region. Plans that are sold out are listed with available false.'
      tags:
        - Catalogue
      security:
        - bearerAuth: []
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: type
          in: query
          required: false
          description: Only plans of this product type.
          schema:
            type: string
            enum:
              - vps
              - dedicated
              - proxy
        - name: region
          in: query
          required: false
          description: Only plans in this region.
          schema:
            type: string
            enum:
              - mumbai
              - singapore
              - limburg
      responses:
        '200':
          description: The plans.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanList'
              example:
                object: list
                data:
                  - object: plan
                    id: vps-nvme-4-mumbai
                    type: vps
                    name: NVMe VPS 4 GB
                    description: '2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic.'
                    region: mumbai
                    available: true
                    currency: INR
                    cycles:
                      - months: 1
                        price:
                          amount: 129900
                          currency: INR
                        unpricedReason: null
                      - months: 12
                        price:
                          amount: 1402900
                          currency: INR
                        unpricedReason: null
                    orderForm: null
                  - object: plan
                    id: dedicated-e5-64-limburg
                    type: dedicated
                    name: Dedicated E5 64 GB
                    description: 'Intel Xeon E5, 64 GB RAM, 2 x 1 TB NVMe.'
                    region: limburg
                    available: false
                    currency: INR
                    cycles:
                      - months: 1
                        price:
                          amount: 1149900
                          currency: INR
                        unpricedReason: null
                    orderForm: null
                  - object: plan
                    id: proxy-game-standard
                    type: proxy
                    name: Protected Proxy Standard
                    description: 'DDoS-protected proxy for one origin, up to 15 port ranges.'
                    region: null
                    available: true
                    currency: INR
                    cycles:
                      - months: 1
                        price:
                          amount: 249900
                          currency: INR
                        unpricedReason: null
                    orderForm: null
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: plans.list
      x-updated: '2026-11-05'
  '/plans/{planId}':
    get:
      operationId: getPlan
      summary: Get a plan
      description: 'Use this before ordering: orderForm lists the required fields, the OS images, the option groups and, for a proxy, the protection profiles. Prices follow the rule of listPlans. An unknown, hidden or retired plan answers not_found alike.'
      tags:
        - Catalogue
      security:
        - bearerAuth: []
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: planId
          in: path
          required: true
          description: The plan's id.
          schema:
            type: string
          example: vps-nvme-4-mumbai
      responses:
        '200':
          description: The plan.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Plan'
              example:
                object: plan
                id: vps-nvme-4-mumbai
                type: vps
                name: NVMe VPS 4 GB
                description: '2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic.'
                region: mumbai
                available: true
                currency: INR
                cycles:
                  - months: 1
                    price:
                      amount: 129900
                      currency: INR
                    unpricedReason: null
                  - months: 12
                    price:
                      amount: 1402900
                      currency: INR
                    unpricedReason: null
                orderForm:
                  requiredFields:
                    - hostname
                    - imageId
                  images:
                    - object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    - object: image
                      id: debian-12
                      name: Debian 12
                      family: linux
                    - object: image
                      id: windows-server-2022
                      name: Windows Server 2022
                      family: windows
                  profiles: []
                  optionGroups:
                    - code: backups
                      name: Daily backups
                      required: false
                      values:
                        - code: daily-7
                          name: 7 daily backups
                  sshKeys: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: plans.get
      x-updated: '2026-11-05'
  /regions:
    get:
      operationId: listRegions
      summary: List regions
      description: Use this to show where plans run. Needs no scope.
      tags:
        - Catalogue
      security:
        - bearerAuth: []
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
      responses:
        '200':
          description: The regions.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegionList'
              example:
                object: list
                data:
                  - object: region
                    id: mumbai
                    name: Mumbai
                    country: IN
                    productTypes:
                      - vps
                  - object: region
                    id: singapore
                    name: Singapore
                    country: SG
                    productTypes:
                      - vps
                  - object: region
                    id: limburg
                    name: Limburg
                    country: DE
                    productTypes:
                      - dedicated
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: regions.list
      x-updated: '2026-11-05'
  /orders/preview:
    post:
      operationId: previewOrder
      summary: Preview an order
      description: 'Use this to show a customer what an order costs before placing it, at this account''s price, and whether wallet credit covers it. Writes nothing, so it needs no Idempotency-Key.'
      tags:
        - Orders
      security:
        - bearerAuth:
            - 'orders:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderPreviewRequest'
            example:
              items:
                - planId: vps-nvme-4-mumbai
                  billingCycleMonths: 1
                  hostname: node1.acme.example
                  imageId: ubuntu-24.04
                  sshKeyIds:
                    - 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
      responses:
        '200':
          description: The figures.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderPreview'
              example:
                object: order_preview
                items:
                  - planId: vps-nvme-4-mumbai
                    billingCycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    discount:
                      amount: 0
                      currency: INR
                    tax:
                      amount: 23382
                      currency: INR
                subtotal:
                  amount: 129900
                  currency: INR
                discount:
                  amount: 0
                  currency: INR
                tax:
                  amount: 23382
                  currency: INR
                total:
                  amount: 153282
                  currency: INR
                walletBalance:
                  amount: 653282
                  currency: INR
                sufficientCredit: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: out_of_stock, account_closed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                out_of_stock:
                  $ref: '#/components/examples/error_out_of_stock'
                account_closed:
                  $ref: '#/components/examples/error_account_closed'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: plan_unavailable, cycle_unavailable, option_invalid, hostname_invalid, image_unavailable, ssh_key_unknown, too_many_ssh_keys, origin_invalid, quote_incomplete, billing_currency_unknown, coupon_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                plan_unavailable:
                  $ref: '#/components/examples/error_plan_unavailable'
                cycle_unavailable:
                  $ref: '#/components/examples/error_cycle_unavailable'
                option_invalid:
                  $ref: '#/components/examples/error_option_invalid'
                hostname_invalid:
                  $ref: '#/components/examples/error_hostname_invalid'
                image_unavailable:
                  $ref: '#/components/examples/error_image_unavailable'
                ssh_key_unknown:
                  $ref: '#/components/examples/error_ssh_key_unknown'
                too_many_ssh_keys:
                  $ref: '#/components/examples/error_too_many_ssh_keys'
                origin_invalid:
                  $ref: '#/components/examples/error_origin_invalid'
                quote_incomplete:
                  $ref: '#/components/examples/error_quote_incomplete'
                billing_currency_unknown:
                  $ref: '#/components/examples/error_billing_currency_unknown'
                coupon_invalid:
                  $ref: '#/components/examples/error_coupon_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: orders.preview
      x-updated: '2026-11-05'
  /orders:
    post:
      operationId: createOrder
      summary: Create an order
      description: 'Use this to buy one to ten services in one order. Placing, invoicing and paying from wallet credit happen in one step: either the whole order is placed and paid, or nothing is written (insufficient_credit when credit in the order''s currency does not cover the total). The answer is the order, paid (or held for review), with one provision action per item: wait for each action, or for service.provisioned. When a build sets a password (always for Windows, and when no SSH key is given), its provision action''s secret holds it. API ordering must be switched on for the account in the panel.'
      tags:
        - Orders
      security:
        - bearerAuth:
            - 'orders:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderCreate'
            example:
              items:
                - planId: vps-nvme-4-mumbai
                  billingCycleMonths: 1
                  hostname: node1.acme.example
                  imageId: ubuntu-24.04
                  sshKeyIds:
                    - 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
              payment:
                method: wallet
              reference: order-99120
              metadata:
                source: whmcs
      responses:
        '201':
          description: 'The order, paid or held.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
              example:
                object: order
                id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                status: paid
                items:
                  - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                    planId: vps-nvme-4-mumbai
                    billingCycleMonths: 1
                    hostname: node1.acme.example
                    label: node1
                    price:
                      amount: 129900
                      currency: INR
                    serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                    reference: client-4471
                    metadata:
                      whmcsServiceId: '18342'
                      plan: starter
                subtotal:
                  amount: 129900
                  currency: INR
                discount:
                  amount: 0
                  currency: INR
                tax:
                  amount: 23382
                  currency: INR
                total:
                  amount: 153282
                  currency: INR
                couponCode: null
                invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                reference: order-99120
                metadata:
                  source: whmcs
                createdAt: '2026-12-04T09:15:22Z'
                paidAt: '2026-12-04T09:15:24Z'
                completedAt: null
                cancelledAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: metadata_invalid, version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                metadata_invalid:
                  $ref: '#/components/examples/error_metadata_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '402':
          description: 'Payment from wallet credit is not possible. Codes: insufficient_credit, credit_currency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                insufficient_credit:
                  $ref: '#/components/examples/error_insufficient_credit'
                credit_currency_mismatch:
                  $ref: '#/components/examples/error_credit_currency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: api_ordering_disabled, forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                api_ordering_disabled:
                  $ref: '#/components/examples/error_api_ordering_disabled'
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: out_of_stock, coupon_exhausted, terms_outdated, account_closed, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                out_of_stock:
                  $ref: '#/components/examples/error_out_of_stock'
                coupon_exhausted:
                  $ref: '#/components/examples/error_coupon_exhausted'
                terms_outdated:
                  $ref: '#/components/examples/error_terms_outdated'
                account_closed:
                  $ref: '#/components/examples/error_account_closed'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: plan_unavailable, cycle_unavailable, option_invalid, hostname_invalid, image_unavailable, ssh_key_invalid, ssh_key_unknown, too_many_ssh_keys, origin_invalid, quote_incomplete, billing_currency_unknown, coupon_invalid, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                plan_unavailable:
                  $ref: '#/components/examples/error_plan_unavailable'
                cycle_unavailable:
                  $ref: '#/components/examples/error_cycle_unavailable'
                option_invalid:
                  $ref: '#/components/examples/error_option_invalid'
                hostname_invalid:
                  $ref: '#/components/examples/error_hostname_invalid'
                image_unavailable:
                  $ref: '#/components/examples/error_image_unavailable'
                ssh_key_invalid:
                  $ref: '#/components/examples/error_ssh_key_invalid'
                ssh_key_unknown:
                  $ref: '#/components/examples/error_ssh_key_unknown'
                too_many_ssh_keys:
                  $ref: '#/components/examples/error_too_many_ssh_keys'
                origin_invalid:
                  $ref: '#/components/examples/error_origin_invalid'
                quote_incomplete:
                  $ref: '#/components/examples/error_quote_incomplete'
                billing_currency_unknown:
                  $ref: '#/components/examples/error_billing_currency_unknown'
                coupon_invalid:
                  $ref: '#/components/examples/error_coupon_invalid'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: order_limit_reached, rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                order_limit_reached:
                  $ref: '#/components/examples/error_order_limit_reached'
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: orders_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                orders_unavailable:
                  $ref: '#/components/examples/error_orders_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        spendsMoney: true
        confirm: previewTotal
      x-availability: launch
      x-sdk-method: orders.create
      x-updated: '2026-11-05'
    get:
      operationId: listOrders
      summary: List orders
      description: 'Use this to find orders, newest first. Filter by status, reference or metadata.'
      tags:
        - Orders
      security:
        - bearerAuth:
            - 'orders:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: status
          in: query
          required: false
          description: Only orders with this status.
          schema:
            type: string
            enum:
              - placed
              - paid
              - held
              - completed
              - cancelled
        - $ref: '#/components/parameters/Reference'
      responses:
        '200':
          description: A page of orders.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderList'
              example:
                object: list
                data:
                  - object: order
                    id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                    status: paid
                    items:
                      - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                        planId: vps-nvme-4-mumbai
                        billingCycleMonths: 1
                        hostname: node1.acme.example
                        label: node1
                        price:
                          amount: 129900
                          currency: INR
                        serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                        actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                        reference: client-4471
                        metadata:
                          whmcsServiceId: '18342'
                          plan: starter
                    subtotal:
                      amount: 129900
                      currency: INR
                    discount:
                      amount: 0
                      currency: INR
                    tax:
                      amount: 23382
                      currency: INR
                    total:
                      amount: 153282
                      currency: INR
                    couponCode: null
                    invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                    reference: order-99120
                    metadata:
                      source: whmcs
                    createdAt: '2026-12-04T09:15:22Z'
                    paidAt: '2026-12-04T09:15:24Z'
                    completedAt: null
                    cancelledAt: null
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: orders.list
      x-updated: '2026-11-05'
  '/orders/{orderId}':
    get:
      operationId: getOrder
      summary: Get an order
      description: Use this to check an order's status and the services it made.
      tags:
        - Orders
      security:
        - bearerAuth:
            - 'orders:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: orderId
          in: path
          required: true
          description: The order's id.
          schema:
            type: string
            format: uuid
          example: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
      responses:
        '200':
          description: The order.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
              example:
                object: order
                id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                status: paid
                items:
                  - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                    planId: vps-nvme-4-mumbai
                    billingCycleMonths: 1
                    hostname: node1.acme.example
                    label: node1
                    price:
                      amount: 129900
                      currency: INR
                    serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                    reference: client-4471
                    metadata:
                      whmcsServiceId: '18342'
                      plan: starter
                subtotal:
                  amount: 129900
                  currency: INR
                discount:
                  amount: 0
                  currency: INR
                tax:
                  amount: 23382
                  currency: INR
                total:
                  amount: 153282
                  currency: INR
                couponCode: null
                invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                reference: order-99120
                metadata:
                  source: whmcs
                createdAt: '2026-12-04T09:15:22Z'
                paidAt: '2026-12-04T09:15:24Z'
                completedAt: null
                cancelledAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: orders.get
      x-updated: '2026-11-05'
    patch:
      operationId: updateOrder
      summary: Update an order
      description: Use this to keep your own bookkeeping on an order. It changes nothing else.
      tags:
        - Orders
      security:
        - bearerAuth:
            - 'orders:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: orderId
          in: path
          required: true
          description: The order's id.
          schema:
            type: string
            format: uuid
          example: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderUpdate'
            example:
              reference: order-99120-b
      responses:
        '200':
          description: The order.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
              example:
                object: order
                id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                status: paid
                items:
                  - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                    planId: vps-nvme-4-mumbai
                    billingCycleMonths: 1
                    hostname: node1.acme.example
                    label: node1
                    price:
                      amount: 129900
                      currency: INR
                    serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                    reference: client-4471
                    metadata:
                      whmcsServiceId: '18342'
                      plan: starter
                subtotal:
                  amount: 129900
                  currency: INR
                discount:
                  amount: 0
                  currency: INR
                tax:
                  amount: 23382
                  currency: INR
                total:
                  amount: 153282
                  currency: INR
                couponCode: null
                invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                reference: order-99120-b
                metadata:
                  source: whmcs
                createdAt: '2026-12-04T09:15:22Z'
                paidAt: '2026-12-04T09:15:24Z'
                completedAt: null
                cancelledAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: metadata_invalid, version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                metadata_invalid:
                  $ref: '#/components/examples/error_metadata_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: orders.update
      x-updated: '2026-11-05'
  /services:
    get:
      operationId: listServices
      summary: List services
      description: 'Use this to find services, newest first: filter by type, status, region, reference or metadata. A delegate''s token lists only the services shared with that person.'
      tags:
        - Services
      security:
        - bearerAuth:
            - 'services:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: type
          in: query
          required: false
          description: Only this product type.
          schema:
            type: string
            enum:
              - vps
              - dedicated
              - proxy
        - name: status
          in: query
          required: false
          description: Only this status.
          schema:
            type: string
            enum:
              - pending
              - provisioning
              - active
              - suspended
              - failed
              - terminating
              - terminated
        - name: region
          in: query
          required: false
          description: Only this region.
          schema:
            type: string
            enum:
              - mumbai
              - singapore
              - limburg
        - $ref: '#/components/parameters/Reference'
      responses:
        '200':
          description: A page of services.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceList'
              example:
                object: list
                data:
                  - object: service
                    id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    type: vps
                    status: active
                    suspensionReason: null
                    deletesAt: null
                    planId: vps-nvme-4-mumbai
                    planName: NVMe VPS 4 GB
                    region: mumbai
                    label: node1
                    reference: client-4471
                    metadata:
                      whmcsServiceId: '18342'
                      plan: starter
                    firewallAvailable: true
                    billing:
                      cycleMonths: 1
                      price:
                        amount: 129900
                        currency: INR
                      currentPeriodStart: '2026-12-04'
                      paidThrough: '2027-01-03'
                      cancelAtPeriodEnd: false
                      endsOn: null
                    server:
                      powerState: running
                      hostname: node1.acme.example
                      ipv4:
                        - 203.0.113.24
                      ipv6:
                        - '2001:db8:4f2a::24'
                      image:
                        object: image
                        id: ubuntu-24.04
                        name: Ubuntu 24.04 LTS
                        family: linux
                      resources:
                        cpuCores: 2
                        memoryMb: 4096
                        diskGb: 80
                        trafficGb: 4000
                      statusUpdatedAt: '2026-12-04T10:02:41Z'
                      stale: false
                    proxy: null
                    createdAt: '2026-12-04T09:15:24Z'
                    livemode: true
                  - object: service
                    id: 4e9b2d7a-1c6f-4b3e-a8d2-7f5c0e9a1b4d
                    type: dedicated
                    status: provisioning
                    suspensionReason: null
                    deletesAt: null
                    planId: dedicated-e5-64-limburg
                    planName: Dedicated E5 64 GB
                    region: limburg
                    label: db-primary
                    reference: client-4471
                    metadata: {}
                    firewallAvailable: false
                    billing:
                      cycleMonths: 1
                      price:
                        amount: 1149900
                        currency: INR
                      currentPeriodStart: '2026-12-04'
                      paidThrough: '2027-01-03'
                      cancelAtPeriodEnd: false
                      endsOn: null
                    server:
                      powerState: unknown
                      hostname: db1.acme.example
                      ipv4: []
                      ipv6: []
                      image: null
                      resources: null
                      statusUpdatedAt: null
                      stale: false
                    proxy: null
                    createdAt: '2026-12-03T14:40:05Z'
                    livemode: true
                  - object: service
                    id: a7d4c1e9-3f2b-4d8a-9c6e-0b5a2f7d3e1c
                    type: proxy
                    status: active
                    suspensionReason: null
                    deletesAt: null
                    planId: proxy-game-standard
                    planName: Protected Proxy Standard
                    region: null
                    label: game-proxy
                    reference: client-5102
                    metadata: {}
                    firewallAvailable: false
                    billing:
                      cycleMonths: 1
                      price:
                        amount: 249900
                        currency: INR
                      currentPeriodStart: '2026-12-04'
                      paidThrough: '2027-01-03'
                      cancelAtPeriodEnd: false
                      endsOn: null
                    server: null
                    proxy:
                      profile: fivem
                      ports:
                        - protocol: tcp
                          portStart: 30120
                          portEnd: 30120
                        - protocol: udp
                          portStart: 30120
                          portEnd: 30120
                    createdAt: '2026-11-28T11:02:19Z'
                    livemode: true
                hasMore: true
                nextCursor: eyJsIjoic2VydmljZXMiLCJjIjoiMjAyNi0xMi0wNFQwOToxNToyMloifQ.x7Hq2N
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.list
      x-updated: '2026-11-05'
  '/services/{serviceId}':
    get:
      operationId: getService
      summary: Get a service
      description: 'Use this to read a service''s status, billing, addresses, power state and resources. The server state comes from a cache refreshed about every minute; stale is true when it is older than 5 minutes.'
      tags:
        - Services
      security:
        - bearerAuth:
            - 'services:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
      responses:
        '200':
          description: The service.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Service'
              example:
                object: service
                id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                type: vps
                status: active
                suspensionReason: null
                deletesAt: null
                planId: vps-nvme-4-mumbai
                planName: NVMe VPS 4 GB
                region: mumbai
                label: node1
                reference: client-4471
                metadata:
                  whmcsServiceId: '18342'
                  plan: starter
                firewallAvailable: true
                billing:
                  cycleMonths: 1
                  price:
                    amount: 129900
                    currency: INR
                  currentPeriodStart: '2026-12-04'
                  paidThrough: '2027-01-03'
                  cancelAtPeriodEnd: false
                  endsOn: null
                server:
                  powerState: running
                  hostname: node1.acme.example
                  ipv4:
                    - 203.0.113.24
                  ipv6:
                    - '2001:db8:4f2a::24'
                  image:
                    object: image
                    id: ubuntu-24.04
                    name: Ubuntu 24.04 LTS
                    family: linux
                  resources:
                    cpuCores: 2
                    memoryMb: 4096
                    diskGb: 80
                    trafficGb: 4000
                  statusUpdatedAt: '2026-12-04T10:02:41Z'
                  stale: false
                proxy: null
                createdAt: '2026-12-04T09:15:24Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.get
      x-updated: '2026-11-05'
    patch:
      operationId: updateService
      summary: Update a service
      description: Use this for your own bookkeeping on a service. It does not change the server.
      tags:
        - Services
      security:
        - bearerAuth:
            - 'services:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceUpdate'
            example:
              label: node1-eu
              metadata:
                plan: pro
      responses:
        '200':
          description: The service.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Service'
              example:
                object: service
                id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                type: vps
                status: active
                suspensionReason: null
                deletesAt: null
                planId: vps-nvme-4-mumbai
                planName: NVMe VPS 4 GB
                region: mumbai
                label: node1-eu
                reference: client-4471
                metadata:
                  whmcsServiceId: '18342'
                  plan: starter
                firewallAvailable: true
                billing:
                  cycleMonths: 1
                  price:
                    amount: 129900
                    currency: INR
                  currentPeriodStart: '2026-12-04'
                  paidThrough: '2027-01-03'
                  cancelAtPeriodEnd: false
                  endsOn: null
                server:
                  powerState: running
                  hostname: node1.acme.example
                  ipv4:
                    - 203.0.113.24
                  ipv6:
                    - '2001:db8:4f2a::24'
                  image:
                    object: image
                    id: ubuntu-24.04
                    name: Ubuntu 24.04 LTS
                    family: linux
                  resources:
                    cpuCores: 2
                    memoryMb: 4096
                    diskGb: 80
                    trafficGb: 4000
                  statusUpdatedAt: '2026-12-04T10:02:41Z'
                  stale: false
                proxy: null
                createdAt: '2026-12-04T09:15:24Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: metadata_invalid, version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                metadata_invalid:
                  $ref: '#/components/examples/error_metadata_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.update
      x-updated: '2026-11-05'
  '/services/{serviceId}/images':
    get:
      operationId: listServiceImages
      summary: List a server's OS images
      description: Use this before reinstallService to pick an imageId.
      tags:
        - Services
      security:
        - bearerAuth:
            - 'services:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
      responses:
        '200':
          description: The images.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageList'
              example:
                object: list
                data:
                  - object: image
                    id: ubuntu-24.04
                    name: Ubuntu 24.04 LTS
                    family: linux
                  - object: image
                    id: debian-12
                    name: Debian 12
                    family: linux
                  - object: image
                    id: windows-server-2022
                    name: Windows Server 2022
                    family: windows
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: service_not_ready.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_not_ready:
                  $ref: '#/components/examples/error_service_not_ready'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.listImages
      x-updated: '2026-11-05'
  '/services/{serviceId}/usage':
    get:
      operationId: getServiceUsage
      summary: Get a service's traffic
      description: 'Use this to read traffic used in the current traffic period against the allowance. The traffic period is the server''s own monthly traffic cycle, which can differ from its billing period.'
      tags:
        - Services
      security:
        - bearerAuth:
            - 'services:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
      responses:
        '200':
          description: The usage.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Usage'
              example:
                object: usage
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                periodStart: '2026-12-04'
                periodEnd: '2027-01-03'
                inboundBytes: 48213904512
                outboundBytes: 311420019712
                allowanceBytes: 4000000000000
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: service_not_ready.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_not_ready:
                  $ref: '#/components/examples/error_service_not_ready'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.getUsage
      x-updated: '2026-11-05'
  '/services/{serviceId}/power':
    post:
      operationId: powerService
      summary: Run a power action
      description: 'Use this to change a VPS''s power state. shutdown asks the OS to stop cleanly; poweroff cuts power at once. Answers an action: wait for it with getAction or the action.completed event. Limited to 30 power actions per service in 10 minutes.'
      tags:
        - Server actions
      security:
        - bearerAuth:
            - 'services:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PowerRequest'
            example:
              action: restart
      responses:
        '202':
          description: 'The action, started.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Action'
              example:
                object: action
                id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                type: restart
                status: running
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                orderId: null
                invoiceId: null
                failure: null
                secretAvailable: false
                secretExpiresAt: null
                createdAt: '2026-12-04T09:20:11Z'
                startedAt: '2026-12-04T09:20:11Z'
                completedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: service_not_ready, service_building, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_not_ready:
                  $ref: '#/components/examples/error_service_not_ready'
                service_building:
                  $ref: '#/components/examples/error_service_building'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: action_limit_reached, rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                action_limit_reached:
                  $ref: '#/components/examples/error_action_limit_reached'
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: actions_unavailable, platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                actions_unavailable:
                  $ref: '#/components/examples/error_actions_unavailable'
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        confirm: serviceId
        confirmWhen:
          action:
            - poweroff
      x-availability: launch
      x-sdk-method: services.power
      x-updated: '2026-11-05'
  '/services/{serviceId}/reinstall':
    post:
      operationId: reinstallService
      summary: Reinstall a server
      description: 'Use this to rebuild a VPS with a new OS, hostname and, for owner tokens, your SSH keys. Everything on the disk is lost. Answers an action that runs for several minutes. When the build sets a password (always for Windows, and when no SSH key is given), the action''s secret holds it once it succeeds: retrieve it with getActionSecret within 60 minutes, up to 5 times. If the outcome is unknown, another reinstall is refused for up to 15 minutes. Limited to 5 per service per hour.'
      tags:
        - Server actions
      security:
        - bearerAuth:
            - 'services:destructive'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReinstallRequest'
            example:
              imageId: ubuntu-24.04
              hostname: node1.acme.example
              sshKeyIds:
                - 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
      responses:
        '202':
          description: 'The action, started.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Action'
              example:
                object: action
                id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                type: reinstall
                status: running
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                orderId: null
                invoiceId: null
                failure: null
                secretAvailable: false
                secretExpiresAt: null
                createdAt: '2026-12-04T09:20:11Z'
                startedAt: '2026-12-04T09:20:11Z'
                completedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ssh_keys_not_allowed, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ssh_keys_not_allowed:
                  $ref: '#/components/examples/error_ssh_keys_not_allowed'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: service_not_ready, service_building, reinstall_in_doubt, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_not_ready:
                  $ref: '#/components/examples/error_service_not_ready'
                service_building:
                  $ref: '#/components/examples/error_service_building'
                reinstall_in_doubt:
                  $ref: '#/components/examples/error_reinstall_in_doubt'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: image_unavailable, hostname_invalid, ssh_key_unknown, too_many_ssh_keys, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                image_unavailable:
                  $ref: '#/components/examples/error_image_unavailable'
                hostname_invalid:
                  $ref: '#/components/examples/error_hostname_invalid'
                ssh_key_unknown:
                  $ref: '#/components/examples/error_ssh_key_unknown'
                too_many_ssh_keys:
                  $ref: '#/components/examples/error_too_many_ssh_keys'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: action_limit_reached, rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                action_limit_reached:
                  $ref: '#/components/examples/error_action_limit_reached'
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: actions_unavailable, platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                actions_unavailable:
                  $ref: '#/components/examples/error_actions_unavailable'
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        confirm: serviceId
      x-availability: launch
      x-sdk-method: services.reinstall
      x-updated: '2026-11-05'
  '/services/{serviceId}/reset-password':
    post:
      operationId: resetServicePassword
      summary: Reset a server's password
      description: 'Use this when root (or Administrator on Windows) access is lost. Answers the reset_password action. With delivery api, when the action succeeds its secret holds the new password: retrieve it with getActionSecret within 60 minutes, up to 5 times. With delivery email, it is emailed to the account owner instead. Owner tokens only. Limited to 5 per service per hour.'
      tags:
        - Server actions
      security:
        - bearerAuth:
            - 'services:destructive'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResetPasswordRequest'
            example:
              delivery: api
      responses:
        '202':
          description: 'The reset, started.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Action'
              example:
                object: action
                id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                type: reset_password
                status: running
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                orderId: null
                invoiceId: null
                failure: null
                secretAvailable: false
                secretExpiresAt: null
                createdAt: '2026-12-04T09:20:11Z'
                startedAt: '2026-12-04T09:20:11Z'
                completedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: service_not_ready, service_building, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_not_ready:
                  $ref: '#/components/examples/error_service_not_ready'
                service_building:
                  $ref: '#/components/examples/error_service_building'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: action_limit_reached, rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                action_limit_reached:
                  $ref: '#/components/examples/error_action_limit_reached'
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: actions_unavailable, platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                actions_unavailable:
                  $ref: '#/components/examples/error_actions_unavailable'
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        confirm: serviceId
        forceArgs:
          delivery: email
      x-availability: launch
      x-sdk-method: services.resetPassword
      x-updated: '2026-11-05'
  '/services/{serviceId}/plan-options':
    get:
      operationId: listServicePlanOptions
      summary: List plan change options
      description: 'Use this before changeServicePlan: each option has its price per cycle and what changing now costs.'
      tags:
        - Services
      security:
        - bearerAuth:
            - 'services:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
      responses:
        '200':
          description: The options.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanOptionList'
              example:
                object: list
                data:
                  - object: plan_option
                    planId: vps-nvme-8-mumbai
                    name: NVMe VPS 8 GB
                    kind: upgrade
                    price:
                      amount: 239900
                      currency: INR
                    charge:
                      amount: 106400
                      currency: INR
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.listPlanOptions
      x-updated: '2026-11-05'
  '/services/{serviceId}/plan-change':
    post:
      operationId: changeServicePlan
      summary: Change a service's plan
      description: 'Use this to upgrade a service. The charge for the rest of the period is invoiced and paid from wallet credit in one step; if credit does not cover it, nothing is written (insufficient_credit). Answers a plan_change action: it stays queued while the change waits to be applied (by Clouduxe''s team when automatic apply is off), and succeeds once the platform has the new plan. A VPS gets its new memory and disk at its next power cycle.'
      tags:
        - Lifecycle
      security:
        - bearerAuth:
            - 'services:lifecycle'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlanChangeRequest'
            example:
              planId: vps-nvme-8-mumbai
      responses:
        '202':
          description: 'The plan change, started.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Action'
              example:
                object: action
                id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                type: plan_change
                status: running
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                orderId: null
                invoiceId: b2c7e4a9-5f1d-4e8b-9a3c-6d0f2e7b1c5a
                failure: null
                secretAvailable: false
                secretExpiresAt: null
                createdAt: '2026-12-04T09:20:11Z'
                startedAt: '2026-12-04T09:20:11Z'
                completedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '402':
          description: 'Payment from wallet credit is not possible. Codes: insufficient_credit, credit_currency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                insufficient_credit:
                  $ref: '#/components/examples/error_insufficient_credit'
                credit_currency_mismatch:
                  $ref: '#/components/examples/error_credit_currency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: service_not_ready, plan_change_open, previous_change_pending, plan_change_too_soon, renewal_in_progress, currency_not_offered, account_closed, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_not_ready:
                  $ref: '#/components/examples/error_service_not_ready'
                plan_change_open:
                  $ref: '#/components/examples/error_plan_change_open'
                previous_change_pending:
                  $ref: '#/components/examples/error_previous_change_pending'
                plan_change_too_soon:
                  $ref: '#/components/examples/error_plan_change_too_soon'
                renewal_in_progress:
                  $ref: '#/components/examples/error_renewal_in_progress'
                currency_not_offered:
                  $ref: '#/components/examples/error_currency_not_offered'
                account_closed:
                  $ref: '#/components/examples/error_account_closed'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: plan_change_not_allowed, quote_incomplete, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                plan_change_not_allowed:
                  $ref: '#/components/examples/error_plan_change_not_allowed'
                quote_incomplete:
                  $ref: '#/components/examples/error_quote_incomplete'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: plan_change_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                plan_change_unavailable:
                  $ref: '#/components/examples/error_plan_change_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        spendsMoney: true
        confirm: planOptionCharge
      x-availability: launch
      x-sdk-method: services.changePlan
      x-updated: '2026-11-05'
  '/services/{serviceId}/cancellation':
    put:
      operationId: setServiceCancellation
      summary: Set cancellation at period end
      description: 'Use this to stop a service renewing: it keeps running until its paidThrough day, then ends. Send false to keep it renewing. No refund is made.'
      tags:
        - Lifecycle
      security:
        - bearerAuth:
            - 'services:lifecycle'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancellationRequest'
            example:
              cancelAtPeriodEnd: true
              reason: Customer moved to another plan.
      responses:
        '200':
          description: The service.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Service'
              example:
                object: service
                id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                type: vps
                status: active
                suspensionReason: null
                deletesAt: null
                planId: vps-nvme-4-mumbai
                planName: NVMe VPS 4 GB
                region: mumbai
                label: node1
                reference: client-4471
                metadata:
                  whmcsServiceId: '18342'
                  plan: starter
                firewallAvailable: true
                billing:
                  cycleMonths: 1
                  price:
                    amount: 129900
                    currency: INR
                  currentPeriodStart: '2026-12-04'
                  paidThrough: '2027-01-03'
                  cancelAtPeriodEnd: true
                  endsOn: '2027-01-03'
                server:
                  powerState: running
                  hostname: node1.acme.example
                  ipv4:
                    - 203.0.113.24
                  ipv6:
                    - '2001:db8:4f2a::24'
                  image:
                    object: image
                    id: ubuntu-24.04
                    name: Ubuntu 24.04 LTS
                    family: linux
                  resources:
                    cpuCores: 2
                    memoryMb: 4096
                    diskGb: 80
                    trafficGb: 4000
                  statusUpdatedAt: '2026-12-04T10:02:41Z'
                  stale: false
                proxy: null
                createdAt: '2026-12-04T09:15:24Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: termination_pending, service_ended, cancellation_final, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                termination_pending:
                  $ref: '#/components/examples/error_termination_pending'
                service_ended:
                  $ref: '#/components/examples/error_service_ended'
                cancellation_final:
                  $ref: '#/components/examples/error_cancellation_final'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.setCancellation
      x-updated: '2026-11-05'
  '/services/{serviceId}/terminate':
    post:
      operationId: terminateService
      summary: Terminate a service
      description: 'Use this to end a service immediately, for example when your customer leaves. The current period is not refunded. A renewal already issued for a later period is credited, and any wallet credit it took is returned to the wallet. The service becomes terminating with deletesAt, and its server and data are deleted at that time. Answers a terminate action.'
      tags:
        - Lifecycle
      security:
        - bearerAuth:
            - 'services:destructive'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TerminateRequest'
            example:
              confirm: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
      responses:
        '202':
          description: 'The termination, started.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Action'
              example:
                object: action
                id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                type: terminate
                status: running
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                orderId: null
                invoiceId: null
                failure: null
                secretAvailable: false
                secretExpiresAt: null
                createdAt: '2026-12-04T09:20:11Z'
                startedAt: '2026-12-04T09:20:11Z'
                completedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: termination_pending, account_closed, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                termination_pending:
                  $ref: '#/components/examples/error_termination_pending'
                account_closed:
                  $ref: '#/components/examples/error_account_closed'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: confirmation_mismatch, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                confirmation_mismatch:
                  $ref: '#/components/examples/error_confirmation_mismatch'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        confirm: serviceId
      x-availability: launch
      x-sdk-method: services.terminate
      x-updated: '2026-11-05'
  '/services/{serviceId}/actions':
    get:
      operationId: listServiceActions
      summary: List a service's actions
      description: 'Use this to see what ran on a service, newest first.'
      tags:
        - Server actions
      security:
        - bearerAuth:
            - 'services:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of actions.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionList'
              example:
                object: list
                data:
                  - object: action
                    id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                    type: restart
                    status: succeeded
                    serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    orderId: null
                    invoiceId: null
                    failure: null
                    secretAvailable: false
                    secretExpiresAt: null
                    createdAt: '2026-12-04T09:20:11Z'
                    startedAt: '2026-12-04T09:20:11Z'
                    completedAt: '2026-12-04T09:20:39Z'
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: services.listActions
      x-updated: '2026-11-05'
  '/actions/{actionId}':
    get:
      operationId: getAction
      summary: Get an action
      description: 'Use this to poll a long-running change until its status is succeeded, failed or unknown. Poll at most every 2 seconds, or use the action.completed event instead.'
      tags:
        - Server actions
      security:
        - bearerAuth:
            - 'services:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: actionId
          in: path
          required: true
          description: The action's id.
          schema:
            type: string
            format: uuid
          example: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
      responses:
        '200':
          description: The action.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Action'
              example:
                object: action
                id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                type: restart
                status: succeeded
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                orderId: null
                invoiceId: null
                failure: null
                secretAvailable: false
                secretExpiresAt: null
                createdAt: '2026-12-04T09:20:11Z'
                startedAt: '2026-12-04T09:20:11Z'
                completedAt: '2026-12-04T09:20:39Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: actions.get
      x-updated: '2026-11-05'
  '/actions/{actionId}/secret':
    get:
      operationId: getActionSecret
      summary: Retrieve an action's secret
      description: 'Use this after an action with secretAvailable true succeeds: a provision or reinstall that set a password, or a password reset with delivery api. Owner tokens only, and only the token that started the action (for a provision, the token that placed the order). You may read it up to 5 times until it expires (60 minutes after the action succeeded), so a retry after a lost answer works; every read is audited. Store it, then delete it with deleteActionSecret. A 410 is final. Needs services:destructive, or orders:write for a provision action.'
      tags:
        - Server actions
      security:
        - bearerAuth:
            - 'services:destructive'
        - bearerAuth:
            - 'orders:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: actionId
          in: path
          required: true
          description: The action's id.
          schema:
            type: string
            format: uuid
          example: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
      responses:
        '200':
          description: The secret.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Cache-Control:
              description: 'Always no-store: the answer holds a secret.'
              schema:
                type: string
                enum:
                  - no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionSecret'
              example:
                object: action_secret
                actionId: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                kind: server_password
                username: root
                password: hV4qW9zL2mRt8KxP
                readsLeft: 4
                expiresAt: '2026-12-04T10:20:39Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '410':
          description: 'Gone. Codes: secret_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                secret_unavailable:
                  $ref: '#/components/examples/error_secret_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
        exclude: true
      x-availability: launch
      x-sdk-method: actions.getSecret
      x-updated: '2026-11-05'
    delete:
      operationId: deleteActionSecret
      summary: Delete an action's secret
      description: 'Use this as soon as you have stored the secret from getActionSecret, so it can never be read again. Deleting a secret that is already gone answers the same.'
      tags:
        - Server actions
      security:
        - bearerAuth:
            - 'services:destructive'
        - bearerAuth:
            - 'orders:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: actionId
          in: path
          required: true
          description: The action's id.
          schema:
            type: string
            format: uuid
          example: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
      responses:
        '200':
          description: 'The action, with secretAvailable false.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Action'
              example:
                object: action
                id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                type: restart
                status: succeeded
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                orderId: null
                invoiceId: null
                failure: null
                secretAvailable: false
                secretExpiresAt: null
                createdAt: '2026-12-04T09:20:11Z'
                startedAt: '2026-12-04T09:20:11Z'
                completedAt: '2026-12-04T09:20:39Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
        exclude: true
      x-availability: launch
      x-sdk-method: actions.deleteSecret
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall':
    get:
      operationId: getFirewall
      summary: Get a firewall
      description: '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. Only for services with firewallAvailable true.'
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
      responses:
        '200':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: firewall.get
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/protection':
    put:
      operationId: setFirewallProtection
      summary: Turn protection on or off
      description: Use this to switch Shield filtering for the server on or off.
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FirewallProtection'
            example:
              enabled: true
      responses:
        '200':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: firewall.setProtection
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/default-policy':
    put:
      operationId: setFirewallDefaultPolicy
      summary: Set the default policy
      description: Use this to allow or deny traffic to ports without an enabled rule. Deny is refused while no rule is enabled.
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FirewallPolicy'
            example:
              defaultPolicy: deny
      responses:
        '200':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, firewall_would_block_all, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                firewall_would_block_all:
                  $ref: '#/components/examples/error_firewall_would_block_all'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: firewall.setDefaultPolicy
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/rules':
    post:
      operationId: createFirewallRule
      summary: Add a firewall rule
      description: 'Use this to open and protect a port range with a protection profile. A server has at most 15 rules, and rules of one protocol cannot overlap.'
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FirewallRuleCreate'
            example:
              protocol: tcp
              portStart: 30120
              portEnd: 30120
              profile: fivem
              newConnectionsPerSecond: 10
              protocolValidation: true
      responses:
        '201':
          description: 'The firewall, with the new rule.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, firewall_rule_overlap, firewall_rule_exists, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                firewall_rule_overlap:
                  $ref: '#/components/examples/error_firewall_rule_overlap'
                firewall_rule_exists:
                  $ref: '#/components/examples/error_firewall_rule_exists'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: firewall_rule_limit, firewall_value_refused, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_rule_limit:
                  $ref: '#/components/examples/error_firewall_rule_limit'
                firewall_value_refused:
                  $ref: '#/components/examples/error_firewall_value_refused'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: firewall.createRule
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/rules/{ruleId}':
    patch:
      operationId: updateFirewallRule
      summary: Update a firewall rule
      description: 'Use this to change a rule''s ports, profile, limits or checks, or to switch it off.'
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
        - name: ruleId
          in: path
          required: true
          description: 'The rule''s id, such as tcp-30120.'
          schema:
            type: string
          example: tcp-30120
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FirewallRuleUpdate'
            example:
              newConnectionsPerSecond: 15
      responses:
        '200':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, firewall_rule_overlap, firewall_would_block_all, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                firewall_rule_overlap:
                  $ref: '#/components/examples/error_firewall_rule_overlap'
                firewall_would_block_all:
                  $ref: '#/components/examples/error_firewall_would_block_all'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: firewall_value_refused, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_value_refused:
                  $ref: '#/components/examples/error_firewall_value_refused'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: firewall.updateRule
      x-updated: '2026-11-05'
    delete:
      operationId: deleteFirewallRule
      summary: Delete a firewall rule
      description: Use this to close a port range. Refused when it would leave no enabled rule while the default policy denies.
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
        - name: ruleId
          in: path
          required: true
          description: 'The rule''s id, such as tcp-30120.'
          schema:
            type: string
          example: tcp-30120
      responses:
        '200':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, firewall_would_block_all, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                firewall_would_block_all:
                  $ref: '#/components/examples/error_firewall_would_block_all'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: true
        confirm: ruleId
      x-availability: launch
      x-sdk-method: firewall.deleteRule
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/blocked-ips':
    post:
      operationId: blockFirewallIp
      summary: Block an address
      description: 'Use this to drop all traffic from one IPv4 address, for a time or for good. The server''s own address and addresses that serve its protection cannot be blocked.'
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BlockIpRequest'
            example:
              ip: 198.51.100.77
              expiresInSeconds: 86400
      responses:
        '201':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, ip_already_listed, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                ip_already_listed:
                  $ref: '#/components/examples/error_ip_already_listed'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: ip_address_invalid, ip_range_unsupported, ip_is_own_address, ip_is_infrastructure, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_address_invalid:
                  $ref: '#/components/examples/error_ip_address_invalid'
                ip_range_unsupported:
                  $ref: '#/components/examples/error_ip_range_unsupported'
                ip_is_own_address:
                  $ref: '#/components/examples/error_ip_is_own_address'
                ip_is_infrastructure:
                  $ref: '#/components/examples/error_ip_is_infrastructure'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: firewall.blockIp
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/blocked-ips/{ip}':
    delete:
      operationId: unblockFirewallIp
      summary: Unblock an address
      description: Use this to lift a block.
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
        - name: ip
          in: path
          required: true
          description: The IPv4 address.
          schema:
            type: string
            format: ipv4
          example: 198.51.100.77
      responses:
        '200':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps: []
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: ip_address_invalid, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_address_invalid:
                  $ref: '#/components/examples/error_ip_address_invalid'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: firewall.unblockIp
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/trusted-ips':
    post:
      operationId: trustFirewallIp
      summary: Trust an address
      description: 'Use this so traffic from one IPv4 address, such as your monitoring, is never filtered.'
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrustIpRequest'
            example:
              ip: 192.0.2.15
              note: Office
      responses:
        '201':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, ip_already_listed, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                ip_already_listed:
                  $ref: '#/components/examples/error_ip_already_listed'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: ip_address_invalid, ip_range_unsupported, ip_is_infrastructure, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_address_invalid:
                  $ref: '#/components/examples/error_ip_address_invalid'
                ip_range_unsupported:
                  $ref: '#/components/examples/error_ip_range_unsupported'
                ip_is_infrastructure:
                  $ref: '#/components/examples/error_ip_is_infrastructure'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: firewall.trustIp
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/trusted-ips/{ip}':
    delete:
      operationId: untrustFirewallIp
      summary: Untrust an address
      description: Use this to remove an address from the trusted list. Addresses that serve the server's protection cannot be removed.
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
        - name: ip
          in: path
          required: true
          description: The IPv4 address.
          schema:
            type: string
            format: ipv4
          example: 192.0.2.15
      responses:
        '200':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps: []
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: ip_address_invalid, ip_is_infrastructure, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_address_invalid:
                  $ref: '#/components/examples/error_ip_address_invalid'
                ip_is_infrastructure:
                  $ref: '#/components/examples/error_ip_is_infrastructure'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: firewall.untrustIp
      x-updated: '2026-11-05'
  '/services/{serviceId}/firewall/presets':
    post:
      operationId: applyFirewallPreset
      summary: Apply a firewall preset
      description: 'Use this to add a ready-made rule set for a common server. Rules that would overlap an existing rule, or pass the 15-rule cap, are skipped.'
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/ServiceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApplyPresetRequest'
            example:
              presetId: minecraft-java
      responses:
        '201':
          description: The firewall.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Firewall'
              example:
                object: firewall
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                enabled: true
                defaultPolicy: deny
                rules:
                  - id: tcp-30120
                    protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 10
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: udp-30120
                    protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 0
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: true
                  - id: tcp-22
                    protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                    ppsLimit: 0
                    connectionPpsLimit: 0
                    newConnectionsPerSecond: 5
                    onlyProxied: false
                    blockUdp: false
                    protocolValidation: false
                blockedIps:
                  - ip: 198.51.100.77
                    expiresAt: '2026-12-05T10:00:00Z'
                trustedIps:
                  - ip: 192.0.2.15
                    note: Office
                updatedAt: '2026-12-04T10:02:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: firewall_not_available, firewall_preset_covered, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_not_available:
                  $ref: '#/components/examples/error_firewall_not_available'
                firewall_preset_covered:
                  $ref: '#/components/examples/error_firewall_preset_covered'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: firewall_preset_unavailable, firewall_rule_limit, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                firewall_preset_unavailable:
                  $ref: '#/components/examples/error_firewall_preset_unavailable'
                firewall_rule_limit:
                  $ref: '#/components/examples/error_firewall_rule_limit'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '423':
          description: 'The service is locked. Codes: service_locked, service_unconfirmed, firewall_resetting.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                service_locked:
                  $ref: '#/components/examples/error_service_locked'
                service_unconfirmed:
                  $ref: '#/components/examples/error_service_unconfirmed'
                firewall_resetting:
                  $ref: '#/components/examples/error_firewall_resetting'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: firewall.applyPreset
      x-updated: '2026-11-05'
  /firewall-presets:
    get:
      operationId: listFirewallPresets
      summary: List firewall presets
      description: Use this to pick a presetId for applyFirewallPreset.
      tags:
        - Firewall
      security:
        - bearerAuth:
            - 'firewall:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
      responses:
        '200':
          description: The presets.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FirewallPresetList'
              example:
                object: list
                data:
                  - object: firewall_preset
                    id: minecraft-java
                    name: Minecraft Java server
                    rules:
                      - protocol: tcp
                        portStart: 25565
                        portEnd: 25565
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: firewallPresets.list
      x-updated: '2026-11-05'
  /ssh-keys:
    get:
      operationId: listSshKeys
      summary: List SSH keys
      description: Use this to find key ids for createOrder and reinstallService. Owner tokens only.
      tags:
        - SSH keys
      security:
        - bearerAuth:
            - 'ssh_keys:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Reference'
      responses:
        '200':
          description: A page of keys.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SshKeyList'
              example:
                object: list
                data:
                  - object: ssh_key
                    id: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
                    name: deploy-2026
                    type: ssh-ed25519
                    fingerprint: 'SHA256:pR7d2Kq9mXv3Lw8Hn5Ty1Bc6Zs4Fg0Ja2Ue7Wo9Qk3'
                    reference: client-4471
                    metadata: {}
                    createdAt: '2026-12-01T08:12:40Z'
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: sshKeys.list
      x-updated: '2026-11-05'
    post:
      operationId: createSshKey
      summary: Add an SSH key
      description: 'Use this to add a public key to your library, then pass its id when ordering or reinstalling.'
      tags:
        - SSH keys
      security:
        - bearerAuth:
            - 'ssh_keys:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SshKeyCreate'
            example:
              name: deploy-2026
              publicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl deploy@acme.example
              reference: client-4471
      responses:
        '201':
          description: The key.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SshKey'
              example:
                object: ssh_key
                id: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
                name: deploy-2026
                type: ssh-ed25519
                fingerprint: 'SHA256:pR7d2Kq9mXv3Lw8Hn5Ty1Bc6Zs4Fg0Ja2Ue7Wo9Qk3'
                reference: client-4471
                metadata: {}
                createdAt: '2026-12-01T08:12:40Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: metadata_invalid, version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                metadata_invalid:
                  $ref: '#/components/examples/error_metadata_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: ssh_key_invalid, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ssh_key_invalid:
                  $ref: '#/components/examples/error_ssh_key_invalid'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: sshKeys.create
      x-updated: '2026-11-05'
  '/ssh-keys/{sshKeyId}':
    get:
      operationId: getSshKey
      summary: Get an SSH key
      description: Use this to read one key's name and fingerprint.
      tags:
        - SSH keys
      security:
        - bearerAuth:
            - 'ssh_keys:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: sshKeyId
          in: path
          required: true
          description: The SSH key's id.
          schema:
            type: string
            format: uuid
          example: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
      responses:
        '200':
          description: The key.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SshKey'
              example:
                object: ssh_key
                id: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
                name: deploy-2026
                type: ssh-ed25519
                fingerprint: 'SHA256:pR7d2Kq9mXv3Lw8Hn5Ty1Bc6Zs4Fg0Ja2Ue7Wo9Qk3'
                reference: client-4471
                metadata: {}
                createdAt: '2026-12-01T08:12:40Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: sshKeys.get
      x-updated: '2026-11-05'
    patch:
      operationId: updateSshKey
      summary: Update an SSH key
      description: Use this for your own bookkeeping on a key.
      tags:
        - SSH keys
      security:
        - bearerAuth:
            - 'ssh_keys:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: sshKeyId
          in: path
          required: true
          description: The SSH key's id.
          schema:
            type: string
            format: uuid
          example: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SshKeyUpdate'
            example:
              reference: client-4472
      responses:
        '200':
          description: The key.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SshKey'
              example:
                object: ssh_key
                id: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
                name: deploy-2026
                type: ssh-ed25519
                fingerprint: 'SHA256:pR7d2Kq9mXv3Lw8Hn5Ty1Bc6Zs4Fg0Ja2Ue7Wo9Qk3'
                reference: client-4472
                metadata: {}
                createdAt: '2026-12-01T08:12:40Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: metadata_invalid, version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                metadata_invalid:
                  $ref: '#/components/examples/error_metadata_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: sshKeys.update
      x-updated: '2026-11-05'
    delete:
      operationId: deleteSshKey
      summary: Delete an SSH key
      description: Use this to remove a key from your library. Servers already built with it keep it.
      tags:
        - SSH keys
      security:
        - bearerAuth:
            - 'ssh_keys:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: sshKeyId
          in: path
          required: true
          description: The SSH key's id.
          schema:
            type: string
            format: uuid
          example: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
      responses:
        '200':
          description: The removed key.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SshKey'
              example:
                object: ssh_key
                id: 2d6f1a8c-4b3e-4e9a-8f2d-6c1b5a0e7d3f
                name: deploy-2026
                type: ssh-ed25519
                fingerprint: 'SHA256:pR7d2Kq9mXv3Lw8Hn5Ty1Bc6Zs4Fg0Ja2Ue7Wo9Qk3'
                reference: client-4471
                metadata: {}
                createdAt: '2026-12-01T08:12:40Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: platform_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                platform_unavailable:
                  $ref: '#/components/examples/error_platform_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: true
        confirm: sshKeyId
      x-availability: launch
      x-sdk-method: sshKeys.delete
      x-updated: '2026-11-05'
  /invoices:
    get:
      operationId: listInvoices
      summary: List invoices
      description: 'Use this to reconcile your bills, newest first. Owner tokens only.'
      tags:
        - Billing
      security:
        - bearerAuth:
            - 'billing:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: status
          in: query
          required: false
          description: Only invoices with this status.
          schema:
            type: string
            enum:
              - open
              - part_paid
              - overdue
              - paid
              - cancelled
        - name: serviceId
          in: query
          required: false
          description: Only invoices with a line for this service.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: A page of invoices.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceList'
              example:
                object: list
                data:
                  - object: invoice
                    id: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                    number: C-INV-02731
                    documentType: invoice
                    status: paid
                    currency: INR
                    issuedAt: '2026-12-04T09:15:23Z'
                    issueDate: '2026-12-04'
                    dueDate: '2026-12-04'
                    subtotal:
                      amount: 129900
                      currency: INR
                    discount:
                      amount: 0
                      currency: INR
                    tax:
                      amount: 23382
                      currency: INR
                    taxBreakdown:
                      cgst: null
                      sgst: null
                      igst:
                        amount: 23382
                        currency: INR
                    total:
                      amount: 153282
                      currency: INR
                    amountPaid:
                      amount: 153282
                      currency: INR
                    amountCredited:
                      amount: 0
                      currency: INR
                    amountDue:
                      amount: 0
                      currency: INR
                    paidAt: '2026-12-04T09:15:24Z'
                    buyerGstin: null
                    placeOfSupply:
                      country: IN
                      gstState: '29'
                    lines: []
                    orderId: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                    creditsInvoiceId: null
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: invoices.list
      x-updated: '2026-11-05'
  '/invoices/{invoiceId}':
    get:
      operationId: getInvoice
      summary: Get an invoice
      description: 'Use this to read an invoice''s lines, tax and amounts.'
      tags:
        - Billing
      security:
        - bearerAuth:
            - 'billing:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: invoiceId
          in: path
          required: true
          description: The invoice's id.
          schema:
            type: string
            format: uuid
          example: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
      responses:
        '200':
          description: The invoice.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Invoice'
              example:
                object: invoice
                id: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                number: C-INV-02731
                documentType: invoice
                status: paid
                currency: INR
                issuedAt: '2026-12-04T09:15:23Z'
                issueDate: '2026-12-04'
                dueDate: '2026-12-04'
                subtotal:
                  amount: 129900
                  currency: INR
                discount:
                  amount: 0
                  currency: INR
                tax:
                  amount: 23382
                  currency: INR
                taxBreakdown:
                  cgst: null
                  sgst: null
                  igst:
                    amount: 23382
                    currency: INR
                total:
                  amount: 153282
                  currency: INR
                amountPaid:
                  amount: 153282
                  currency: INR
                amountCredited:
                  amount: 0
                  currency: INR
                amountDue:
                  amount: 0
                  currency: INR
                paidAt: '2026-12-04T09:15:24Z'
                buyerGstin: null
                placeOfSupply:
                  country: IN
                  gstState: '29'
                lines:
                  - id: 5c9a1e7f-2d4b-4f8c-b6a3-0e7d1c9f2a4b
                    description: 'NVMe VPS 4 GB (node1.acme.example), 4 Dec 2026 to 3 Jan 2027'
                    quantity: 1
                    unitAmount:
                      amount: 129900
                      currency: INR
                    discount: null
                    net:
                      amount: 129900
                      currency: INR
                    taxRateBp: 1800
                    tax:
                      amount: 23382
                      currency: INR
                    serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    periodStart: '2026-12-04'
                    periodEnd: '2027-01-03'
                orderId: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                creditsInvoiceId: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: invoices.get
      x-updated: '2026-11-05'
  '/invoices/{invoiceId}/pdf':
    get:
      operationId: getInvoicePdf
      summary: Get an invoice PDF link
      description: 'Use this to download the tax invoice. The link works for about 5 minutes. Seconds after an invoice is issued its PDF may not exist yet: then this answers not_found with Retry-After.'
      tags:
        - Billing
      security:
        - bearerAuth:
            - 'billing:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: invoiceId
          in: path
          required: true
          description: The invoice's id.
          schema:
            type: string
            format: uuid
          example: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
      responses:
        '200':
          description: The link.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoicePdf'
              example:
                object: invoice_pdf
                url: 'https://files.example.net/invoices/9a2e5c1b/C-INV-02731.pdf?sig=Hk2Qm9xT4vLr8Pd3'
                expiresAt: '2026-12-04T10:07:41Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: invoices.getPdf
      x-updated: '2026-11-05'
  /wallet:
    get:
      operationId: getWallet
      summary: Get your wallet
      description: Use this to check credit before ordering. Top-ups are made in the panel.
      tags:
        - Billing
      security:
        - bearerAuth:
            - 'billing:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
      responses:
        '200':
          description: The wallet.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wallet'
              example:
                object: wallet
                balances:
                  - amount: 500000
                    currency: INR
                topUpCurrency: INR
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: wallet.get
      x-updated: '2026-11-05'
  /wallet/transactions:
    get:
      operationId: listWalletTransactions
      summary: List wallet transactions
      description: 'Use this to see what added or spent credit, newest first.'
      tags:
        - Billing
      security:
        - bearerAuth:
            - 'billing:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of transactions.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletTransactionList'
              example:
                object: list
                data:
                  - object: wallet_transaction
                    id: '48211'
                    type: wallet.apply
                    amount:
                      amount: -153282
                      currency: INR
                    balanceAfter:
                      amount: 500000
                      currency: INR
                    invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                    createdAt: '2026-12-04T09:15:24Z'
                  - object: wallet_transaction
                    id: '48190'
                    type: wallet.topup
                    amount:
                      amount: 600000
                      currency: INR
                    balanceAfter:
                      amount: 653282
                      currency: INR
                    invoiceId: null
                    createdAt: '2026-12-04T08:50:02Z'
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: wallet.listTransactions
      x-updated: '2026-11-05'
  /support/departments:
    get:
      operationId: listSupportDepartments
      summary: List support departments
      description: Use this to pick a departmentId for createTicket.
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
      responses:
        '200':
          description: The departments.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepartmentList'
              example:
                object: list
                data:
                  - object: department
                    id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                    name: Technical support
                  - object: department
                    id: 8b3f6e1d-4a9c-4d2b-b7e5-1c0a8f3d6e2a
                    name: Billing
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: support.listDepartments
      x-updated: '2026-11-05'
  /tickets:
    get:
      operationId: listTickets
      summary: List tickets
      description: 'Use this to find tickets, latest activity first. Owner tokens only.'
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: status
          in: query
          required: false
          description: Only tickets with this status.
          schema:
            type: string
            enum:
              - open
              - in_progress
              - awaiting_customer
              - customer_replied
              - closed
      responses:
        '200':
          description: A page of tickets.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TicketList'
              example:
                object: list
                data:
                  - object: ticket
                    id: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                    reference: CX-1482
                    subject: IPv6 unreachable on node1
                    status: awaiting_customer
                    priority: high
                    department:
                      object: department
                      id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                      name: Technical support
                    unread: 1
                    messages: []
                    createdAt: '2026-12-04T09:31:10Z'
                    updatedAt: '2026-12-04T09:48:55Z'
                    lastActivityAt: '2026-12-04T09:48:55Z'
                    closedAt: null
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: tickets.list
      x-updated: '2026-11-05'
    post:
      operationId: createTicket
      summary: Open a ticket
      description: 'Use this to ask Clouduxe support for help, optionally about one service or invoice, with uploaded attachments. Limited to 20 a hour per account.'
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TicketCreate'
            example:
              departmentId: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
              subject: IPv6 unreachable on node1
              body: 'node1 lost its IPv6 route after the restart at 09:20 UTC. IPv4 works.'
              priority: high
              attachmentIds:
                - 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
      responses:
        '201':
          description: The ticket.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticket'
              example:
                object: ticket
                id: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                reference: CX-1482
                subject: IPv6 unreachable on node1
                status: open
                priority: high
                department:
                  object: department
                  id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                  name: Technical support
                unread: 0
                messages:
                  - id: b4a7e2c9-1d6f-4e3b-a9c5-8e2d1f0b7a6c
                    author:
                      type: customer
                      name: Acme Hosting
                    body: 'node1 lost its IPv6 route after the restart at 09:20 UTC. IPv4 works.'
                    attachments:
                      - id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                        filename: mtr-ipv6.txt
                        size: 2048
                        type: text/plain
                        removedAt: null
                    createdAt: '2026-12-04T09:31:10Z'
                    redactedAt: null
                createdAt: '2026-12-04T09:31:10Z'
                updatedAt: '2026-12-04T09:31:10Z'
                lastActivityAt: '2026-12-04T09:31:10Z'
                closedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: account_closed, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                account_closed:
                  $ref: '#/components/examples/error_account_closed'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: department_unavailable, attachment_unavailable, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                department_unavailable:
                  $ref: '#/components/examples/error_department_unavailable'
                attachment_unavailable:
                  $ref: '#/components/examples/error_attachment_unavailable'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: maintenance, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                maintenance:
                  $ref: '#/components/examples/error_maintenance'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: tickets.create
      x-updated: '2026-11-05'
  '/tickets/{ticketId}':
    get:
      operationId: getTicket
      summary: Get a ticket
      description: Use this to read a ticket's conversation.
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: ticketId
          in: path
          required: true
          description: The ticket's id.
          schema:
            type: string
            format: uuid
          example: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
      responses:
        '200':
          description: The ticket.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticket'
              example:
                object: ticket
                id: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                reference: CX-1482
                subject: IPv6 unreachable on node1
                status: awaiting_customer
                priority: high
                department:
                  object: department
                  id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                  name: Technical support
                unread: 1
                messages:
                  - id: b4a7e2c9-1d6f-4e3b-a9c5-8e2d1f0b7a6c
                    author:
                      type: customer
                      name: Acme Hosting
                    body: 'node1 lost its IPv6 route after the restart at 09:20 UTC. IPv4 works.'
                    attachments:
                      - id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                        filename: mtr-ipv6.txt
                        size: 2048
                        type: text/plain
                        removedAt: null
                    createdAt: '2026-12-04T09:31:10Z'
                    redactedAt: null
                  - id: 0e5b3d8a-6f1c-4b9e-8d2a-7c4f1e0a9b3d
                    author:
                      type: staff
                      name: Support
                    body: Thanks. The route is restored; please check from your side.
                    attachments: []
                    createdAt: '2026-12-04T09:48:55Z'
                    redactedAt: null
                createdAt: '2026-12-04T09:31:10Z'
                updatedAt: '2026-12-04T09:48:55Z'
                lastActivityAt: '2026-12-04T09:48:55Z'
                closedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: tickets.get
      x-updated: '2026-11-05'
  '/tickets/{ticketId}/replies':
    post:
      operationId: replyToTicket
      summary: Reply to a ticket
      description: Use this to add a message to an open ticket. Limited to 120 a hour per account.
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: ticketId
          in: path
          required: true
          description: The ticket's id.
          schema:
            type: string
            format: uuid
          example: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TicketReplyCreate'
            example:
              body: 'Confirmed, IPv6 works again. Thanks.'
              attachmentIds: []
      responses:
        '201':
          description: The ticket.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticket'
              example:
                object: ticket
                id: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                reference: CX-1482
                subject: IPv6 unreachable on node1
                status: customer_replied
                priority: high
                department:
                  object: department
                  id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                  name: Technical support
                unread: 1
                messages:
                  - id: b4a7e2c9-1d6f-4e3b-a9c5-8e2d1f0b7a6c
                    author:
                      type: customer
                      name: Acme Hosting
                    body: 'node1 lost its IPv6 route after the restart at 09:20 UTC. IPv4 works.'
                    attachments:
                      - id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                        filename: mtr-ipv6.txt
                        size: 2048
                        type: text/plain
                        removedAt: null
                    createdAt: '2026-12-04T09:31:10Z'
                    redactedAt: null
                  - id: 0e5b3d8a-6f1c-4b9e-8d2a-7c4f1e0a9b3d
                    author:
                      type: staff
                      name: Support
                    body: Thanks. The route is restored; please check from your side.
                    attachments: []
                    createdAt: '2026-12-04T09:48:55Z'
                    redactedAt: null
                createdAt: '2026-12-04T09:31:10Z'
                updatedAt: '2026-12-04T09:48:55Z'
                lastActivityAt: '2026-12-04T09:48:55Z'
                closedAt: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: ticket_closed, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ticket_closed:
                  $ref: '#/components/examples/error_ticket_closed'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: attachment_unavailable, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                attachment_unavailable:
                  $ref: '#/components/examples/error_attachment_unavailable'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: maintenance, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                maintenance:
                  $ref: '#/components/examples/error_maintenance'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: tickets.reply
      x-updated: '2026-11-05'
  '/tickets/{ticketId}/close':
    post:
      operationId: closeTicket
      summary: Close a ticket
      description: Use this when the issue is solved. Closing a closed ticket answers the same ticket.
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: ticketId
          in: path
          required: true
          description: The ticket's id.
          schema:
            type: string
            format: uuid
          example: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
      responses:
        '200':
          description: The ticket.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticket'
              example:
                object: ticket
                id: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                reference: CX-1482
                subject: IPv6 unreachable on node1
                status: closed
                priority: high
                department:
                  object: department
                  id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                  name: Technical support
                unread: 1
                messages:
                  - id: b4a7e2c9-1d6f-4e3b-a9c5-8e2d1f0b7a6c
                    author:
                      type: customer
                      name: Acme Hosting
                    body: 'node1 lost its IPv6 route after the restart at 09:20 UTC. IPv4 works.'
                    attachments:
                      - id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                        filename: mtr-ipv6.txt
                        size: 2048
                        type: text/plain
                        removedAt: null
                    createdAt: '2026-12-04T09:31:10Z'
                    redactedAt: null
                  - id: 0e5b3d8a-6f1c-4b9e-8d2a-7c4f1e0a9b3d
                    author:
                      type: staff
                      name: Support
                    body: Thanks. The route is restored; please check from your side.
                    attachments: []
                    createdAt: '2026-12-04T09:48:55Z'
                    redactedAt: null
                createdAt: '2026-12-04T09:31:10Z'
                updatedAt: '2026-12-04T09:48:55Z'
                lastActivityAt: '2026-12-04T09:48:55Z'
                closedAt: '2026-12-04T10:10:00Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: maintenance, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                maintenance:
                  $ref: '#/components/examples/error_maintenance'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: tickets.close
      x-updated: '2026-11-05'
  /attachments:
    post:
      operationId: createAttachment
      summary: Start an attachment upload
      description: 'Use this first to attach a file: it answers an upload URL. PUT the bytes there with the given headers, then call completeAttachment, then pass the id in attachmentIds. At most 10 MiB.'
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttachmentCreate'
            example:
              filename: mtr-ipv6.txt
              size: 2048
              contentType: text/plain
      responses:
        '201':
          description: Where to upload.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttachmentUpload'
              example:
                object: attachment_upload
                attachmentId: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                upload:
                  url: 'https://files.example.net/uploads/6e1d9b4a?sig=Qm3vT8xK2pLd7Rw4'
                  method: PUT
                  headers:
                    content-length: '2048'
                    content-type: application/octet-stream
                  expiresAt: '2026-12-04T09:45:00Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: maintenance, files_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                maintenance:
                  $ref: '#/components/examples/error_maintenance'
                files_unavailable:
                  $ref: '#/components/examples/error_files_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: attachments.create
      x-updated: '2026-11-05'
  '/attachments/{attachmentId}/complete':
    post:
      operationId: completeAttachment
      summary: Finish an attachment upload
      description: 'Use this after the PUT: the file''s type is checked from its bytes, and a ready attachment can be passed in attachmentIds.'
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: attachmentId
          in: path
          required: true
          description: The attachment's id.
          schema:
            type: string
            format: uuid
          example: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
      responses:
        '200':
          description: The attachment.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attachment'
              example:
                object: attachment
                id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                status: ready
                filename: mtr-ipv6.txt
                size: 2048
                type: text/plain
                ticketId: null
                download: null
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: attachment_unavailable, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                attachment_unavailable:
                  $ref: '#/components/examples/error_attachment_unavailable'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: maintenance, files_unavailable, unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                maintenance:
                  $ref: '#/components/examples/error_maintenance'
                files_unavailable:
                  $ref: '#/components/examples/error_files_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: attachments.complete
      x-updated: '2026-11-05'
  '/attachments/{attachmentId}':
    get:
      operationId: getAttachment
      summary: Get an attachment
      description: Use this to download a file from a ticket. The link lasts a few minutes.
      tags:
        - Support
      security:
        - bearerAuth:
            - 'tickets:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: attachmentId
          in: path
          required: true
          description: The attachment's id.
          schema:
            type: string
            format: uuid
          example: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
      responses:
        '200':
          description: The attachment.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attachment'
              example:
                object: attachment
                id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                status: attached
                filename: mtr-ipv6.txt
                size: 2048
                type: text/plain
                ticketId: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                download:
                  url: 'https://files.example.net/attachments/6e1d9b4a/mtr-ipv6.txt?sig=Zr5pW2nQ8kTd1Hv6'
                  expiresAt: '2026-12-04T09:55:00Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: files_unavailable, unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                files_unavailable:
                  $ref: '#/components/examples/error_files_unavailable'
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: attachments.get
      x-updated: '2026-11-05'
  /webhook-endpoints:
    get:
      operationId: listWebhookEndpoints
      summary: List webhook endpoints
      description: Use this to see where events are sent.
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: The endpoints.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpointList'
              example:
                object: list
                data:
                  - object: webhook_endpoint
                    id: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                    url: 'https://billing.acme.example/clouduxe/webhooks'
                    description: WHMCS production
                    enabledEvents:
                      - service.provisioned
                      - service.suspended
                      - service.terminated
                      - action.completed
                      - invoice.created
                      - invoice.overdue
                    status: enabled
                    apiVersion: '2026-12-01'
                    secret: null
                    createdByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                    updatedByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                    createdAt: '2026-12-01T08:20:00Z'
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: webhookEndpoints.list
      x-updated: '2026-11-05'
    post:
      operationId: createWebhookEndpoint
      summary: Create a webhook endpoint
      description: 'Use this to receive events at your URL. The first answer holds the signing secret: store it to verify Clouduxe-Signature. A replay of the same Idempotency-Key answers secret null; if you lost it, rotate it. The account owner is emailed. At most 10 endpoints.'
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookEndpointCreate'
            example:
              url: 'https://billing.acme.example/clouduxe/webhooks'
              description: WHMCS production
              enabledEvents:
                - service.provisioned
                - service.suspended
                - service.terminated
                - action.completed
                - invoice.created
                - invoice.overdue
      responses:
        '201':
          description: 'The endpoint, with its secret.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
              example:
                object: webhook_endpoint
                id: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                url: 'https://billing.acme.example/clouduxe/webhooks'
                description: WHMCS production
                enabledEvents:
                  - service.provisioned
                  - service.suspended
                  - service.terminated
                  - action.completed
                  - invoice.created
                  - invoice.overdue
                status: enabled
                apiVersion: '2026-12-01'
                secret: cxwhsec_4fT9qLm2Xv7Rk3Np8Wd1Zs6Hc0Yb5Ue2Ja9Gt4Qx7Lp
                createdByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                updatedByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                createdAt: '2026-12-01T08:20:00Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: webhook_endpoint_limit, idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                webhook_endpoint_limit:
                  $ref: '#/components/examples/error_webhook_endpoint_limit'
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: webhook_url_refused, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                webhook_url_refused:
                  $ref: '#/components/examples/error_webhook_url_refused'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        confirm: url
      x-availability: launch
      x-sdk-method: webhookEndpoints.create
      x-updated: '2026-11-05'
  '/webhook-endpoints/{endpointId}':
    get:
      operationId: getWebhookEndpoint
      summary: Get a webhook endpoint
      description: Use this to read one endpoint. The secret is not returned.
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: endpointId
          in: path
          required: true
          description: The endpoint's id.
          schema:
            type: string
            format: uuid
          example: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
      responses:
        '200':
          description: The endpoint.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
              example:
                object: webhook_endpoint
                id: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                url: 'https://billing.acme.example/clouduxe/webhooks'
                description: WHMCS production
                enabledEvents:
                  - service.provisioned
                  - service.suspended
                  - service.terminated
                  - action.completed
                  - invoice.created
                  - invoice.overdue
                status: enabled
                apiVersion: '2026-12-01'
                secret: null
                createdByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                updatedByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                createdAt: '2026-12-01T08:20:00Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: webhookEndpoints.get
      x-updated: '2026-11-05'
    patch:
      operationId: updateWebhookEndpoint
      summary: Update a webhook endpoint
      description: 'Use this to change an endpoint''s URL or events, or to disable or re-enable it.'
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: endpointId
          in: path
          required: true
          description: The endpoint's id.
          schema:
            type: string
            format: uuid
          example: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookEndpointUpdate'
            example:
              status: enabled
      responses:
        '200':
          description: The endpoint.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
              example:
                object: webhook_endpoint
                id: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                url: 'https://billing.acme.example/clouduxe/webhooks'
                description: WHMCS production
                enabledEvents:
                  - service.provisioned
                  - service.suspended
                  - service.terminated
                  - action.completed
                  - invoice.created
                  - invoice.overdue
                status: enabled
                apiVersion: '2026-12-01'
                secret: null
                createdByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                updatedByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                createdAt: '2026-12-01T08:20:00Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: webhook_url_refused, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                webhook_url_refused:
                  $ref: '#/components/examples/error_webhook_url_refused'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: true
        confirm: url
      x-availability: launch
      x-sdk-method: webhookEndpoints.update
      x-updated: '2026-11-05'
    delete:
      operationId: deleteWebhookEndpoint
      summary: Delete a webhook endpoint
      description: Use this to stop sending events to a URL.
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: endpointId
          in: path
          required: true
          description: The endpoint's id.
          schema:
            type: string
            format: uuid
          example: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
      responses:
        '200':
          description: The deleted endpoint.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
              example:
                object: webhook_endpoint
                id: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                url: 'https://billing.acme.example/clouduxe/webhooks'
                description: WHMCS production
                enabledEvents:
                  - service.provisioned
                  - service.suspended
                  - service.terminated
                  - action.completed
                  - invoice.created
                  - invoice.overdue
                status: disabled
                apiVersion: '2026-12-01'
                secret: null
                createdByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                updatedByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                createdAt: '2026-12-01T08:20:00Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: true
        confirm: endpointId
      x-availability: launch
      x-sdk-method: webhookEndpoints.delete
      x-updated: '2026-11-05'
  '/webhook-endpoints/{endpointId}/rotate-secret':
    post:
      operationId: rotateWebhookEndpointSecret
      summary: Rotate a webhook secret
      description: 'Use this if a secret may have leaked. The first answer holds the new secret; a replay answers secret null. The old secret keeps working for oldSecretExpiresInSeconds (default 24 hours, 0 to stop it at once), and both signatures are sent meanwhile.'
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: endpointId
          in: path
          required: true
          description: The endpoint's id.
          schema:
            type: string
            format: uuid
          example: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateSecretRequest'
            example:
              oldSecretExpiresInSeconds: 0
      responses:
        '200':
          description: 'The endpoint, with its new secret.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
              example:
                object: webhook_endpoint
                id: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                url: 'https://billing.acme.example/clouduxe/webhooks'
                description: WHMCS production
                enabledEvents:
                  - service.provisioned
                  - service.suspended
                  - service.terminated
                  - action.completed
                  - invoice.created
                  - invoice.overdue
                status: enabled
                apiVersion: '2026-12-01'
                secret: cxwhsec_4fT9qLm2Xv7Rk3Np8Wd1Zs6Hc0Yb5Ue2Ja9Gt4Qx7Lp
                createdByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                updatedByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                createdAt: '2026-12-01T08:20:00Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: false
        idempotentHint: false
      x-availability: launch
      x-sdk-method: webhookEndpoints.rotateSecret
      x-updated: '2026-11-05'
  '/webhook-endpoints/{endpointId}/test':
    post:
      operationId: testWebhookEndpoint
      summary: Send a test event
      description: 'Use this to check that your endpoint receives and verifies events. It queues one webhook_endpoint.test event, signed like any other, and answers the pending delivery: read its result with getWebhookDelivery a few seconds later.'
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: endpointId
          in: path
          required: true
          description: The endpoint's id.
          schema:
            type: string
            format: uuid
          example: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
      responses:
        '202':
          description: 'The delivery, queued.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDelivery'
              example:
                object: webhook_delivery
                id: 5b9e2c7a-3d1f-4a8e-b6c2-9f0d4e7a1c3b
                eventId: 32ad3352-4e07-56f8-9b40-e8c32b942662
                endpointId: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                status: pending
                responseStatus: null
                durationMs: null
                attemptedAt: null
                createdAt: '2026-12-04T10:06:00Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: webhook_url_refused, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                webhook_url_refused:
                  $ref: '#/components/examples/error_webhook_url_refused'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        confirm: endpointId
      x-availability: launch
      x-sdk-method: webhookEndpoints.test
      x-updated: '2026-11-05'
  '/events/{eventId}/redeliver':
    post:
      operationId: redeliverEvent
      summary: Redeliver an event
      description: '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. It carries the same event id. The delivery is queued; read its result with getWebhookDelivery.'
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: eventId
          in: path
          required: true
          description: The event's id.
          schema:
            type: string
            format: uuid
          example: 3a8c5f2e-0d9b-4e7a-b6c1-7f4e2a9d0c5b
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedeliverRequest'
            example:
              endpointId: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
      responses:
        '202':
          description: 'The delivery, queued.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDelivery'
              example:
                object: webhook_delivery
                id: 5b9e2c7a-3d1f-4a8e-b6c2-9f0d4e7a1c3b
                eventId: 3a8c5f2e-0d9b-4e7a-b6c1-7f4e2a9d0c5b
                endpointId: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                status: pending
                responseStatus: null
                durationMs: null
                attemptedAt: null
                createdAt: '2026-12-04T10:06:00Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
                invalid_json:
                  $ref: '#/components/examples/error_invalid_json'
                parameter_missing:
                  $ref: '#/components/examples/error_parameter_missing'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
                parameter_unknown:
                  $ref: '#/components/examples/error_parameter_unknown'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '413':
          description: 'The request body is too large. Codes: request_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                request_too_large:
                  $ref: '#/components/examples/error_request_too_large'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '415':
          description: 'Unsupported media type. Codes: unsupported_media_type.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupported_media_type:
                  $ref: '#/components/examples/error_unsupported_media_type'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: webhook_url_refused, idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                webhook_url_refused:
                  $ref: '#/components/examples/error_webhook_url_refused'
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: false
        confirm: endpointId
      x-availability: launch
      x-sdk-method: events.redeliver
      x-updated: '2026-11-05'
  '/webhook-deliveries/{deliveryId}':
    get:
      operationId: getWebhookDelivery
      summary: Get a webhook delivery
      description: 'Use this to read how a test send or a redelivery went: pending, delivered or failed, with your endpoint''s status and timing.'
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: deliveryId
          in: path
          required: true
          description: The delivery's id.
          schema:
            type: string
            format: uuid
          example: 5b9e2c7a-3d1f-4a8e-b6c2-9f0d4e7a1c3b
      responses:
        '200':
          description: The delivery.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDelivery'
              example:
                object: webhook_delivery
                id: 5b9e2c7a-3d1f-4a8e-b6c2-9f0d4e7a1c3b
                eventId: c8a0b2f6-1e4d-5a3b-9c7f-2d6e8a1b4f0c
                endpointId: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                status: delivered
                responseStatus: 200
                durationMs: 184
                attemptedAt: '2026-12-04T10:06:01Z'
                createdAt: '2026-12-04T10:06:00Z'
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: webhookDeliveries.get
      x-updated: '2026-11-05'
  /events:
    get:
      operationId: listEvents
      summary: List events
      description: 'Use this to catch up on events from the last 30 days, newest first, for example after downtime on your side.'
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: type
          in: query
          required: false
          description: Only events of this type.
          schema:
            type: string
            enum:
              - order.paid
              - order.held
              - order.completed
              - order.cancelled
              - service.created
              - service.provisioned
              - service.provisioning_failed
              - service.suspended
              - service.unsuspended
              - service.plan_changed
              - service.cancellation_scheduled
              - service.cancellation_removed
              - service.renewed
              - service.terminating
              - service.terminated
              - action.completed
              - invoice.created
              - invoice.paid
              - invoice.overdue
              - invoice.cancelled
              - wallet.credited
              - ticket.replied
              - ticket.closed
              - api_token.revoked
              - protection.attack_started
              - protection.attack_ended
        - name: createdAfter
          in: query
          required: false
          description: Only events created after this time.
          schema:
            type: string
            format: date-time
        - name: createdBefore
          in: query
          required: false
          description: Only events created before this time.
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: A page of events.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventList'
              example:
                object: list
                data:
                  - object: event
                    id: 3a8c5f2e-0d9b-4e7a-b6c1-7f4e2a9d0c5b
                    type: service.provisioned
                    apiVersion: '2026-12-01'
                    createdAt: '2026-12-04T09:17:51Z'
                    data:
                      object:
                        object: service
                        id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                        type: vps
                        status: active
                        suspensionReason: null
                        deletesAt: null
                        planId: vps-nvme-4-mumbai
                        planName: NVMe VPS 4 GB
                        region: mumbai
                        label: node1
                        reference: client-4471
                        metadata:
                          whmcsServiceId: '18342'
                          plan: starter
                        firewallAvailable: true
                        billing:
                          cycleMonths: 1
                          price:
                            amount: 129900
                            currency: INR
                          currentPeriodStart: '2026-12-04'
                          paidThrough: '2027-01-03'
                          cancelAtPeriodEnd: false
                          endsOn: null
                        server:
                          powerState: running
                          hostname: node1.acme.example
                          ipv4:
                            - 203.0.113.24
                          ipv6:
                            - '2001:db8:4f2a::24'
                          image:
                            object: image
                            id: ubuntu-24.04
                            name: Ubuntu 24.04 LTS
                            family: linux
                          resources:
                            cpuCores: 2
                            memoryMb: 4096
                            diskGb: 80
                            trafficGb: 4000
                          statusUpdatedAt: '2026-12-04T10:02:41Z'
                          stale: false
                        proxy: null
                        createdAt: '2026-12-04T09:15:24Z'
                        livemode: true
                      previousAttributes:
                        status: provisioning
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: events.list
      x-updated: '2026-11-05'
  '/events/{eventId}':
    get:
      operationId: getEvent
      summary: Get an event
      description: Use this to fetch one event by its id.
      tags:
        - Webhooks
      security:
        - bearerAuth:
            - 'webhooks:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: eventId
          in: path
          required: true
          description: The event's id.
          schema:
            type: string
            format: uuid
          example: 3a8c5f2e-0d9b-4e7a-b6c1-7f4e2a9d0c5b
      responses:
        '200':
          description: The event.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Event'
              example:
                object: event
                id: 3a8c5f2e-0d9b-4e7a-b6c1-7f4e2a9d0c5b
                type: service.provisioned
                apiVersion: '2026-12-01'
                createdAt: '2026-12-04T09:17:51Z'
                data:
                  object:
                    object: service
                    id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    type: vps
                    status: active
                    suspensionReason: null
                    deletesAt: null
                    planId: vps-nvme-4-mumbai
                    planName: NVMe VPS 4 GB
                    region: mumbai
                    label: node1
                    reference: client-4471
                    metadata:
                      whmcsServiceId: '18342'
                      plan: starter
                    firewallAvailable: true
                    billing:
                      cycleMonths: 1
                      price:
                        amount: 129900
                        currency: INR
                      currentPeriodStart: '2026-12-04'
                      paidThrough: '2027-01-03'
                      cancelAtPeriodEnd: false
                      endsOn: null
                    server:
                      powerState: running
                      hostname: node1.acme.example
                      ipv4:
                        - 203.0.113.24
                      ipv6:
                        - '2001:db8:4f2a::24'
                      image:
                        object: image
                        id: ubuntu-24.04
                        name: Ubuntu 24.04 LTS
                        family: linux
                      resources:
                        cpuCores: 2
                        memoryMb: 4096
                        diskGb: 80
                        trafficGb: 4000
                      statusUpdatedAt: '2026-12-04T10:02:41Z'
                      stale: false
                    proxy: null
                    createdAt: '2026-12-04T09:15:24Z'
                    livemode: true
                  previousAttributes:
                    status: provisioning
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: events.get
      x-updated: '2026-11-05'
  /api-tokens:
    get:
      operationId: listApiTokens
      summary: List API tokens
      description: Use this to audit which tokens exist and when they were last used. The account owner sees every token on the account; anyone else sees their own.
      tags:
        - API tokens
      security:
        - bearerAuth:
            - 'api_tokens:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of tokens.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiTokenList'
              example:
                object: list
                data:
                  - object: api_token
                    id: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                    name: whmcs-production
                    prefix: cxk_live_
                    lastFour: Q7x2
                    scopes:
                      - 'services:read'
                      - 'services:write'
                      - 'services:lifecycle'
                      - 'services:destructive'
                      - 'orders:read'
                      - 'orders:write'
                      - 'billing:read'
                      - 'ssh_keys:read'
                      - 'ssh_keys:write'
                      - 'webhooks:read'
                    apiVersion: '2026-12-01'
                    ipAllowlist:
                      - 203.0.113.0/24
                    createdBy:
                      personId: 8d1e4b6a-2c3f-4a5b-9d7e-1f0a2b3c4d5e
                      name: Asha Rao
                    createdAt: '2026-12-01T08:15:12Z'
                    expiresAt: '2027-12-01T08:15:12Z'
                    lastUsedAt: '2026-12-04T10:02:41Z'
                    lastUsedIp: 203.0.113.9
                    revokedAt: null
                    revokedReason: null
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: apiTokens.list
      x-updated: '2026-11-05'
  /api-tokens/current:
    get:
      operationId: getCurrentApiToken
      summary: Get the current token
      description: Use this to check what the token you hold may do. Needs no scope.
      tags:
        - API tokens
      security:
        - bearerAuth: []
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
      responses:
        '200':
          description: The token.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiToken'
              example:
                object: api_token
                id: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                name: whmcs-production
                prefix: cxk_live_
                lastFour: Q7x2
                scopes:
                  - 'services:read'
                  - 'services:write'
                  - 'services:lifecycle'
                  - 'services:destructive'
                  - 'orders:read'
                  - 'orders:write'
                  - 'billing:read'
                  - 'ssh_keys:read'
                  - 'ssh_keys:write'
                  - 'webhooks:read'
                apiVersion: '2026-12-01'
                ipAllowlist:
                  - 203.0.113.0/24
                createdBy:
                  personId: 8d1e4b6a-2c3f-4a5b-9d7e-1f0a2b3c4d5e
                  name: Asha Rao
                createdAt: '2026-12-01T08:15:12Z'
                expiresAt: '2027-12-01T08:15:12Z'
                lastUsedAt: '2026-12-04T10:02:41Z'
                lastUsedIp: 203.0.113.9
                revokedAt: null
                revokedReason: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: apiTokens.getCurrent
      x-updated: '2026-11-05'
  '/api-tokens/{tokenId}':
    get:
      operationId: getApiToken
      summary: Get an API token
      description: Use this to read one token's details.
      tags:
        - API tokens
      security:
        - bearerAuth:
            - 'api_tokens:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - name: tokenId
          in: path
          required: true
          description: The token's id.
          schema:
            type: string
            format: uuid
          example: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
      responses:
        '200':
          description: The token.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiToken'
              example:
                object: api_token
                id: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                name: whmcs-production
                prefix: cxk_live_
                lastFour: Q7x2
                scopes:
                  - 'services:read'
                  - 'services:write'
                  - 'services:lifecycle'
                  - 'services:destructive'
                  - 'orders:read'
                  - 'orders:write'
                  - 'billing:read'
                  - 'ssh_keys:read'
                  - 'ssh_keys:write'
                  - 'webhooks:read'
                apiVersion: '2026-12-01'
                ipAllowlist:
                  - 203.0.113.0/24
                createdBy:
                  personId: 8d1e4b6a-2c3f-4a5b-9d7e-1f0a2b3c4d5e
                  name: Asha Rao
                createdAt: '2026-12-01T08:15:12Z'
                expiresAt: '2027-12-01T08:15:12Z'
                lastUsedAt: '2026-12-04T10:02:41Z'
                lastUsedIp: 203.0.113.9
                revokedAt: null
                revokedReason: null
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: apiTokens.get
      x-updated: '2026-11-05'
    delete:
      operationId: revokeApiToken
      summary: Revoke an API token
      description: 'Use this to stop a token working at once, for example after a leak. Any token can revoke itself without a scope; revoking another token needs api_tokens:write. Revoking a revoked token answers it unchanged. New tokens are made only in the panel.'
      tags:
        - API tokens
      security:
        - bearerAuth:
            - 'api_tokens:write'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: tokenId
          in: path
          required: true
          description: The token's id.
          schema:
            type: string
            format: uuid
          example: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
      responses:
        '200':
          description: The revoked token.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiToken'
              example:
                object: api_token
                id: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                name: whmcs-production
                prefix: cxk_live_
                lastFour: Q7x2
                scopes:
                  - 'services:read'
                  - 'services:write'
                  - 'services:lifecycle'
                  - 'services:destructive'
                  - 'orders:read'
                  - 'orders:write'
                  - 'billing:read'
                  - 'ssh_keys:read'
                  - 'ssh_keys:write'
                  - 'webhooks:read'
                apiVersion: '2026-12-01'
                ipAllowlist:
                  - 203.0.113.0/24
                createdBy:
                  personId: 8d1e4b6a-2c3f-4a5b-9d7e-1f0a2b3c4d5e
                  name: Asha Rao
                createdAt: '2026-12-01T08:15:12Z'
                expiresAt: '2027-12-01T08:15:12Z'
                lastUsedAt: '2026-12-04T10:02:41Z'
                lastUsedIp: 203.0.113.9
                revokedAt: '2026-12-04T10:05:00Z'
                revokedReason: user
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                idempotency_key_required:
                  $ref: '#/components/examples/error_idempotency_key_required'
                idempotency_key_invalid:
                  $ref: '#/components/examples/error_idempotency_key_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                forbidden:
                  $ref: '#/components/examples/error_forbidden'
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: idempotency_in_progress.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_in_progress:
                  $ref: '#/components/examples/error_idempotency_in_progress'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '422':
          description: 'The request is well formed but cannot be carried out. Codes: idempotency_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                idempotency_mismatch:
                  $ref: '#/components/examples/error_idempotency_mismatch'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
                outcome_unknown:
                  $ref: '#/components/examples/error_outcome_unknown'
                limits_unavailable:
                  $ref: '#/components/examples/error_limits_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: false
        destructiveHint: true
        idempotentHint: true
        confirm: tokenId
      x-availability: launch
      x-sdk-method: apiTokens.revoke
      x-updated: '2026-11-05'
  '/services/{serviceId}/protection':
    get:
      operationId: getProtection
      summary: Get protection status
      description: '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. It shows only what the panel''s protection page shows for this service.'
      tags:
        - Protection
      security:
        - bearerAuth:
            - 'protection:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
      responses:
        '200':
          description: The protection state.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Protection'
              example:
                object: protection
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                status: under_attack
                mitigating: true
                currentIncidentId: 1c7e4a2f-9b3d-4f6e-a8c1-5d2b0e9f7a4c
                traffic:
                  receivedPps: 912400
                  droppedPps: 908100
                  measuredAt: '2026-12-04T10:02:40Z'
                last24Hours:
                  receivedPackets: 3184001233
                  droppedPackets: 2741980511
                ports:
                  - protocol: tcp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                  - protocol: udp
                    portStart: 30120
                    portEnd: 30120
                    profile: fivem
                    enabled: true
                  - protocol: tcp
                    portStart: 22
                    portEnd: 22
                    profile: generic
                    enabled: true
                protectedSince: '2026-12-04T09:17:51Z'
                updatedAt: '2026-12-04T10:02:40Z'
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: protection_not_available.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                protection_not_available:
                  $ref: '#/components/examples/error_protection_not_available'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: protection.get
      x-updated: '2026-11-05'
  '/services/{serviceId}/protection/incidents':
    get:
      operationId: listProtectionIncidents
      summary: List attacks
      description: 'Use this to read a server''s attack history, newest first: each incident''s start, end, peak, vector and the action taken. Only incidents since this service held its address are listed.'
      tags:
        - Protection
      security:
        - bearerAuth:
            - 'protection:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: status
          in: query
          required: false
          description: Only ongoing or ended incidents.
          schema:
            type: string
            enum:
              - ongoing
              - ended
        - name: startedAfter
          in: query
          required: false
          description: Only incidents that started after this time.
          schema:
            type: string
            format: date-time
        - name: startedBefore
          in: query
          required: false
          description: Only incidents that started before this time.
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: A page of incidents.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProtectionIncidentList'
              example:
                object: list
                data:
                  - object: protection_incident
                    id: 1c7e4a2f-9b3d-4f6e-a8c1-5d2b0e9f7a4c
                    serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    status: ongoing
                    startedAt: '2026-12-04T10:01:12Z'
                    startKnown: true
                    endedAt: null
                    vector: SYN flood
                    targetPort:
                      protocol: tcp
                      port: 30120
                    peakPps: 920000
                    droppedPackets: null
                    actionsTaken:
                      - filtered
                    livemode: true
                  - object: protection_incident
                    id: 6a1f3c8e-2d7b-4e9a-b5c4-8f0e1d3a7b2c
                    serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                    status: ended
                    startedAt: '2026-12-04T03:12:40Z'
                    startKnown: true
                    endedAt: '2026-12-04T03:41:05Z'
                    vector: UDP flood
                    targetPort:
                      protocol: udp
                      port: 30120
                    peakPps: 1840000
                    droppedPackets: 2210448000
                    actionsTaken:
                      - filtered
                      - edge_filtered
                    livemode: true
                hasMore: false
                nextCursor: null
        '400':
          description: 'The request is not valid. Codes: cursor_invalid, version_invalid, parameter_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                cursor_invalid:
                  $ref: '#/components/examples/error_cursor_invalid'
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
                parameter_invalid:
                  $ref: '#/components/examples/error_parameter_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: protection_not_available.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                protection_not_available:
                  $ref: '#/components/examples/error_protection_not_available'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: protection.listIncidents
      x-updated: '2026-11-05'
  '/services/{serviceId}/protection/incidents/{incidentId}':
    get:
      operationId: getProtectionIncident
      summary: Get an attack
      description: 'Use this to read one incident''s figures, for example to show your customer what happened during an outage.'
      tags:
        - Protection
      security:
        - bearerAuth:
            - 'protection:read'
      parameters:
        - $ref: '#/components/parameters/ClouduxeVersion'
        - $ref: '#/components/parameters/ServiceId'
        - name: incidentId
          in: path
          required: true
          description: The incident's id.
          schema:
            type: string
            format: uuid
          example: 6a1f3c8e-2d7b-4e9a-b5c4-8f0e1d3a7b2c
      responses:
        '200':
          description: The incident.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Clouduxe-Version:
              $ref: '#/components/headers/ClouduxeVersion'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProtectionIncident'
              example:
                object: protection_incident
                id: 6a1f3c8e-2d7b-4e9a-b5c4-8f0e1d3a7b2c
                serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                status: ended
                startedAt: '2026-12-04T03:12:40Z'
                startKnown: true
                endedAt: '2026-12-04T03:41:05Z'
                vector: UDP flood
                targetPort:
                  protocol: udp
                  port: 30120
                peakPps: 1840000
                droppedPackets: 2210448000
                actionsTaken:
                  - filtered
                  - edge_filtered
                livemode: true
        '400':
          description: 'The request is not valid. Codes: version_invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                version_invalid:
                  $ref: '#/components/examples/error_version_invalid'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '401':
          description: 'Authentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                token_missing:
                  $ref: '#/components/examples/error_token_missing'
                token_invalid:
                  $ref: '#/components/examples/error_token_invalid'
                token_expired:
                  $ref: '#/components/examples/error_token_expired'
                token_revoked:
                  $ref: '#/components/examples/error_token_revoked'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: 'The token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                ip_not_allowed:
                  $ref: '#/components/examples/error_ip_not_allowed'
                api_access_disabled:
                  $ref: '#/components/examples/error_api_access_disabled'
                scope_missing:
                  $ref: '#/components/examples/error_scope_missing'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '404':
          description: 'Not found. Codes: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '409':
          description: 'The request conflicts with the object''s current state. Codes: protection_not_available.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                protection_not_available:
                  $ref: '#/components/examples/error_protection_not_available'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          description: 'A rate limit was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  $ref: '#/components/examples/error_rate_limited'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: 'Unexpected error. Codes: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal_error:
                  $ref: '#/components/examples/error_internal_error'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '503':
          description: 'Temporarily unavailable. Codes: unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_unavailable'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
      x-mcp:
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
      x-availability: launch
      x-sdk-method: protection.getIncident
      x-updated: '2026-11-05'
webhooks:
  order.paid:
    post:
      operationId: onOrderPaid
      summary: Order paid
      description: An order was paid. Sent to your endpoints subscribed to order.paid. data.object is the order as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 72dc5180-7289-53c0-9567-431772c4e0cf
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: order.paid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 72dc5180-7289-53c0-9567-431772c4e0cf
              type: order.paid
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:15:24Z'
              data:
                object:
                  object: order
                  id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  status: paid
                  items:
                    - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                      planId: vps-nvme-4-mumbai
                      billingCycleMonths: 1
                      hostname: node1.acme.example
                      label: node1
                      price:
                        amount: 129900
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                      reference: client-4471
                      metadata:
                        whmcsServiceId: '18342'
                        plan: starter
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  couponCode: null
                  invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  reference: order-99120
                  metadata:
                    source: whmcs
                  createdAt: '2026-12-04T09:15:22Z'
                  paidAt: '2026-12-04T09:15:24Z'
                  completedAt: null
                  cancelledAt: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  order.held:
    post:
      operationId: onOrderHeld
      summary: Order held
      description: An order was paid and is held for a review before set-up. Sent to your endpoints subscribed to order.held. data.object is the order as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 5e945949-b6a9-5147-ac0f-54f44f70fd66
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: order.held
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 5e945949-b6a9-5147-ac0f-54f44f70fd66
              type: order.held
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:15:24Z'
              data:
                object:
                  object: order
                  id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  status: held
                  items:
                    - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                      planId: vps-nvme-4-mumbai
                      billingCycleMonths: 1
                      hostname: node1.acme.example
                      label: node1
                      price:
                        amount: 129900
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                      reference: client-4471
                      metadata:
                        whmcsServiceId: '18342'
                        plan: starter
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  couponCode: null
                  invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  reference: order-99120
                  metadata:
                    source: whmcs
                  createdAt: '2026-12-04T09:15:22Z'
                  paidAt: '2026-12-04T09:15:24Z'
                  completedAt: null
                  cancelledAt: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  order.completed:
    post:
      operationId: onOrderCompleted
      summary: Order completed
      description: Every service of an order is ready. Sent to your endpoints subscribed to order.completed. data.object is the order as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 24f8697f-d031-5344-b1fe-11d8ffcdea67
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: order.completed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 24f8697f-d031-5344-b1fe-11d8ffcdea67
              type: order.completed
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: order
                  id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  status: completed
                  items:
                    - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                      planId: vps-nvme-4-mumbai
                      billingCycleMonths: 1
                      hostname: node1.acme.example
                      label: node1
                      price:
                        amount: 129900
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                      reference: client-4471
                      metadata:
                        whmcsServiceId: '18342'
                        plan: starter
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  couponCode: null
                  invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  reference: order-99120
                  metadata:
                    source: whmcs
                  createdAt: '2026-12-04T09:15:22Z'
                  paidAt: '2026-12-04T09:15:24Z'
                  completedAt: '2026-12-04T09:17:51Z'
                  cancelledAt: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  order.cancelled:
    post:
      operationId: onOrderCancelled
      summary: Order cancelled
      description: An order was cancelled. Sent to your endpoints subscribed to order.cancelled. data.object is the order as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 6db8907c-26dc-524f-9896-a08d52ad114c
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: order.cancelled
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 6db8907c-26dc-524f-9896-a08d52ad114c
              type: order.cancelled
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: order
                  id: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  status: paid
                  items:
                    - id: 2b8e4f1a-7c3d-4a6e-9b2f-5d1c8a0e3f7b
                      planId: vps-nvme-4-mumbai
                      billingCycleMonths: 1
                      hostname: node1.acme.example
                      label: node1
                      price:
                        amount: 129900
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      actionId: 7d2a9f4c-1b8e-4c5a-a3f6-9e0b2d7c4a1f
                      reference: client-4471
                      metadata:
                        whmcsServiceId: '18342'
                        plan: starter
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  couponCode: null
                  invoiceId: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  reference: order-99120
                  metadata:
                    source: whmcs
                  createdAt: '2026-12-04T09:15:22Z'
                  paidAt: '2026-12-04T09:15:24Z'
                  completedAt: null
                  cancelledAt: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.created:
    post:
      operationId: onServiceCreated
      summary: Service created
      description: A service was created by an order. Provisioning follows. Sent to your endpoints subscribed to service.created. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 516380ed-a49c-5ffe-a5c7-485b7a7dc688
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.created
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 516380ed-a49c-5ffe-a5c7-485b7a7dc688
              type: service.created
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:15:24Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: pending
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: building
                    hostname: node1.acme.example
                    ipv4: []
                    ipv6: []
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: null
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.provisioned:
    post:
      operationId: onServiceProvisioned
      summary: Service provisioned
      description: A service is set up and active. Sent to your endpoints subscribed to service.provisioned. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 3a8c5f2e-0d9b-4e7a-b6c1-7f4e2a9d0c5b
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.provisioned
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 3a8c5f2e-0d9b-4e7a-b6c1-7f4e2a9d0c5b
              type: service.provisioned
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes:
                  status: provisioning
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.provisioning_failed:
    post:
      operationId: onServiceProvisioningFailed
      summary: Service provisioning failed
      description: A service's set-up failed. Staff are notified. Sent to your endpoints subscribed to service.provisioning_failed. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 2527671f-d0f3-5c5c-9630-5870e8175b3b
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.provisioning_failed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 2527671f-d0f3-5c5c-9630-5870e8175b3b
              type: service.provisioning_failed
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.suspended:
    post:
      operationId: onServiceSuspended
      summary: Service suspended
      description: A service was suspended. Sent to your endpoints subscribed to service.suspended. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 723487bd-13c5-5263-bd96-a771f53ed2e3
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.suspended
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 723487bd-13c5-5263-bd96-a771f53ed2e3
              type: service.suspended
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: suspended
                  suspensionReason: overdue
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes:
                  status: active
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.unsuspended:
    post:
      operationId: onServiceUnsuspended
      summary: Service unsuspended
      description: A suspended service is active again. Sent to your endpoints subscribed to service.unsuspended. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: f09e222a-e4ed-5a81-a8b2-fe676a4d16bb
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.unsuspended
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: f09e222a-e4ed-5a81-a8b2-fe676a4d16bb
              type: service.unsuspended
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.plan_changed:
    post:
      operationId: onServicePlanChanged
      summary: Service plan changed
      description: A service moved to another plan. Sent to your endpoints subscribed to service.plan_changed. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: dc54dee9-b1e4-52bc-b6b8-b24c5a8fe40a
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.plan_changed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: dc54dee9-b1e4-52bc-b6b8-b24c5a8fe40a
              type: service.plan_changed
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.cancellation_scheduled:
    post:
      operationId: onServiceCancellationScheduled
      summary: Service cancellation scheduled
      description: A service will end at the end of its period. Sent to your endpoints subscribed to service.cancellation_scheduled. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 350999e3-2b9d-527e-b045-342be5b2dd94
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.cancellation_scheduled
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 350999e3-2b9d-527e-b045-342be5b2dd94
              type: service.cancellation_scheduled
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.cancellation_removed:
    post:
      operationId: onServiceCancellationRemoved
      summary: Service cancellation removed
      description: A scheduled cancellation was undone. Sent to your endpoints subscribed to service.cancellation_removed. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: b4340f5f-8da4-570e-8850-ecbb2b406713
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.cancellation_removed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: b4340f5f-8da4-570e-8850-ecbb2b406713
              type: service.cancellation_removed
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.renewed:
    post:
      operationId: onServiceRenewed
      summary: Service renewed
      description: A service's renewal was paid; paidThrough moved on. Sent to your endpoints subscribed to service.renewed. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: bf5d218d-cbb6-54b0-a830-0c0a7f4735c4
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.renewed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: bf5d218d-cbb6-54b0-a830-0c0a7f4735c4
              type: service.renewed
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.terminating:
    post:
      operationId: onServiceTerminating
      summary: Service terminating
      description: A service was terminated; its server is deleted at deletesAt. Sent to your endpoints subscribed to service.terminating. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 868f3e2a-851f-56a3-acc3-ca70c93f1df3
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.terminating
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 868f3e2a-851f-56a3-acc3-ca70c93f1df3
              type: service.terminating
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  service.terminated:
    post:
      operationId: onServiceTerminated
      summary: Service terminated
      description: A service's server was deleted. Sent to your endpoints subscribed to service.terminated. data.object is the service as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: a4ecaa18-1305-5df2-b734-dd1a1b8343e5
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: service.terminated
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: a4ecaa18-1305-5df2-b734-dd1a1b8343e5
              type: service.terminated
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: service
                  id: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  type: vps
                  status: active
                  suspensionReason: null
                  deletesAt: null
                  planId: vps-nvme-4-mumbai
                  planName: NVMe VPS 4 GB
                  region: mumbai
                  label: node1
                  reference: client-4471
                  metadata:
                    whmcsServiceId: '18342'
                    plan: starter
                  firewallAvailable: true
                  billing:
                    cycleMonths: 1
                    price:
                      amount: 129900
                      currency: INR
                    currentPeriodStart: '2026-12-04'
                    paidThrough: '2027-01-03'
                    cancelAtPeriodEnd: false
                    endsOn: null
                  server:
                    powerState: running
                    hostname: node1.acme.example
                    ipv4:
                      - 203.0.113.24
                    ipv6:
                      - '2001:db8:4f2a::24'
                    image:
                      object: image
                      id: ubuntu-24.04
                      name: Ubuntu 24.04 LTS
                      family: linux
                    resources:
                      cpuCores: 2
                      memoryMb: 4096
                      diskGb: 80
                      trafficGb: 4000
                    statusUpdatedAt: '2026-12-04T10:02:41Z'
                    stale: false
                  proxy: null
                  createdAt: '2026-12-04T09:15:24Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  action.completed:
    post:
      operationId: onActionCompleted
      summary: Action completed
      description: 'An action reached succeeded, failed or unknown. Sent to your endpoints subscribed to action.completed. data.object is the action as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.'
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 719f321d-57d0-584f-9205-4bf26f6d3a55
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: action.completed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 719f321d-57d0-584f-9205-4bf26f6d3a55
              type: action.completed
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:20:40Z'
              data:
                object:
                  object: action
                  id: f5c8b2a1-6e3d-4c9f-b1a7-3d2e9c0f4b6a
                  type: restart
                  status: succeeded
                  serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  orderId: null
                  invoiceId: null
                  failure: null
                  secretAvailable: false
                  secretExpiresAt: null
                  createdAt: '2026-12-04T09:20:11Z'
                  startedAt: '2026-12-04T09:20:11Z'
                  completedAt: '2026-12-04T09:20:39Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  invoice.created:
    post:
      operationId: onInvoiceCreated
      summary: Invoice created
      description: 'An invoice was issued, such as a renewal. Sent to your endpoints subscribed to invoice.created. data.object is the invoice as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.'
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: abe5746a-5902-5d0b-ac1d-b3243b44934b
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: invoice.created
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: abe5746a-5902-5d0b-ac1d-b3243b44934b
              type: invoice.created
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:15:23Z'
              data:
                object:
                  object: invoice
                  id: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  number: C-INV-02731
                  documentType: invoice
                  status: open
                  currency: INR
                  issuedAt: '2026-12-04T09:15:23Z'
                  issueDate: '2026-12-04'
                  dueDate: '2026-12-04'
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  taxBreakdown:
                    cgst: null
                    sgst: null
                    igst:
                      amount: 23382
                      currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  amountPaid:
                    amount: 0
                    currency: INR
                  amountCredited:
                    amount: 0
                    currency: INR
                  amountDue:
                    amount: 153282
                    currency: INR
                  paidAt: null
                  buyerGstin: null
                  placeOfSupply:
                    country: IN
                    gstState: '29'
                  lines:
                    - id: 5c9a1e7f-2d4b-4f8c-b6a3-0e7d1c9f2a4b
                      description: 'NVMe VPS 4 GB (node1.acme.example), 4 Dec 2026 to 3 Jan 2027'
                      quantity: 1
                      unitAmount:
                        amount: 129900
                        currency: INR
                      discount: null
                      net:
                        amount: 129900
                        currency: INR
                      taxRateBp: 1800
                      tax:
                        amount: 23382
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      periodStart: '2026-12-04'
                      periodEnd: '2027-01-03'
                  orderId: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  creditsInvoiceId: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  invoice.paid:
    post:
      operationId: onInvoicePaid
      summary: Invoice paid
      description: An invoice was paid in full. Sent to your endpoints subscribed to invoice.paid. data.object is the invoice as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: fce60d96-6ae4-59ac-ad71-d0d0a1d047c2
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: invoice.paid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: fce60d96-6ae4-59ac-ad71-d0d0a1d047c2
              type: invoice.paid
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:15:24Z'
              data:
                object:
                  object: invoice
                  id: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  number: C-INV-02731
                  documentType: invoice
                  status: paid
                  currency: INR
                  issuedAt: '2026-12-04T09:15:23Z'
                  issueDate: '2026-12-04'
                  dueDate: '2026-12-04'
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  taxBreakdown:
                    cgst: null
                    sgst: null
                    igst:
                      amount: 23382
                      currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  amountPaid:
                    amount: 153282
                    currency: INR
                  amountCredited:
                    amount: 0
                    currency: INR
                  amountDue:
                    amount: 0
                    currency: INR
                  paidAt: '2026-12-04T09:15:24Z'
                  buyerGstin: null
                  placeOfSupply:
                    country: IN
                    gstState: '29'
                  lines:
                    - id: 5c9a1e7f-2d4b-4f8c-b6a3-0e7d1c9f2a4b
                      description: 'NVMe VPS 4 GB (node1.acme.example), 4 Dec 2026 to 3 Jan 2027'
                      quantity: 1
                      unitAmount:
                        amount: 129900
                        currency: INR
                      discount: null
                      net:
                        amount: 129900
                        currency: INR
                      taxRateBp: 1800
                      tax:
                        amount: 23382
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      periodStart: '2026-12-04'
                      periodEnd: '2027-01-03'
                  orderId: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  creditsInvoiceId: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  invoice.overdue:
    post:
      operationId: onInvoiceOverdue
      summary: Invoice overdue
      description: An invoice passed its due date unpaid. Sent to your endpoints subscribed to invoice.overdue. data.object is the invoice as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 8e707d49-f06b-589a-bef4-dc40909c27a0
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: invoice.overdue
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 8e707d49-f06b-589a-bef4-dc40909c27a0
              type: invoice.overdue
              apiVersion: '2026-12-01'
              createdAt: '2026-12-05T00:00:05Z'
              data:
                object:
                  object: invoice
                  id: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  number: C-INV-02731
                  documentType: invoice
                  status: overdue
                  currency: INR
                  issuedAt: '2026-12-04T09:15:23Z'
                  issueDate: '2026-12-04'
                  dueDate: '2026-12-04'
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  taxBreakdown:
                    cgst: null
                    sgst: null
                    igst:
                      amount: 23382
                      currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  amountPaid:
                    amount: 0
                    currency: INR
                  amountCredited:
                    amount: 0
                    currency: INR
                  amountDue:
                    amount: 153282
                    currency: INR
                  paidAt: null
                  buyerGstin: null
                  placeOfSupply:
                    country: IN
                    gstState: '29'
                  lines:
                    - id: 5c9a1e7f-2d4b-4f8c-b6a3-0e7d1c9f2a4b
                      description: 'NVMe VPS 4 GB (node1.acme.example), 4 Dec 2026 to 3 Jan 2027'
                      quantity: 1
                      unitAmount:
                        amount: 129900
                        currency: INR
                      discount: null
                      net:
                        amount: 129900
                        currency: INR
                      taxRateBp: 1800
                      tax:
                        amount: 23382
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      periodStart: '2026-12-04'
                      periodEnd: '2027-01-03'
                  orderId: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  creditsInvoiceId: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  invoice.cancelled:
    post:
      operationId: onInvoiceCancelled
      summary: Invoice cancelled
      description: An invoice was settled by a credit note. Sent to your endpoints subscribed to invoice.cancelled. data.object is the invoice as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 523cb7e3-1a86-5f93-a06d-55d897dd77a1
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: invoice.cancelled
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 523cb7e3-1a86-5f93-a06d-55d897dd77a1
              type: invoice.cancelled
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: invoice
                  id: 9a2e5c1b-7f4d-4b8a-a3c6-1d0e8f2b5c7a
                  number: C-INV-02731
                  documentType: invoice
                  status: paid
                  currency: INR
                  issuedAt: '2026-12-04T09:15:23Z'
                  issueDate: '2026-12-04'
                  dueDate: '2026-12-04'
                  subtotal:
                    amount: 129900
                    currency: INR
                  discount:
                    amount: 0
                    currency: INR
                  tax:
                    amount: 23382
                    currency: INR
                  taxBreakdown:
                    cgst: null
                    sgst: null
                    igst:
                      amount: 23382
                      currency: INR
                  total:
                    amount: 153282
                    currency: INR
                  amountPaid:
                    amount: 153282
                    currency: INR
                  amountCredited:
                    amount: 0
                    currency: INR
                  amountDue:
                    amount: 0
                    currency: INR
                  paidAt: '2026-12-04T09:15:24Z'
                  buyerGstin: null
                  placeOfSupply:
                    country: IN
                    gstState: '29'
                  lines:
                    - id: 5c9a1e7f-2d4b-4f8c-b6a3-0e7d1c9f2a4b
                      description: 'NVMe VPS 4 GB (node1.acme.example), 4 Dec 2026 to 3 Jan 2027'
                      quantity: 1
                      unitAmount:
                        amount: 129900
                        currency: INR
                      discount: null
                      net:
                        amount: 129900
                        currency: INR
                      taxRateBp: 1800
                      tax:
                        amount: 23382
                        currency: INR
                      serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                      periodStart: '2026-12-04'
                      periodEnd: '2027-01-03'
                  orderId: e1b6a3f9-5d2c-4e7b-8a1f-9c4d0b2e6a5f
                  creditsInvoiceId: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  wallet.credited:
    post:
      operationId: onWalletCredited
      summary: Wallet credited
      description: Credit was added to the wallet. Sent to your endpoints subscribed to wallet.credited. data.object is the wallet as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: e6ec978e-18ca-5f63-a4e7-42f4e2af377a
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: wallet.credited
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: e6ec978e-18ca-5f63-a4e7-42f4e2af377a
              type: wallet.credited
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:17:51Z'
              data:
                object:
                  object: wallet
                  balances:
                    - amount: 500000
                      currency: INR
                  topUpCurrency: INR
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  ticket.replied:
    post:
      operationId: onTicketReplied
      summary: Ticket replied
      description: Support replied to a ticket. Sent to your endpoints subscribed to ticket.replied. data.object is the ticket as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 5ae7cb4f-3c10-5f13-bdec-e834bdfd18a5
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: ticket.replied
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 5ae7cb4f-3c10-5f13-bdec-e834bdfd18a5
              type: ticket.replied
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T09:48:56Z'
              data:
                object:
                  object: ticket
                  id: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                  reference: CX-1482
                  subject: IPv6 unreachable on node1
                  status: awaiting_customer
                  priority: high
                  department:
                    object: department
                    id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                    name: Technical support
                  unread: 1
                  messages:
                    - id: b4a7e2c9-1d6f-4e3b-a9c5-8e2d1f0b7a6c
                      author:
                        type: customer
                        name: Acme Hosting
                      body: 'node1 lost its IPv6 route after the restart at 09:20 UTC. IPv4 works.'
                      attachments:
                        - id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                          filename: mtr-ipv6.txt
                          size: 2048
                          type: text/plain
                          removedAt: null
                      createdAt: '2026-12-04T09:31:10Z'
                      redactedAt: null
                    - id: 0e5b3d8a-6f1c-4b9e-8d2a-7c4f1e0a9b3d
                      author:
                        type: staff
                        name: Support
                      body: Thanks. The route is restored; please check from your side.
                      attachments: []
                      createdAt: '2026-12-04T09:48:55Z'
                      redactedAt: null
                  createdAt: '2026-12-04T09:31:10Z'
                  updatedAt: '2026-12-04T09:48:55Z'
                  lastActivityAt: '2026-12-04T09:48:55Z'
                  closedAt: null
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  ticket.closed:
    post:
      operationId: onTicketClosed
      summary: Ticket closed
      description: A ticket was closed. Sent to your endpoints subscribed to ticket.closed. data.object is the ticket as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 2637114c-736d-51ca-8f3a-26d69d20ed37
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: ticket.closed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 2637114c-736d-51ca-8f3a-26d69d20ed37
              type: ticket.closed
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T10:10:01Z'
              data:
                object:
                  object: ticket
                  id: 7c3e9a1d-2b5f-4a8c-9e6d-4f1b0a7c2e9b
                  reference: CX-1482
                  subject: IPv6 unreachable on node1
                  status: closed
                  priority: high
                  department:
                    object: department
                    id: d2f7a4c1-9b3e-4c6a-8e1f-5a0d7b2c9e4f
                    name: Technical support
                  unread: 1
                  messages:
                    - id: b4a7e2c9-1d6f-4e3b-a9c5-8e2d1f0b7a6c
                      author:
                        type: customer
                        name: Acme Hosting
                      body: 'node1 lost its IPv6 route after the restart at 09:20 UTC. IPv4 works.'
                      attachments:
                        - id: 6e1d9b4a-3c7f-4a2e-b8d6-0f5c2a9e1b7d
                          filename: mtr-ipv6.txt
                          size: 2048
                          type: text/plain
                          removedAt: null
                      createdAt: '2026-12-04T09:31:10Z'
                      redactedAt: null
                    - id: 0e5b3d8a-6f1c-4b9e-8d2a-7c4f1e0a9b3d
                      author:
                        type: staff
                        name: Support
                      body: Thanks. The route is restored; please check from your side.
                      attachments: []
                      createdAt: '2026-12-04T09:48:55Z'
                      redactedAt: null
                  createdAt: '2026-12-04T09:31:10Z'
                  updatedAt: '2026-12-04T09:48:55Z'
                  lastActivityAt: '2026-12-04T09:48:55Z'
                  closedAt: '2026-12-04T10:10:00Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  api_token.revoked:
    post:
      operationId: onApiTokenRevoked
      summary: API token revoked
      description: An API token was revoked. Sent to your endpoints subscribed to api_token.revoked. data.object is the api token as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: bc7c3fa1-63be-5e22-8fa3-b5b10544e299
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: api_token.revoked
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: bc7c3fa1-63be-5e22-8fa3-b5b10544e299
              type: api_token.revoked
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T10:05:01Z'
              data:
                object:
                  object: api_token
                  id: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                  name: whmcs-production
                  prefix: cxk_live_
                  lastFour: Q7x2
                  scopes:
                    - 'services:read'
                    - 'services:write'
                    - 'services:lifecycle'
                    - 'services:destructive'
                    - 'orders:read'
                    - 'orders:write'
                    - 'billing:read'
                    - 'ssh_keys:read'
                    - 'ssh_keys:write'
                    - 'webhooks:read'
                  apiVersion: '2026-12-01'
                  ipAllowlist:
                    - 203.0.113.0/24
                  createdBy:
                    personId: 8d1e4b6a-2c3f-4a5b-9d7e-1f0a2b3c4d5e
                    name: Asha Rao
                  createdAt: '2026-12-01T08:15:12Z'
                  expiresAt: '2027-12-01T08:15:12Z'
                  lastUsedAt: '2026-12-04T10:02:41Z'
                  lastUsedIp: 203.0.113.9
                  revokedAt: '2026-12-04T10:05:00Z'
                  revokedReason: user
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  protection.attack_started:
    post:
      operationId: onProtectionAttackStarted
      summary: Attack started
      description: Protection began mitigating an attack on a server. Sent to your endpoints subscribed to protection.attack_started. data.object is the protection incident as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 5045239e-ad22-53ef-bbf2-5981ab6963b2
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: protection.attack_started
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 5045239e-ad22-53ef-bbf2-5981ab6963b2
              type: protection.attack_started
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T10:01:13Z'
              data:
                object:
                  object: protection_incident
                  id: 1c7e4a2f-9b3d-4f6e-a8c1-5d2b0e9f7a4c
                  serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  status: ongoing
                  startedAt: '2026-12-04T10:01:12Z'
                  startKnown: true
                  endedAt: null
                  vector: SYN flood
                  targetPort:
                    protocol: tcp
                    port: 30120
                  peakPps: 920000
                  droppedPackets: null
                  actionsTaken:
                    - filtered
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  protection.attack_ended:
    post:
      operationId: onProtectionAttackEnded
      summary: Attack ended
      description: An attack on a server ended (five minutes without attack traffic). Sent to your endpoints subscribed to protection.attack_ended. data.object is the protection incident as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 2d5d2323-0e5d-5fbd-adb6-f2f22c0fadac
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: protection.attack_ended
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 2d5d2323-0e5d-5fbd-adb6-f2f22c0fadac
              type: protection.attack_ended
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T03:46:06Z'
              data:
                object:
                  object: protection_incident
                  id: 6a1f3c8e-2d7b-4e9a-b5c4-8f0e1d3a7b2c
                  serviceId: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
                  status: ended
                  startedAt: '2026-12-04T03:12:40Z'
                  startKnown: true
                  endedAt: '2026-12-04T03:41:05Z'
                  vector: UDP flood
                  targetPort:
                    protocol: udp
                    port: 30120
                  peakPps: 1840000
                  droppedPackets: 2210448000
                  actionsTaken:
                    - filtered
                    - edge_filtered
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
  webhook_endpoint.test:
    post:
      operationId: onWebhookEndpointTest
      summary: Webhook endpoint test
      description: 'A test event, sent only by testWebhookEndpoint to that endpoint. Not subscribable. Sent to your endpoints subscribed to webhook_endpoint.test. data.object is the webhook endpoint as it was at the event. Answer 2xx within 10 seconds; anything else is retried for up to 3 days.'
      tags:
        - Webhooks
      parameters:
        - name: Clouduxe-Signature
          in: header
          required: true
          description: 't=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint secret>. During a secret rotation there are two v1 values. Verify with a constant-time compare and refuse a t more than 300 seconds from your clock.'
          schema:
            type: string
          example: 't=1796375871,v1=5e1c0f9a7b3d2e8c4f6a1b9d0e7c3a5f2b8d4e6a0c1f9b7d3e5a2c8f0b6d4e1a'
        - name: Clouduxe-Event-Id
          in: header
          required: true
          description: The event's id. Ignore an id you already processed.
          schema:
            type: string
            format: uuid
          example: 32ad3352-4e07-56f8-9b40-e8c32b942662
        - name: Clouduxe-Event-Type
          in: header
          required: true
          description: The event type.
          schema:
            type: string
          example: webhook_endpoint.test
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
            example:
              object: event
              id: 32ad3352-4e07-56f8-9b40-e8c32b942662
              type: webhook_endpoint.test
              apiVersion: '2026-12-01'
              createdAt: '2026-12-04T10:06:00Z'
              data:
                object:
                  object: webhook_endpoint
                  id: 1f4b8e2d-6a9c-4d3f-a7e5-2c0b9d6f3a8e
                  url: 'https://billing.acme.example/clouduxe/webhooks'
                  description: WHMCS production
                  enabledEvents:
                    - service.provisioned
                    - service.suspended
                    - service.terminated
                    - action.completed
                    - invoice.created
                    - invoice.overdue
                  status: enabled
                  apiVersion: '2026-12-01'
                  secret: null
                  createdByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                  updatedByTokenId: 0b7f3c2a-9e4d-4f1a-8c6b-5d2e7a9f1c3b
                  createdAt: '2026-12-01T08:20:00Z'
                  livemode: true
                previousAttributes: null
              livemode: true
      responses:
        2XX:
          description: Received. Any 2xx counts as delivered.
      security: []
      x-availability: launch
      x-updated: '2026-11-05'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: cxk_live_ followed by 46 letters and digits
      description: An API token made in the panel. Each operation lists the scope it needs; a token without it answers scope_missing.
  parameters:
    ClouduxeVersion:
      name: Clouduxe-Version
      in: header
      required: false
      description: 'The API version to use, such as 2026-12-01. Omit it to use your token''s version.'
      schema:
        type: string
        pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
      example: '2026-12-01'
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      description: 'A unique key for this logical request, 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen; a UUID is best. Retrying with the same key is safe: the change happens once and the retry gets the same answer. Keys are kept 48 hours.'
      schema:
        type: string
        pattern: '^[A-Za-z0-9_.:-]{1,128}$'
      example: 6f1c2e9a-4b7d-4e3a-9c8f-1a2b3c4d5e6f
    Limit:
      name: limit
      in: query
      required: false
      description: 'How many objects to return, 1 to 100. Default 20.'
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Cursor:
      name: cursor
      in: query
      required: false
      description: 'The nextCursor of the previous page. Valid for 24 hours, with the same filters.'
      schema:
        type: string
        maxLength: 512
    Reference:
      name: reference
      in: query
      required: false
      description: Only objects with exactly this reference.
      schema:
        type: string
        maxLength: 100
    ServiceId:
      name: serviceId
      in: path
      required: true
      description: The service's id.
      schema:
        type: string
        format: uuid
      example: c3a1f6d2-8b4e-4a9c-b7d5-2e1f0a3c6b8d
  headers:
    XRequestId:
      description: This request's id. Quote it to support.
      schema:
        type: string
      example: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
    ClouduxeVersion:
      description: The API version this response was served with.
      schema:
        type: string
      example: '2026-12-01'
    RateLimitLimit:
      description: Requests allowed in the window of the limit nearest to running out.
      schema:
        type: integer
      example: 1200
    RateLimitRemaining:
      description: Requests left in that window.
      schema:
        type: integer
      example: 1187
    RateLimitReset:
      description: Seconds until that window frees a request.
      schema:
        type: integer
      example: 42
    RateLimitPolicy:
      description: 'That limit''s policy: requests and window in seconds.'
      schema:
        type: string
      example: 1200;w=60
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
      example: 5
    IdempotentReplayed:
      description: true when this answer is the stored answer of an earlier request with the same Idempotency-Key.
      schema:
        type: string
        enum:
          - 'true'
      example: 'true'
  examples:
    error_token_missing:
      summary: token_missing (401)
      value:
        error:
          type: authentication_error
          code: token_missing
          message: 'No API token was sent. Send it as Authorization: Bearer <token>.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#token_missing'
    error_token_invalid:
      summary: token_invalid (401)
      value:
        error:
          type: authentication_error
          code: token_invalid
          message: The API token is not valid.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#token_invalid'
    error_token_expired:
      summary: token_expired (401)
      value:
        error:
          type: authentication_error
          code: token_expired
          message: The API token has expired.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#token_expired'
    error_token_revoked:
      summary: token_revoked (401)
      value:
        error:
          type: authentication_error
          code: token_revoked
          message: The API token was revoked.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#token_revoked'
    error_version_invalid:
      summary: version_invalid (400)
      value:
        error:
          type: invalid_request_error
          code: version_invalid
          message: Clouduxe-Version does not name an API version.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#version_invalid'
    error_scope_missing:
      summary: scope_missing (403)
      value:
        error:
          type: permission_error
          code: scope_missing
          message: This API token does not have the scope this operation needs.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#scope_missing'
    error_ip_not_allowed:
      summary: ip_not_allowed (403)
      value:
        error:
          type: permission_error
          code: ip_not_allowed
          message: This request came from an address outside the token's IP allowlist.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ip_not_allowed'
    error_forbidden:
      summary: forbidden (403)
      value:
        error:
          type: permission_error
          code: forbidden
          message: Your role on this service does not allow this action.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#forbidden'
    error_api_ordering_disabled:
      summary: api_ordering_disabled (403)
      value:
        error:
          type: permission_error
          code: api_ordering_disabled
          message: Ordering through the API is switched off for this account.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#api_ordering_disabled'
    error_api_access_disabled:
      summary: api_access_disabled (403)
      value:
        error:
          type: permission_error
          code: api_access_disabled
          message: API access is paused for this account.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#api_access_disabled'
    error_ssh_keys_not_allowed:
      summary: ssh_keys_not_allowed (403)
      value:
        error:
          type: permission_error
          code: ssh_keys_not_allowed
          message: Only the account owner can pass SSH keys to a reinstall.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ssh_keys_not_allowed'
    error_not_found:
      summary: not_found (404)
      value:
        error:
          type: not_found_error
          code: not_found
          message: 'No such object, or it is not visible to this token.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#not_found'
    error_invalid_json:
      summary: invalid_json (400)
      value:
        error:
          type: invalid_request_error
          code: invalid_json
          message: The request body is not valid JSON.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#invalid_json'
    error_parameter_missing:
      summary: parameter_missing (400)
      value:
        error:
          type: invalid_request_error
          code: parameter_missing
          message: A required field is missing.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#parameter_missing'
    error_parameter_invalid:
      summary: parameter_invalid (400)
      value:
        error:
          type: invalid_request_error
          code: parameter_invalid
          message: A field has the wrong type or is out of range.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#parameter_invalid'
    error_parameter_unknown:
      summary: parameter_unknown (400)
      value:
        error:
          type: invalid_request_error
          code: parameter_unknown
          message: The request has a field this operation does not take.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#parameter_unknown'
    error_metadata_invalid:
      summary: metadata_invalid (400)
      value:
        error:
          type: invalid_request_error
          code: metadata_invalid
          message: 'metadata takes at most 20 keys of up to 40 characters, each with a string value of up to 500 characters.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#metadata_invalid'
    error_cursor_invalid:
      summary: cursor_invalid (400)
      value:
        error:
          type: invalid_request_error
          code: cursor_invalid
          message: 'The cursor is malformed, has expired, or belongs to a list with other filters.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#cursor_invalid'
    error_request_too_large:
      summary: request_too_large (413)
      value:
        error:
          type: invalid_request_error
          code: request_too_large
          message: The request body is larger than 1 MiB.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#request_too_large'
    error_unsupported_media_type:
      summary: unsupported_media_type (415)
      value:
        error:
          type: invalid_request_error
          code: unsupported_media_type
          message: The request body must be application/json.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#unsupported_media_type'
    error_idempotency_key_required:
      summary: idempotency_key_required (400)
      value:
        error:
          type: idempotency_error
          code: idempotency_key_required
          message: This request needs an Idempotency-Key header.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#idempotency_key_required'
    error_idempotency_key_invalid:
      summary: idempotency_key_invalid (400)
      value:
        error:
          type: idempotency_error
          code: idempotency_key_invalid
          message: 'Idempotency-Key must be 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#idempotency_key_invalid'
    error_idempotency_mismatch:
      summary: idempotency_mismatch (422)
      value:
        error:
          type: idempotency_error
          code: idempotency_mismatch
          message: This Idempotency-Key was already used with a different request.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#idempotency_mismatch'
    error_idempotency_in_progress:
      summary: idempotency_in_progress (409)
      value:
        error:
          type: idempotency_error
          code: idempotency_in_progress
          message: A request with this Idempotency-Key is still running.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#idempotency_in_progress'
    error_plan_unavailable:
      summary: plan_unavailable (422)
      value:
        error:
          type: invalid_request_error
          code: plan_unavailable
          message: This plan cannot be ordered.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#plan_unavailable'
    error_cycle_unavailable:
      summary: cycle_unavailable (422)
      value:
        error:
          type: invalid_request_error
          code: cycle_unavailable
          message: This plan has no orderable price for that billing cycle.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#cycle_unavailable'
    error_out_of_stock:
      summary: out_of_stock (409)
      value:
        error:
          type: conflict_error
          code: out_of_stock
          message: This plan is sold out.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#out_of_stock'
    error_option_invalid:
      summary: option_invalid (422)
      value:
        error:
          type: invalid_request_error
          code: option_invalid
          message: 'An option is missing, unknown, or not offered on this plan.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#option_invalid'
    error_hostname_invalid:
      summary: hostname_invalid (422)
      value:
        error:
          type: invalid_request_error
          code: hostname_invalid
          message: The hostname must be a valid DNS name of at most 253 characters.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#hostname_invalid'
    error_image_unavailable:
      summary: image_unavailable (422)
      value:
        error:
          type: invalid_request_error
          code: image_unavailable
          message: This OS image is not offered here.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#image_unavailable'
    error_ssh_key_invalid:
      summary: ssh_key_invalid (422)
      value:
        error:
          type: invalid_request_error
          code: ssh_key_invalid
          message: The public key is not one accepted OpenSSH public key line.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ssh_key_invalid'
    error_ssh_key_unknown:
      summary: ssh_key_unknown (422)
      value:
        error:
          type: invalid_request_error
          code: ssh_key_unknown
          message: An SSH key id is not in this account's key library.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ssh_key_unknown'
    error_too_many_ssh_keys:
      summary: too_many_ssh_keys (422)
      value:
        error:
          type: invalid_request_error
          code: too_many_ssh_keys
          message: Too many SSH keys for one request.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#too_many_ssh_keys'
    error_origin_invalid:
      summary: origin_invalid (422)
      value:
        error:
          type: invalid_request_error
          code: origin_invalid
          message: The proxy origin must be one of this account's own servers.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#origin_invalid'
    error_quote_incomplete:
      summary: quote_incomplete (422)
      value:
        error:
          type: invalid_request_error
          code: quote_incomplete
          message: The price cannot be fixed until the account's billing details are complete.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#quote_incomplete'
    error_billing_currency_unknown:
      summary: billing_currency_unknown (422)
      value:
        error:
          type: invalid_request_error
          code: billing_currency_unknown
          message: The account has no billing currency yet.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#billing_currency_unknown'
    error_coupon_invalid:
      summary: coupon_invalid (422)
      value:
        error:
          type: invalid_request_error
          code: coupon_invalid
          message: This coupon does not exist or does not apply to this order.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#coupon_invalid'
    error_coupon_exhausted:
      summary: coupon_exhausted (409)
      value:
        error:
          type: conflict_error
          code: coupon_exhausted
          message: This coupon has no uses left.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#coupon_exhausted'
    error_terms_outdated:
      summary: terms_outdated (409)
      value:
        error:
          type: conflict_error
          code: terms_outdated
          message: Updated terms of service must be accepted before ordering.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#terms_outdated'
    error_insufficient_credit:
      summary: insufficient_credit (402)
      value:
        error:
          type: payment_error
          code: insufficient_credit
          message: Wallet credit in the order's currency does not cover the total. Nothing was ordered.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#insufficient_credit'
    error_credit_currency_mismatch:
      summary: credit_currency_mismatch (402)
      value:
        error:
          type: payment_error
          code: credit_currency_mismatch
          message: The wallet holds no credit in this order's currency. Credit is never converted.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#credit_currency_mismatch'
    error_order_limit_reached:
      summary: order_limit_reached (429)
      value:
        error:
          type: rate_limit_error
          code: order_limit_reached
          message: This account has ordered its hourly maximum of services.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#order_limit_reached'
    error_account_closed:
      summary: account_closed (409)
      value:
        error:
          type: conflict_error
          code: account_closed
          message: This account is closed.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#account_closed'
    error_service_locked:
      summary: service_locked (423)
      value:
        error:
          type: conflict_error
          code: service_locked
          message: 'This service is suspended, cancelled or terminated.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#service_locked'
    error_service_not_ready:
      summary: service_not_ready (409)
      value:
        error:
          type: conflict_error
          code: service_not_ready
          message: This service is still being set up.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#service_not_ready'
    error_service_unconfirmed:
      summary: service_unconfirmed (423)
      value:
        error:
          type: conflict_error
          code: service_unconfirmed
          message: Actions on this server are paused while its ownership is re-checked.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#service_unconfirmed'
    error_service_building:
      summary: service_building (409)
      value:
        error:
          type: conflict_error
          code: service_building
          message: A build or reinstall is running on this server.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#service_building'
    error_reinstall_in_doubt:
      summary: reinstall_in_doubt (409)
      value:
        error:
          type: conflict_error
          code: reinstall_in_doubt
          message: 'A recent reinstall''s outcome is unknown, so another is refused for up to 15 minutes.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#reinstall_in_doubt'
    error_plan_change_open:
      summary: plan_change_open (409)
      value:
        error:
          type: conflict_error
          code: plan_change_open
          message: A plan change for this service is already paid and waiting to be applied.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#plan_change_open'
    error_previous_change_pending:
      summary: previous_change_pending (409)
      value:
        error:
          type: conflict_error
          code: previous_change_pending
          message: An earlier plan change is waiting for the server's next power cycle.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#previous_change_pending'
    error_plan_change_too_soon:
      summary: plan_change_too_soon (409)
      value:
        error:
          type: conflict_error
          code: plan_change_too_soon
          message: This service had a plan change request in the last 10 minutes.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#plan_change_too_soon'
    error_renewal_in_progress:
      summary: renewal_in_progress (409)
      value:
        error:
          type: conflict_error
          code: renewal_in_progress
          message: 'A renewal for the next period is already paid, so the plan cannot change through the API.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#renewal_in_progress'
    error_currency_not_offered:
      summary: currency_not_offered (409)
      value:
        error:
          type: conflict_error
          code: currency_not_offered
          message: The target plan is not offered in this service's currency.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#currency_not_offered'
    error_plan_change_unavailable:
      summary: plan_change_unavailable (503)
      value:
        error:
          type: api_error
          code: plan_change_unavailable
          message: Plan changes for this service are paused for a moment. Nothing was changed.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#plan_change_unavailable'
    error_service_ended:
      summary: service_ended (409)
      value:
        error:
          type: conflict_error
          code: service_ended
          message: 'This service has ended, so its cancellation cannot change.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#service_ended'
    error_cancellation_final:
      summary: cancellation_final (409)
      value:
        error:
          type: conflict_error
          code: cancellation_final
          message: 'The paid period has ended, so the cancellation can no longer be undone.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#cancellation_final'
    error_secret_unavailable:
      summary: secret_unavailable (410)
      value:
        error:
          type: conflict_error
          code: secret_unavailable
          message: 'This action''s secret was deleted, has expired, was read 5 times, or never existed.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#secret_unavailable'
    error_webhook_endpoint_limit:
      summary: webhook_endpoint_limit (409)
      value:
        error:
          type: conflict_error
          code: webhook_endpoint_limit
          message: This account already has 10 webhook endpoints.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#webhook_endpoint_limit'
    error_webhook_url_refused:
      summary: webhook_url_refused (422)
      value:
        error:
          type: invalid_request_error
          code: webhook_url_refused
          message: 'The webhook URL must be https on port 443 or 8443, with a public DNS name that is not a Clouduxe host.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#webhook_url_refused'
    error_plan_change_not_allowed:
      summary: plan_change_not_allowed (422)
      value:
        error:
          type: invalid_request_error
          code: plan_change_not_allowed
          message: This plan is not an allowed change for this service.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#plan_change_not_allowed'
    error_termination_pending:
      summary: termination_pending (409)
      value:
        error:
          type: conflict_error
          code: termination_pending
          message: This service is already being terminated.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#termination_pending'
    error_confirmation_mismatch:
      summary: confirmation_mismatch (422)
      value:
        error:
          type: invalid_request_error
          code: confirmation_mismatch
          message: confirm must equal the service's id.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#confirmation_mismatch'
    error_ip_address_invalid:
      summary: ip_address_invalid (422)
      value:
        error:
          type: invalid_request_error
          code: ip_address_invalid
          message: Send one IPv4 address.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ip_address_invalid'
    error_ip_range_unsupported:
      summary: ip_range_unsupported (422)
      value:
        error:
          type: invalid_request_error
          code: ip_range_unsupported
          message: Address ranges are not supported here. Send one IPv4 address.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ip_range_unsupported'
    error_ip_already_listed:
      summary: ip_already_listed (409)
      value:
        error:
          type: conflict_error
          code: ip_already_listed
          message: That address is already on this list.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ip_already_listed'
    error_ip_is_own_address:
      summary: ip_is_own_address (422)
      value:
        error:
          type: invalid_request_error
          code: ip_is_own_address
          message: That is this server's own address.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ip_is_own_address'
    error_ip_is_infrastructure:
      summary: ip_is_infrastructure (422)
      value:
        error:
          type: invalid_request_error
          code: ip_is_infrastructure
          message: That address serves this server's protection and cannot be blocked or removed.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ip_is_infrastructure'
    error_firewall_rule_limit:
      summary: firewall_rule_limit (422)
      value:
        error:
          type: invalid_request_error
          code: firewall_rule_limit
          message: This server already has 15 firewall rules.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_rule_limit'
    error_firewall_rule_overlap:
      summary: firewall_rule_overlap (409)
      value:
        error:
          type: conflict_error
          code: firewall_rule_overlap
          message: The rule's ports overlap another rule of the same protocol.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_rule_overlap'
    error_firewall_rule_exists:
      summary: firewall_rule_exists (409)
      value:
        error:
          type: conflict_error
          code: firewall_rule_exists
          message: A rule with this protocol and first port already exists.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_rule_exists'
    error_firewall_would_block_all:
      summary: firewall_would_block_all (409)
      value:
        error:
          type: conflict_error
          code: firewall_would_block_all
          message: 'This change would leave no enabled rule while the default policy denies, which blocks every port.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_would_block_all'
    error_firewall_preset_unavailable:
      summary: firewall_preset_unavailable (422)
      value:
        error:
          type: invalid_request_error
          code: firewall_preset_unavailable
          message: No such firewall preset is available.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_preset_unavailable'
    error_firewall_preset_covered:
      summary: firewall_preset_covered (409)
      value:
        error:
          type: conflict_error
          code: firewall_preset_covered
          message: Every rule of this preset is already covered.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_preset_covered'
    error_firewall_not_available:
      summary: firewall_not_available (409)
      value:
        error:
          type: conflict_error
          code: firewall_not_available
          message: Protection is not set up for this server yet.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_not_available'
    error_firewall_resetting:
      summary: firewall_resetting (423)
      value:
        error:
          type: conflict_error
          code: firewall_resetting
          message: 'This address recently changed hands, and its firewall is being reset.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_resetting'
    error_firewall_value_refused:
      summary: firewall_value_refused (422)
      value:
        error:
          type: invalid_request_error
          code: firewall_value_refused
          message: The protection service refused one of the rule's values.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#firewall_value_refused'
    error_department_unavailable:
      summary: department_unavailable (422)
      value:
        error:
          type: invalid_request_error
          code: department_unavailable
          message: This support department is not available.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#department_unavailable'
    error_attachment_unavailable:
      summary: attachment_unavailable (422)
      value:
        error:
          type: invalid_request_error
          code: attachment_unavailable
          message: 'An attachment is not uploaded, not yours, or already used.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#attachment_unavailable'
    error_ticket_closed:
      summary: ticket_closed (409)
      value:
        error:
          type: conflict_error
          code: ticket_closed
          message: This ticket is closed.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#ticket_closed'
    error_protection_not_available:
      summary: protection_not_available (409)
      value:
        error:
          type: conflict_error
          code: protection_not_available
          message: 'This service has no protection data to show: it is not a protected server, or protection is not set up yet.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#protection_not_available'
    error_rate_limited:
      summary: rate_limited (429)
      value:
        error:
          type: rate_limit_error
          code: rate_limited
          message: Too many requests.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#rate_limited'
    error_action_limit_reached:
      summary: action_limit_reached (429)
      value:
        error:
          type: rate_limit_error
          code: action_limit_reached
          message: This service has reached its limit for this action.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#action_limit_reached'
    error_outcome_unknown:
      summary: outcome_unknown (503)
      value:
        error:
          type: api_error
          code: outcome_unknown
          message: The request may or may not have taken effect.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#outcome_unknown'
    error_maintenance:
      summary: maintenance (503)
      value:
        error:
          type: api_error
          code: maintenance
          message: This kind of change is paused for maintenance. Reads still work.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#maintenance'
    error_actions_unavailable:
      summary: actions_unavailable (503)
      value:
        error:
          type: api_error
          code: actions_unavailable
          message: Server actions are paused for a moment.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#actions_unavailable'
    error_orders_unavailable:
      summary: orders_unavailable (503)
      value:
        error:
          type: api_error
          code: orders_unavailable
          message: Ordering is paused for a moment. Nothing was ordered.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#orders_unavailable'
    error_platform_unavailable:
      summary: platform_unavailable (503)
      value:
        error:
          type: api_error
          code: platform_unavailable
          message: The server platform could not be reached. Nothing was changed.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#platform_unavailable'
    error_limits_unavailable:
      summary: limits_unavailable (503)
      value:
        error:
          type: api_error
          code: limits_unavailable
          message: 'Rate limits could not be checked, so the change was refused.'
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#limits_unavailable'
    error_files_unavailable:
      summary: files_unavailable (503)
      value:
        error:
          type: api_error
          code: files_unavailable
          message: File storage could not be reached.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#files_unavailable'
    error_unavailable:
      summary: unavailable (503)
      value:
        error:
          type: api_error
          code: unavailable
          message: The API is briefly unavailable.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#unavailable'
    error_internal_error:
      summary: internal_error (500)
      value:
        error:
          type: api_error
          code: internal_error
          message: An unexpected error occurred. It has been logged with this request id.
          param: null
          requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
          docUrl: 'https://docs.clouduxe.com/api/errors#internal_error'
  schemas:
    Money:
      type: object
      description: 'An amount of money: an integer in the currency''s smallest unit (paise, cents) and its ISO 4217 currency. Never a float. For INR, 129900 is INR 1,299.00.'
      properties:
        amount:
          type: integer
          description: The amount in the currency's smallest unit. For INR and USD that is one hundredth of the unit.
          minimum: -9007199254740991
          maximum: 9007199254740991
        currency:
          type: string
          description: 'The ISO 4217 currency code, upper case.'
          pattern: '^[A-Z]{3}$'
      required:
        - amount
        - currency
      examples:
        - amount: 129900
          currency: INR
    Metadata:
      type: object
      description: 'Your own key-value data, for your bookkeeping. At most 20 keys; each key 1 to 40 characters of letters, digits, underscore or hyphen; each value a string of at most 500 characters. Stored as plain text and returned to every token that can read the object, so never put secrets here. On update, the object you send is merged: a key set to null is removed, and keys you do not send are kept.'
      maxProperties: 20
      propertyNames:
        pattern: '^[A-Za-z0-9_-]{1,40}$'
      additionalProperties:
        type: string
        maxLength: 500
      examples:
        - whmcsServiceId: '18342'
          plan: starter
    MetadataUpdate:
      type: object
      description: Keys to set or remove. A string value sets the key; null removes it; keys you leave out are kept. The result must still fit the metadata limits.
      maxProperties: 20
      propertyNames:
        pattern: '^[A-Za-z0-9_-]{1,40}$'
      additionalProperties:
        type:
          - string
          - 'null'
        maxLength: 500
      examples:
        - plan: pro
          legacy: null
    ErrorCode:
      type: string
      enum:
        - account_closed
        - action_limit_reached
        - actions_unavailable
        - api_access_disabled
        - api_ordering_disabled
        - attachment_unavailable
        - billing_currency_unknown
        - cancellation_final
        - confirmation_mismatch
        - coupon_exhausted
        - coupon_invalid
        - credit_currency_mismatch
        - currency_not_offered
        - cursor_invalid
        - cycle_unavailable
        - department_unavailable
        - files_unavailable
        - firewall_not_available
        - firewall_preset_covered
        - firewall_preset_unavailable
        - firewall_resetting
        - firewall_rule_exists
        - firewall_rule_limit
        - firewall_rule_overlap
        - firewall_value_refused
        - firewall_would_block_all
        - forbidden
        - hostname_invalid
        - idempotency_in_progress
        - idempotency_key_invalid
        - idempotency_key_required
        - idempotency_mismatch
        - image_unavailable
        - insufficient_credit
        - internal_error
        - invalid_json
        - ip_address_invalid
        - ip_already_listed
        - ip_is_infrastructure
        - ip_is_own_address
        - ip_not_allowed
        - ip_range_unsupported
        - limits_unavailable
        - maintenance
        - metadata_invalid
        - method_not_allowed
        - not_found
        - option_invalid
        - order_limit_reached
        - orders_unavailable
        - origin_invalid
        - out_of_stock
        - outcome_unknown
        - parameter_invalid
        - parameter_missing
        - parameter_unknown
        - plan_change_not_allowed
        - plan_change_open
        - plan_change_too_soon
        - plan_change_unavailable
        - plan_unavailable
        - platform_unavailable
        - previous_change_pending
        - protection_not_available
        - quote_incomplete
        - rate_limited
        - reinstall_in_doubt
        - renewal_in_progress
        - request_too_large
        - scope_missing
        - secret_unavailable
        - service_building
        - service_ended
        - service_locked
        - service_not_ready
        - service_unconfirmed
        - ssh_key_invalid
        - ssh_key_unknown
        - ssh_keys_not_allowed
        - termination_pending
        - terms_outdated
        - ticket_closed
        - token_expired
        - token_invalid
        - token_missing
        - token_revoked
        - too_many_ssh_keys
        - unavailable
        - unsupported_media_type
        - version_invalid
        - webhook_endpoint_limit
        - webhook_url_refused
      description: |
        Every error code, its HTTP status, what it means and what to do.

        | Code | Status | Meaning | What to do |
        |---|---|---|---|
        | `account_closed` | 409 | This account is closed. | No action is possible on a closed account. |
        | `action_limit_reached` | 429 | This service has reached its limit for this action. | Retry after Retry-After seconds. |
        | `actions_unavailable` | 503 | Server actions are paused for a moment. | Retry after Retry-After seconds. |
        | `api_access_disabled` | 403 | API access is paused for this account. | Contact support. |
        | `api_ordering_disabled` | 403 | Ordering through the API is switched off for this account. | The account owner can switch it on in the panel, under API settings. |
        | `attachment_unavailable` | 422 | An attachment is not uploaded, not yours, or already used. | Upload the file again and pass the new attachmentId. |
        | `billing_currency_unknown` | 422 | The account has no billing currency yet. | Add a billing address in the panel. |
        | `cancellation_final` | 409 | The paid period has ended, so the cancellation can no longer be undone. | Order a new service if you need one. |
        | `confirmation_mismatch` | 422 | confirm must equal the service's id. | Send the service's own id in confirm. |
        | `coupon_exhausted` | 409 | This coupon has no uses left. | Order again without couponCode. |
        | `coupon_invalid` | 422 | This coupon does not exist or does not apply to this order. | Remove or change couponCode. |
        | `credit_currency_mismatch` | 402 | The wallet holds no credit in this order's currency. Credit is never converted. | Add credit in the order's currency in the panel. |
        | `currency_not_offered` | 409 | The target plan is not offered in this service's currency. | Open a support ticket. |
        | `cursor_invalid` | 400 | The cursor is malformed, has expired, or belongs to a list with other filters. | Start the list again without a cursor. |
        | `cycle_unavailable` | 422 | This plan has no orderable price for that billing cycle. | Pick one of the plan's cycles. |
        | `department_unavailable` | 422 | This support department is not available. | Use a department from GET /v1/support/departments. |
        | `files_unavailable` | 503 | File storage could not be reached. | Retry shortly. |
        | `firewall_not_available` | 409 | Protection is not set up for this server yet. | Retry later, or contact support. |
        | `firewall_preset_covered` | 409 | Every rule of this preset is already covered. | No action is needed. |
        | `firewall_preset_unavailable` | 422 | No such firewall preset is available. | Use a preset from GET /v1/firewall-presets. |
        | `firewall_resetting` | 423 | This address recently changed hands, and its firewall is being reset. | Retry in a few minutes. |
        | `firewall_rule_exists` | 409 | A rule with this protocol and first port already exists. | Edit it instead. |
        | `firewall_rule_limit` | 422 | This server already has 15 firewall rules. | Remove or merge rules first. |
        | `firewall_rule_overlap` | 409 | The rule's ports overlap another rule of the same protocol. | Edit the existing rule instead. |
        | `firewall_value_refused` | 422 | The protection service refused one of the rule's values. | Check the rule's limits in the reference. |
        | `firewall_would_block_all` | 409 | This change would leave no enabled rule while the default policy denies, which blocks every port. | Enable another rule first, or set the default policy to allow. |
        | `forbidden` | 403 | Your role on this service does not allow this action. | Ask the account owner for access, or use the owner's token. |
        | `hostname_invalid` | 422 | The hostname must be a valid DNS name of at most 253 characters. | Send DNS labels of letters, digits and hyphens joined by dots. |
        | `idempotency_in_progress` | 409 | A request with this Idempotency-Key is still running. | Retry after Retry-After seconds with the same key. |
        | `idempotency_key_invalid` | 400 | Idempotency-Key must be 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen. | Use a UUID. |
        | `idempotency_key_required` | 400 | This request needs an Idempotency-Key header. | Send a new unique key, such as a UUID, for each logical request. |
        | `idempotency_mismatch` | 422 | This Idempotency-Key was already used with a different request. | Use a new key for a new request. |
        | `image_unavailable` | 422 | This OS image is not offered here. | Use an image from the plan's orderForm, or from GET /v1/services/{serviceId}/images. |
        | `insufficient_credit` | 402 | Wallet credit in the order's currency does not cover the total. Nothing was ordered. | Add credit in the panel, then try again. |
        | `internal_error` | 500 | An unexpected error occurred. It has been logged with this request id. | Retry once. If it repeats, contact support with the requestId. |
        | `invalid_json` | 400 | The request body is not valid JSON. | Send a JSON body. |
        | `ip_address_invalid` | 422 | Send one IPv4 address. | Send a single dotted IPv4 address. |
        | `ip_already_listed` | 409 | That address is already on this list. | No action is needed, or remove it first to change it. |
        | `ip_is_infrastructure` | 422 | That address serves this server's protection and cannot be blocked or removed. | No action is possible for this address. |
        | `ip_is_own_address` | 422 | That is this server's own address. | Do not block your own server. |
        | `ip_not_allowed` | 403 | This request came from an address outside the token's IP allowlist. | Call from an allowed address, or change the allowlist in the panel. |
        | `ip_range_unsupported` | 422 | Address ranges are not supported here. Send one IPv4 address. | Send single addresses. |
        | `limits_unavailable` | 503 | Rate limits could not be checked, so the change was refused. | Retry shortly. |
        | `maintenance` | 503 | This kind of change is paused for maintenance. Reads still work. | Retry after Retry-After seconds. |
        | `metadata_invalid` | 400 | metadata takes at most 20 keys of up to 40 characters, each with a string value of up to 500 characters. | Fix the keys or values. |
        | `method_not_allowed` | 405 | This path does not take this HTTP method. | Check the method in the reference. |
        | `not_found` | 404 | No such object, or it is not visible to this token. | Check the id, and that the token belongs to the right account. |
        | `option_invalid` | 422 | An option is missing, unknown, or not offered on this plan. | Use the option groups in the plan's orderForm. |
        | `order_limit_reached` | 429 | This account has ordered its hourly maximum of services. | Retry after Retry-After seconds, or ask support to raise the limit. |
        | `orders_unavailable` | 503 | Ordering is paused for a moment. Nothing was ordered. | Retry after Retry-After seconds. |
        | `origin_invalid` | 422 | The proxy origin must be one of this account's own servers. | Send a service id, or an IPv4 address of one of your servers. |
        | `out_of_stock` | 409 | This plan is sold out. | Pick another plan or region, or try again later. |
        | `outcome_unknown` | 503 | The request may or may not have taken effect. | Retry with the same Idempotency-Key: the retry answers what happened, or does it once. |
        | `parameter_invalid` | 400 | A field has the wrong type or is out of range. | Fix the field named in param. The reference gives each field's rules. |
        | `parameter_missing` | 400 | A required field is missing. | Send the field named in param. |
        | `parameter_unknown` | 400 | The request has a field this operation does not take. | Remove the field named in param. |
        | `plan_change_not_allowed` | 422 | This plan is not an allowed change for this service. | Pick a plan from GET /v1/services/{serviceId}/plan-options. |
        | `plan_change_open` | 409 | A plan change for this service is already paid and waiting to be applied. | Wait for its plan_change action to finish. |
        | `plan_change_too_soon` | 409 | This service had a plan change request in the last 10 minutes. | Retry after Retry-After seconds. |
        | `plan_change_unavailable` | 503 | Plan changes for this service are paused for a moment. Nothing was changed. | Retry after Retry-After seconds. |
        | `plan_unavailable` | 422 | This plan cannot be ordered. | Pick a plan from GET /v1/plans. |
        | `platform_unavailable` | 503 | The server platform could not be reached. Nothing was changed. | Retry shortly. |
        | `previous_change_pending` | 409 | An earlier plan change is waiting for the server's next power cycle. | Restart the server, wait for the change to apply, then try again. |
        | `protection_not_available` | 409 | This service has no protection data to show: it is not a protected server, or protection is not set up yet. | For a protected proxy, ask support. Otherwise retry once the service is active. |
        | `quote_incomplete` | 422 | The price cannot be fixed until the account's billing details are complete. | Complete the billing address (for an Indian account, its GST state) in the panel. |
        | `rate_limited` | 429 | Too many requests. | Retry after Retry-After seconds. The RateLimit headers show the window. |
        | `reinstall_in_doubt` | 409 | A recent reinstall's outcome is unknown, so another is refused for up to 15 minutes. | Check the server, then retry after Retry-After seconds. |
        | `renewal_in_progress` | 409 | A renewal for the next period is already paid, so the plan cannot change through the API. | Open a support ticket. |
        | `request_too_large` | 413 | The request body is larger than 1 MiB. | Send a smaller body. Upload files through createAttachment. |
        | `scope_missing` | 403 | This API token does not have the scope this operation needs. | Make a token with the scope named in the reference for this operation. |
        | `secret_unavailable` | 410 | This action's secret was deleted, has expired, was read 5 times, or never existed. | This is final: do not retry. Reset the password again with delivery api and retrieve it within 60 minutes. |
        | `service_building` | 409 | A build or reinstall is running on this server. | Wait for its action to finish. |
        | `service_ended` | 409 | This service has ended, so its cancellation cannot change. | No action is possible on an ended service. |
        | `service_locked` | 423 | This service is suspended, cancelled or terminated. | Pay any overdue invoice, or contact support. |
        | `service_not_ready` | 409 | This service is still being set up. | Wait for the service.provisioned event, then retry. |
        | `service_unconfirmed` | 423 | Actions on this server are paused while its ownership is re-checked. | Retry later, or contact support. |
        | `ssh_key_invalid` | 422 | The public key is not one accepted OpenSSH public key line. | Send ssh-ed25519, ecdsa-sha2-nistp256, -nistp384 or -nistp521, or ssh-rsa of at least 2048 bits. |
        | `ssh_key_unknown` | 422 | An SSH key id is not in this account's key library. | Use ids from GET /v1/ssh-keys. |
        | `ssh_keys_not_allowed` | 403 | Only the account owner can pass SSH keys to a reinstall. | Reinstall without sshKeyIds, or use the owner's token. |
        | `termination_pending` | 409 | This service is already being terminated. | No action is needed. |
        | `terms_outdated` | 409 | Updated terms of service must be accepted before ordering. | The account owner accepts them in the panel. |
        | `ticket_closed` | 409 | This ticket is closed. | Open a new ticket. |
        | `token_expired` | 401 | The API token has expired. | Make a new token in the panel. |
        | `token_invalid` | 401 | The API token is not valid. | Check the token, or make a new one in the panel. |
        | `token_missing` | 401 | No API token was sent. Send it as Authorization: Bearer <token>. | Send your token in the Authorization header. |
        | `token_revoked` | 401 | The API token was revoked. | Make a new token. If you did not revoke it, review your account's security log. |
        | `too_many_ssh_keys` | 422 | Too many SSH keys for one request. | Send at most 10 key ids. |
        | `unavailable` | 503 | The API is briefly unavailable. | Retry after Retry-After seconds. |
        | `unsupported_media_type` | 415 | The request body must be application/json. | Send Content-Type: application/json. |
        | `version_invalid` | 400 | Clouduxe-Version does not name an API version. | Send a version listed in the changelog, or omit the header to use your token's version. |
        | `webhook_endpoint_limit` | 409 | This account already has 10 webhook endpoints. | Delete an endpoint you no longer use. |
        | `webhook_url_refused` | 422 | The webhook URL must be https on port 443 or 8443, with a public DNS name that is not a Clouduxe host. | Use a public https URL on your own domain. |
    Error:
      type: object
      description: The body of every error response.
      properties:
        error:
          type: object
          description: What went wrong.
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - permission_error
                - invalid_request_error
                - not_found_error
                - conflict_error
                - payment_error
                - idempotency_error
                - rate_limit_error
                - api_error
              description: The error's category. Each SDK has one error class per type.
            code:
              $ref: '#/components/schemas/ErrorCode'
              description: 'A stable, machine-readable code. Branch on this, never on message.'
            message:
              type: string
              description: 'A sentence for a person, from a fixed catalogue. It never repeats your input. It may be reworded at any time.'
            param:
              type:
                - string
                - 'null'
              description: 'The request field the error is about, as a path such as items[0].hostname, or null.'
            requestId:
              type: string
              description: 'This request''s id, also sent as the X-Request-Id header. Quote it to support.'
            docUrl:
              type: string
              description: A link to this code's entry in the error reference.
              format: uri
          required:
            - type
            - code
            - message
            - param
            - requestId
            - docUrl
      required:
        - error
      examples:
        - error:
            type: invalid_request_error
            code: parameter_invalid
            message: A field has the wrong type or is out of range.
            param: 'items[0].hostname'
            requestId: 8f14e45f-ceea-467a-9f2b-1c3d5e7a9b0c
            docUrl: 'https://docs.clouduxe.com/api/errors#parameter_invalid'
    Account:
      type: object
      description: Your Clouduxe account.
      properties:
        object:
          type: string
          const: account
          description: The object's type. Always "account".
        id:
          type: string
          format: uuid
          description: The account's id.
        displayName:
          type:
            - string
            - 'null'
          description: The account's display name.
        status:
          type: string
          enum:
            - active
            - closed
          description: 'active, or closed.'
        company:
          type:
            - object
            - 'null'
          description: 'The company on the account''s invoices, or null.'
          properties:
            name:
              type: string
              description: The company's legal name.
            gstin:
              type:
                - string
                - 'null'
              description: 'The company''s Indian GSTIN, printed on its invoices, or null.'
          required:
            - name
            - gstin
        billingCountry:
          type:
            - string
            - 'null'
          description: 'The billing address''s country, ISO 3166-1 alpha-2, or null when no billing address is set.'
          pattern: '^[A-Z]{2}$'
        billingCurrency:
          type:
            - string
            - 'null'
          description: 'The currency new orders are billed in, from the billing country. Null when it is not known yet; then see billingCurrencyUnknownReason. There is never a default currency.'
          pattern: '^[A-Z]{3}$'
        billingCurrencyUnknownReason:
          type:
            - string
            - 'null'
          enum:
            - no-country
            - bad-country
            - usd-unavailable
            - null
          description: 'Why billingCurrency is null: no-country (no billing address), bad-country (the address''s country is not recognised), usd-unavailable (no payment method takes the local currency or USD). Null when billingCurrency is known.'
        apiOrdering:
          type: boolean
          description: Whether services can be ordered through the API. The account owner changes it in the panel.
        serviceEmailsForApiOrders:
          type: boolean
          description: 'Whether Clouduxe sends service emails (server ready and server rebuilt notices) for services ordered through the API. Switch it off in the panel to send your own emails, using webhooks. Billing, suspension, termination and security emails are always sent to the account.'
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - displayName
        - status
        - company
        - billingCountry
        - billingCurrency
        - billingCurrencyUnknownReason
        - apiOrdering
        - serviceEmailsForApiOrders
        - livemode
    Region:
      type: object
      description: A data centre region.
      properties:
        object:
          type: string
          const: region
          description: The object's type. Always "region".
        id:
          type: string
          enum:
            - mumbai
            - singapore
            - limburg
          description: 'The region''s id, as plans name it.'
        name:
          type: string
          description: The region's name.
        country:
          type: string
          description: 'The region''s country, ISO 3166-1 alpha-2.'
          pattern: '^[A-Z]{2}$'
        productTypes:
          type: array
          description: The product types offered in this region.
          items:
            type: string
            enum:
              - vps
              - dedicated
            description: A product type.
      required:
        - object
        - id
        - name
        - country
        - productTypes
    Image:
      type: object
      description: An operating system image.
      properties:
        object:
          type: string
          const: image
          description: The object's type. Always "image".
        id:
          type: string
          description: The image's id. Pass it as imageId.
        name:
          type: string
          description: 'The image''s name, for showing to people.'
        family:
          type: string
          enum:
            - linux
            - windows
          description: linux or windows. A root password reset sets the password of Administrator on windows and of root otherwise.
      required:
        - object
        - id
        - name
        - family
    PlanCycle:
      type: object
      description: 'One billing cycle of a plan, at the price this account pays.'
      properties:
        months:
          type: integer
          description: The cycle's length in months.
          enum:
            - 1
            - 3
            - 6
            - 12
            - 24
            - 36
        price:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'The price per cycle in the account''s billing currency, excluding GST. Null when the price is not known yet; see unpricedReason.'
        unpricedReason:
          type:
            - string
            - 'null'
          enum:
            - no-rate
            - no-rounding-rule
            - no-access
            - null
          description: 'Why price is null: no-rate (no exchange rate for the currency this month), no-rounding-rule, or no-access (this token cannot see prices: prices need orders:read, which only the account owner''s tokens hold). Null when price is set.'
      required:
        - months
        - price
        - unpricedReason
    OptionGroup:
      type: object
      description: 'A group of order options, such as an add-on.'
      properties:
        code:
          type: string
          description: The group's code. Use it as a key of an order item's options.
        name:
          type: string
          description: The group's name.
        required:
          type: boolean
          description: Whether an order must pick a value of this group.
        values:
          type: array
          description: The values offered.
          items:
            type: object
            description: An option value.
            properties:
              code:
                type: string
                description: The value's code. Use it as the value in options.
              name:
                type: string
                description: The value's name.
            required:
              - code
              - name
      required:
        - code
        - name
        - required
        - values
    OrderForm:
      type: object
      description: What an order item for this plan must and may carry.
      properties:
        requiredFields:
          type: array
          description: The order item fields this plan requires.
          items:
            type: string
            enum:
              - hostname
              - imageId
              - origin
              - profile
              - ports
            description: A field of an order item.
        images:
          type: array
          description: The images an order may use. Empty for a proxy.
          items:
            $ref: '#/components/schemas/Image'
        profiles:
          type: array
          description: The protection profiles an order may use. Only for a proxy; empty otherwise.
          items:
            type: string
            description: A profile key.
        optionGroups:
          type: array
          description: The plan's option groups.
          items:
            $ref: '#/components/schemas/OptionGroup'
        sshKeys:
          type: boolean
          description: Whether order items may carry sshKeyIds.
      required:
        - requiredFields
        - images
        - profiles
        - optionGroups
        - sshKeys
    Plan:
      type: object
      description: 'A plan you can order. Prices are the price this account pays, in its billing currency, excluding GST, and are shown only to tokens with orders:read.'
      properties:
        object:
          type: string
          const: plan
          description: The object's type. Always "plan".
        id:
          type: string
          description: 'The plan''s id: a stable string, not a UUID. Pass it as planId.'
        type:
          type: string
          enum:
            - vps
            - dedicated
            - proxy
          description: The product type.
        name:
          type: string
          description: 'The plan''s name. You can show your own name instead, keyed by id.'
        description:
          type:
            - string
            - 'null'
          description: 'The plan''s description, or null.'
        region:
          type:
            - string
            - 'null'
          enum:
            - mumbai
            - singapore
            - limburg
            - null
          description: 'The region the plan runs in, or null for a plan with no region (the proxy).'
        available:
          type: boolean
          description: False when the plan is sold out. Orders for it answer out_of_stock until it is back.
        cycles:
          type: array
          description: The billing cycles offered.
          items:
            $ref: '#/components/schemas/PlanCycle'
        currency:
          type:
            - string
            - 'null'
          description: 'The account''s billing currency, the currency of every price here, or null when it is not known yet.'
          pattern: '^[A-Z]{3}$'
        orderForm:
          oneOf:
            - $ref: '#/components/schemas/OrderForm'
            - type: 'null'
          description: What an order item for this plan carries. Returned by getPlan; null in listPlans.
      required:
        - object
        - id
        - type
        - name
        - description
        - region
        - available
        - cycles
        - currency
        - orderForm
    ServiceBilling:
      type: object
      description: How the service is billed. Visible to the account owner's tokens only.
      properties:
        cycleMonths:
          type: integer
          description: The billing cycle in months.
        price:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'The renewal price per cycle, excluding GST, locked when the service was bought. Null when it cannot be read.'
        currentPeriodStart:
          type: string
          format: date
          description: 'The first day of the current period, a UTC calendar day.'
        paidThrough:
          type: string
          format: date
          description: 'The last day paid for, a UTC calendar day. The renewal invoice for the next period is issued before it.'
        cancelAtPeriodEnd:
          type: boolean
          description: True when the service will end on paidThrough instead of renewing.
        endsOn:
          type:
            - string
            - 'null'
          format: date
          description: 'The day the service ends, when cancelAtPeriodEnd is true; otherwise null.'
      required:
        - cycleMonths
        - price
        - currentPeriodStart
        - paidThrough
        - cancelAtPeriodEnd
        - endsOn
    ServerResources:
      type: object
      description: The server's resources.
      properties:
        cpuCores:
          type:
            - integer
            - 'null'
          description: 'Virtual CPU cores, or null when not known.'
        memoryMb:
          type:
            - integer
            - 'null'
          description: 'Memory in MiB, or null.'
        diskGb:
          type:
            - integer
            - 'null'
          description: 'Disk in GB, or null.'
        trafficGb:
          type:
            - integer
            - 'null'
          description: 'Monthly traffic allowance in GB, or null for unmetered or unknown.'
      required:
        - cpuCores
        - memoryMb
        - diskGb
        - trafficGb
    Server:
      type: object
      description: 'The server''s runtime state, from Clouduxe''s status cache (refreshed about every minute, and every few seconds while an action runs).'
      properties:
        powerState:
          type: string
          enum:
            - running
            - stopped
            - building
            - suspended
            - missing
            - unknown
          description: 'running, stopped, building (being built or reinstalled), suspended, missing (the server cannot be found; staff are notified) or unknown.'
        hostname:
          type:
            - string
            - 'null'
          description: The hostname you set at order or reinstall.
        ipv4:
          type: array
          description: 'The server''s IPv4 addresses, primary first.'
          items:
            type: string
            description: An IPv4 address.
        ipv6:
          type: array
          description: The server's IPv6 addresses.
          items:
            type: string
            description: An IPv6 address.
        image:
          oneOf:
            - $ref: '#/components/schemas/Image'
            - type: 'null'
          description: 'The installed image, or null when not known.'
        resources:
          oneOf:
            - $ref: '#/components/schemas/ServerResources'
            - type: 'null'
          description: 'The server''s resources, or null when not known.'
        statusUpdatedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When this state was read.
        stale:
          type: boolean
          description: True when the state is more than 5 minutes old.
      required:
        - powerState
        - hostname
        - ipv4
        - ipv6
        - image
        - resources
        - statusUpdatedAt
        - stale
    ProxyPort:
      type: object
      description: A protected port range.
      properties:
        protocol:
          type: string
          enum:
            - tcp
            - udp
          description: tcp or udp.
        portStart:
          type: integer
          description: The first port.
          minimum: 1
          maximum: 65535
        portEnd:
          type: integer
          description: 'The last port, equal to portStart for one port.'
          minimum: 1
          maximum: 65535
      required:
        - protocol
        - portStart
        - portEnd
    ProxyDetails:
      type: object
      description: A protected proxy's configuration as ordered. Clouduxe staff set it up; changes go through a support ticket.
      properties:
        profile:
          type: string
          description: The protection profile.
        ports:
          type: array
          description: The protected ports.
          items:
            $ref: '#/components/schemas/ProxyPort'
      required:
        - profile
        - ports
    Service:
      type: object
      description: 'A VPS, a Dedicated server or a protected proxy on your account.'
      properties:
        object:
          type: string
          const: service
          description: The object's type. Always "service".
        id:
          type: string
          format: uuid
          description: The service's id.
        type:
          type: string
          enum:
            - vps
            - dedicated
            - proxy
          description: 'vps, dedicated or proxy.'
        status:
          type: string
          enum:
            - pending
            - provisioning
            - active
            - suspended
            - failed
            - terminating
            - terminated
          description: 'pending (paid and waiting for set-up to start), provisioning, active, suspended, failed (set-up failed; staff are on it), terminating (deletion scheduled at deletesAt) or terminated.'
        suspensionReason:
          type:
            - string
            - 'null'
          enum:
            - overdue
            - other
            - null
          description: 'Why the service is suspended: overdue (an unpaid invoice) or other (contact support). Null unless suspended.'
        deletesAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When a terminating service''s server will be deleted, or null.'
        planId:
          type: string
          description: The plan's id.
        planName:
          type:
            - string
            - 'null'
          description: The plan's name.
        region:
          type:
            - string
            - 'null'
          enum:
            - mumbai
            - singapore
            - limburg
            - null
          description: 'The region, or null for a proxy.'
        label:
          type:
            - string
            - 'null'
          description: Your label for the service.
          maxLength: 253
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Your own key-value data on this object.
        firewallAvailable:
          type: boolean
          description: True when the service has a Shield firewall you can manage through the firewall operations.
        billing:
          oneOf:
            - $ref: '#/components/schemas/ServiceBilling'
            - type: 'null'
          description: 'Billing details, for the account owner''s tokens. Null for a delegate''s token.'
        server:
          oneOf:
            - $ref: '#/components/schemas/Server'
            - type: 'null'
          description: For vps and dedicated; null for proxy.
        proxy:
          oneOf:
            - $ref: '#/components/schemas/ProxyDetails'
            - type: 'null'
          description: For proxy; null otherwise.
        createdAt:
          type: string
          format: date-time
          description: When the service was created.
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - type
        - status
        - suspensionReason
        - deletesAt
        - planId
        - planName
        - region
        - label
        - reference
        - metadata
        - firewallAvailable
        - billing
        - server
        - proxy
        - createdAt
        - livemode
    ServiceUpdate:
      type: object
      description: Fields to change. Send only the ones you change.
      properties:
        label:
          type:
            - string
            - 'null'
          description: 'Your label for the service, 1 to 253 characters, or null to clear it.'
          minLength: 1
          maxLength: 253
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/MetadataUpdate'
          description: Metadata keys to set (a string) or remove (null). Keys you leave out are kept.
      required: []
      additionalProperties: false
    Usage:
      type: object
      description: A service's traffic in its current traffic period (the server's own monthly traffic cycle).
      properties:
        object:
          type: string
          const: usage
          description: The object's type. Always "usage".
        serviceId:
          type: string
          format: uuid
          description: The service's id.
        periodStart:
          type: string
          format: date
          description: The period's first day (UTC).
        periodEnd:
          type: string
          format: date
          description: The period's last day (UTC).
        inboundBytes:
          type:
            - integer
            - 'null'
          description: 'Bytes received this period, or null when not known.'
        outboundBytes:
          type:
            - integer
            - 'null'
          description: 'Bytes sent this period, or null.'
        allowanceBytes:
          type:
            - integer
            - 'null'
          description: 'The period''s traffic allowance in bytes, or null for unmetered or unknown.'
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When these figures were read.
      required:
        - object
        - serviceId
        - periodStart
        - periodEnd
        - inboundBytes
        - outboundBytes
        - allowanceBytes
        - updatedAt
    PlanOption:
      type: object
      description: A plan this service can move to.
      properties:
        object:
          type: string
          const: plan_option
          description: The object's type. Always "plan_option".
        planId:
          type: string
          description: The target plan's id.
        name:
          type: string
          description: The target plan's name.
        kind:
          type: string
          enum:
            - upgrade
          description: upgrade. Moving to a smaller plan is not offered through the API; contact support.
        price:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'The target plan''s price per cycle, excluding GST, or null when not known.'
        charge:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'What changing now costs for the rest of the current period, excluding GST, or null when not known.'
      required:
        - object
        - planId
        - name
        - kind
        - price
        - charge
    ActionFailure:
      type: object
      description: Why an action failed.
      properties:
        code:
          type: string
          enum:
            - platform_refused
            - platform_unavailable
            - provisioning_failed
            - order_rejected
            - order_cancelled
            - service_locked
          description: 'platform_refused, platform_unavailable, provisioning_failed (staff are notified and will contact you), order_rejected (the order failed review; its payment returns to wallet credit), order_cancelled or service_locked.'
        message:
          type: string
          description: A sentence for a person.
      required:
        - code
        - message
    Action:
      type: object
      description: 'A long-running change to a service: a power action, a reinstall, a password reset, a plan change, a termination or provisioning. Poll it with getAction, or listen for action.completed.'
      properties:
        object:
          type: string
          const: action
          description: The object's type. Always "action".
        id:
          type: string
          format: uuid
          description: The action's id.
        type:
          type: string
          enum:
            - boot
            - shutdown
            - restart
            - poweroff
            - reinstall
            - reset_password
            - plan_change
            - terminate
            - provision
          description: What the action does.
        status:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
            - unknown
          description: 'queued (recorded, not started; provisioning of a dedicated server or a proxy can stay here for hours while staff set it up), running (sent; waiting for the server to show the result), succeeded, failed, or unknown (the platform''s answer was lost and the result was not confirmed in time; check the service). succeeded, failed and unknown are final and never change.'
        serviceId:
          type:
            - string
            - 'null'
          format: uuid
          description: The service the action acts on. Null for a provision action until its service exists.
        orderId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The order a provision action belongs to, or null.'
        invoiceId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The invoice a plan change created, or null.'
        failure:
          oneOf:
            - $ref: '#/components/schemas/ActionFailure'
            - type: 'null'
          description: Set when status is failed; otherwise null.
        secretAvailable:
          type: boolean
          description: 'True while a secret this action set (a root or Administrator password) can be read with getActionSecret. Only the account owner''s tokens can read it. It turns false when you delete it, after 5 reads, or when it expires.'
        secretExpiresAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When the secret is deleted unread or not (60 minutes after the action succeeded), or null when there is none.'
        createdAt:
          type: string
          format: date-time
          description: When the action was requested.
        startedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it was sent to the platform, or null while queued.'
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it reached a final status, or null.'
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - type
        - status
        - serviceId
        - orderId
        - invoiceId
        - failure
        - secretAvailable
        - secretExpiresAt
        - createdAt
        - startedAt
        - completedAt
        - livemode
    PowerRequest:
      type: object
      description: The power action to run.
      properties:
        action:
          type: string
          enum:
            - boot
            - shutdown
            - restart
            - poweroff
          description: 'boot, shutdown (a clean shutdown through the OS), restart, or poweroff (cut power at once, like pulling the plug).'
      required:
        - action
      additionalProperties: false
    ReinstallRequest:
      type: object
      description: What to install. The server's disk is erased.
      properties:
        imageId:
          type: string
          description: 'The image to install, from listServiceImages.'
        hostname:
          type: string
          description: 'The server''s new hostname. RFC 1123 labels of 1 to 63 letters, digits and hyphens, no label starting or ending with a hyphen, 253 characters in all, no trailing dot. Single-label names (such as node1) and names that look like an IP address (such as 1.2.3.4: the last label must hold a letter) are refused. Stored in lower case.'
          maxLength: 253
          pattern: '^(?=.{1,253}$)(?=.*[A-Za-z][A-Za-z0-9-]*$)[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$'
        sshKeyIds:
          type: array
          description: 'SSH keys from your library to install for root. At most 10. Owner tokens only: a delegate''s token must leave this empty.'
          items:
            type: string
            format: uuid
            description: An SSH key id.
          maxItems: 10
      required:
        - imageId
        - hostname
      additionalProperties: false
    ResetPasswordRequest:
      type: object
      description: How to deliver the new password.
      properties:
        delivery:
          type: string
          enum:
            - email
            - api
          description: 'email (the password is emailed to the account owner) or api (the action''s secret holds it: retrieve it with getActionSecret within 60 minutes, up to 5 times; nothing is emailed).'
      required:
        - delivery
      additionalProperties: false
    ActionSecret:
      type: object
      description: A secret an action produced. The account owner's tokens can read it up to 5 times until it expires; delete it with deleteActionSecret once you have stored it.
      properties:
        object:
          type: string
          const: action_secret
          description: The object's type. Always "action_secret".
        actionId:
          type: string
          format: uuid
          description: The action's id.
        kind:
          type: string
          enum:
            - server_password
          description: 'What the secret is: a server password.'
        username:
          type: string
          enum:
            - root
            - Administrator
          description: 'The account the password is for: root, or Administrator on Windows.'
        password:
          type: string
          description: 'The password. Store it in your own secret store, then delete it here with deleteActionSecret.'
        readsLeft:
          type: integer
          description: 'How many more reads are allowed after this one, 0 to 4.'
          minimum: 0
          maximum: 4
        expiresAt:
          type: string
          format: date-time
          description: 'When the secret is deleted, read or not.'
      required:
        - object
        - actionId
        - kind
        - username
        - password
        - readsLeft
        - expiresAt
    PlanChangeRequest:
      type: object
      description: The plan to move to.
      properties:
        planId:
          type: string
          description: 'The target plan''s id, from listServicePlanOptions.'
      required:
        - planId
      additionalProperties: false
    CancellationRequest:
      type: object
      description: Whether the service should end at the end of its current period.
      properties:
        cancelAtPeriodEnd:
          type: boolean
          description: true to end the service on its paidThrough day; false to keep it renewing.
        reason:
          type:
            - string
            - 'null'
          description: 'Why, for our records. Optional.'
          maxLength: 2000
      required:
        - cancelAtPeriodEnd
      additionalProperties: false
    TerminateRequest:
      type: object
      description: Confirms an immediate termination.
      properties:
        confirm:
          type: string
          format: uuid
          description: 'The service''s own id, to confirm you mean this service.'
      required:
        - confirm
      additionalProperties: false
    FirewallRule:
      type: object
      description: An inbound port rule.
      properties:
        id:
          type: string
          description: 'The rule''s id: its protocol and first port, such as tcp-30120.'
        protocol:
          type: string
          enum:
            - tcp
            - udp
          description: tcp or udp.
        portStart:
          type: integer
          description: The first port.
          minimum: 1
          maximum: 65535
        portEnd:
          type: integer
          description: The last port.
          minimum: 1
          maximum: 65535
        profile:
          type: string
          description: 'The protection profile that inspects this traffic, such as fivem or generic.'
          pattern: '^[A-Za-z0-9_-]{1,40}$'
        enabled:
          type: boolean
          description: Whether the rule is on.
        ppsLimit:
          type: integer
          description: Packets per second allowed to the whole port range; 0 means no extra limit.
          minimum: 0
        connectionPpsLimit:
          type: integer
          description: Packets per second allowed per established connection; 0 means no extra limit.
          minimum: 0
        newConnectionsPerSecond:
          type: integer
          description: 'New connections per second allowed from one source address, 0 to 30; 0 means no extra limit.'
          minimum: 0
          maximum: 30
        onlyProxied:
          type: boolean
          description: Accept only traffic that arrives through Clouduxe's protected proxy.
        blockUdp:
          type: boolean
          description: Drop UDP to this range.
        protocolValidation:
          type: boolean
          description: 'Check that traffic follows the profile''s protocol, and drop what does not.'
      required:
        - id
        - protocol
        - portStart
        - portEnd
        - profile
        - enabled
        - ppsLimit
        - connectionPpsLimit
        - newConnectionsPerSecond
        - onlyProxied
        - blockUdp
        - protocolValidation
    FirewallRuleCreate:
      type: object
      description: A new inbound port rule.
      properties:
        protocol:
          type: string
          enum:
            - tcp
            - udp
          description: tcp or udp.
        portStart:
          type: integer
          description: The first port.
          minimum: 1
          maximum: 65535
        portEnd:
          type: integer
          description: 'The last port, at least portStart.'
          minimum: 1
          maximum: 65535
        profile:
          type: string
          description: The protection profile.
          pattern: '^[A-Za-z0-9_-]{1,40}$'
        enabled:
          type: boolean
          description: Whether the rule is on. Default true.
        ppsLimit:
          type: integer
          description: Default 0.
          minimum: 0
          maximum: 4294967295
        connectionPpsLimit:
          type: integer
          description: Default 0.
          minimum: 0
          maximum: 4294967295
        newConnectionsPerSecond:
          type: integer
          description: Default 0.
          minimum: 0
          maximum: 30
        onlyProxied:
          type: boolean
          description: Default false.
        blockUdp:
          type: boolean
          description: Default false.
        protocolValidation:
          type: boolean
          description: Whether to check traffic against the profile's protocol.
      required:
        - protocol
        - portStart
        - portEnd
        - profile
        - protocolValidation
      additionalProperties: false
    FirewallRuleUpdate:
      type: object
      description: Fields to change. Changing protocol or ports is refused if the new range overlaps another rule.
      properties:
        portStart:
          type: integer
          description: The first port.
          minimum: 1
          maximum: 65535
        portEnd:
          type: integer
          description: The last port.
          minimum: 1
          maximum: 65535
        profile:
          type: string
          description: The protection profile.
          pattern: '^[A-Za-z0-9_-]{1,40}$'
        enabled:
          type: boolean
          description: Whether the rule is on.
        ppsLimit:
          type: integer
          description: Packets per second to the range.
          minimum: 0
          maximum: 4294967295
        connectionPpsLimit:
          type: integer
          description: Packets per second per connection.
          minimum: 0
          maximum: 4294967295
        newConnectionsPerSecond:
          type: integer
          description: New connections per second per source.
          minimum: 0
          maximum: 30
        onlyProxied:
          type: boolean
          description: Accept only proxied traffic.
        blockUdp:
          type: boolean
          description: Drop UDP.
        protocolValidation:
          type: boolean
          description: Check the profile's protocol.
      required: []
      additionalProperties: false
    BlockedIp:
      type: object
      description: A blocked source address.
      properties:
        ip:
          type: string
          description: The IPv4 address.
        expiresAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When the block ends, or null for no end.'
      required:
        - ip
        - expiresAt
    TrustedIp:
      type: object
      description: 'A trusted source address, never filtered.'
      properties:
        ip:
          type: string
          description: The IPv4 address.
        note:
          type:
            - string
            - 'null'
          description: Your note.
      required:
        - ip
        - note
    Firewall:
      type: object
      description: A server's Shield firewall.
      properties:
        object:
          type: string
          const: firewall
          description: The object's type. Always "firewall".
        serviceId:
          type: string
          format: uuid
          description: The service's id.
        enabled:
          type: boolean
          description: Whether protection is on.
        defaultPolicy:
          type: string
          enum:
            - allow
            - deny
          description: 'What happens to ports no enabled rule covers: allow or deny.'
        rules:
          type: array
          description: 'The inbound rules, at most 15.'
          items:
            $ref: '#/components/schemas/FirewallRule'
          maxItems: 15
        blockedIps:
          type: array
          description: Blocked source addresses.
          items:
            $ref: '#/components/schemas/BlockedIp'
        trustedIps:
          type: array
          description: Trusted source addresses.
          items:
            $ref: '#/components/schemas/TrustedIp'
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When this state was read.
      required:
        - object
        - serviceId
        - enabled
        - defaultPolicy
        - rules
        - blockedIps
        - trustedIps
        - updatedAt
    FirewallPreset:
      type: object
      description: A ready-made set of rules for a common server.
      properties:
        object:
          type: string
          const: firewall_preset
          description: The object's type. Always "firewall_preset".
        id:
          type: string
          description: The preset's id.
        name:
          type: string
          description: The preset's name.
        rules:
          type: array
          description: The port ranges it adds.
          items:
            $ref: '#/components/schemas/ProxyPort'
      required:
        - object
        - id
        - name
        - rules
    SshKey:
      type: object
      description: 'An SSH public key in your library, for VPS builds and reinstalls.'
      properties:
        object:
          type: string
          const: ssh_key
          description: The object's type. Always "ssh_key".
        id:
          type: string
          format: uuid
          description: The key's id.
        name:
          type: string
          description: The key's name.
        type:
          type: string
          enum:
            - ssh-ed25519
            - ssh-rsa
            - ecdsa-sha2-nistp256
            - ecdsa-sha2-nistp384
            - ecdsa-sha2-nistp521
          description: The key type.
        fingerprint:
          type: string
          description: 'The key''s SHA256 fingerprint, as ssh-keygen -l prints it.'
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Your own key-value data on this object.
        createdAt:
          type: string
          format: date-time
          description: When the key was added.
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - name
        - type
        - fingerprint
        - reference
        - metadata
        - createdAt
        - livemode
    SshKeyCreate:
      type: object
      description: A key to add.
      properties:
        name:
          type: string
          description: 'A name for the key, 1 to 64 printable characters.'
          minLength: 1
          maxLength: 64
        publicKey:
          type: string
          description: 'One OpenSSH public key line: ssh-ed25519, ecdsa-sha2-nistp256, -nistp384 or -nistp521, or ssh-rsa of at least 2048 bits, with an optional comment.'
          maxLength: 16384
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Your own key-value data on this object.
      required:
        - name
        - publicKey
      additionalProperties: false
    SshKeyUpdate:
      type: object
      description: Fields to change.
      properties:
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/MetadataUpdate'
          description: Metadata keys to set (a string) or remove (null). Keys you leave out are kept.
      required: []
      additionalProperties: false
    OrderOrigin:
      description: 'The server a proxy protects: one of your own services, or one of your servers'' addresses and a port.'
      oneOf:
        - type: object
          description: One of your own services.
          properties:
            serviceId:
              type: string
              format: uuid
              description: One of your active VPS or Dedicated services.
          required:
            - serviceId
          additionalProperties: false
        - type: object
          description: One of your servers' addresses.
          properties:
            ip:
              type: string
              description: One of your servers' IPv4 addresses.
              format: ipv4
            port:
              type: integer
              description: The origin port.
              minimum: 1
              maximum: 65535
          required:
            - ip
            - port
          additionalProperties: false
    OrderItemCreate:
      type: object
      description: One service to order.
      properties:
        planId:
          type: string
          description: The plan's id.
        billingCycleMonths:
          type: integer
          description: 'The billing cycle, one the plan lists.'
          enum:
            - 1
            - 3
            - 6
            - 12
            - 24
            - 36
        hostname:
          type: string
          description: 'The server''s hostname. Required for vps and dedicated; there is no default. RFC 1123 labels of 1 to 63 letters, digits and hyphens, no label starting or ending with a hyphen, 253 characters in all, no trailing dot. Single-label names (such as node1) and names that look like an IP address (such as 1.2.3.4: the last label must hold a letter) are refused. Stored in lower case.'
          maxLength: 253
          pattern: '^(?=.{1,253}$)(?=.*[A-Za-z][A-Za-z0-9-]*$)[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$'
        imageId:
          type: string
          description: 'The OS image, from the plan''s orderForm. Required for vps and dedicated.'
        sshKeyIds:
          type: array
          description: SSH keys from your library to install for root. VPS only; at most 10.
          items:
            type: string
            format: uuid
            description: An SSH key id.
          maxItems: 10
        options:
          type: object
          description: 'Option values by group code, from the plan''s orderForm.'
          additionalProperties:
            type: string
        origin:
          $ref: '#/components/schemas/OrderOrigin'
          description: 'Proxy only: the server to protect. Send serviceId, or ip and port.'
        profile:
          type: string
          description: 'Proxy only: the protection profile, from the plan''s orderForm.'
        ports:
          type: array
          description: 'Proxy only: the ports to protect, 1 to 15 ranges.'
          items:
            $ref: '#/components/schemas/ProxyPort'
          minItems: 1
          maxItems: 15
        label:
          type: string
          description: Your label for the service.
          minLength: 1
          maxLength: 253
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Your own key-value data on this object.
      required:
        - planId
        - billingCycleMonths
      additionalProperties: false
    OrderCreate:
      type: object
      description: 'An order, paid from wallet credit.'
      properties:
        items:
          type: array
          description: 'The services to order, 1 to 10. Each item is one service.'
          items:
            $ref: '#/components/schemas/OrderItemCreate'
          minItems: 1
          maxItems: 10
        couponCode:
          type: string
          description: A coupon code to apply.
          maxLength: 64
        payment:
          type: object
          description: How to pay.
          properties:
            method:
              type: string
              enum:
                - wallet
              description: 'wallet: pay the whole order from wallet credit in the order''s currency. The only method in the API.'
          required:
            - method
          additionalProperties: false
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Your own key-value data on this object.
      required:
        - items
        - payment
      additionalProperties: false
    OrderPreviewRequest:
      type: object
      description: Items to price.
      properties:
        items:
          type: array
          description: 'The services to price, 1 to 10.'
          items:
            $ref: '#/components/schemas/OrderItemCreate'
          minItems: 1
          maxItems: 10
        couponCode:
          type: string
          description: A coupon code to apply.
          maxLength: 64
      required:
        - items
      additionalProperties: false
    OrderItem:
      type: object
      description: One service of an order.
      properties:
        id:
          type: string
          format: uuid
          description: The item's id.
        planId:
          type: string
          description: The plan's id.
        billingCycleMonths:
          type: integer
          description: The billing cycle in months.
        hostname:
          type:
            - string
            - 'null'
          description: 'The hostname ordered, or null.'
        label:
          type:
            - string
            - 'null'
          description: 'The label ordered, or null.'
        price:
          $ref: '#/components/schemas/Money'
          description: 'The item''s price per cycle, excluding GST.'
        serviceId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The service made for this item, or null until it exists.'
        actionId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The provision action for this item, or null before payment.'
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Your own key-value data on this object.
      required:
        - id
        - planId
        - billingCycleMonths
        - hostname
        - label
        - price
        - serviceId
        - actionId
        - reference
        - metadata
    Order:
      type: object
      description: An order for one or more services.
      properties:
        object:
          type: string
          const: order
          description: The object's type. Always "order".
        id:
          type: string
          format: uuid
          description: The order's id.
        status:
          type: string
          enum:
            - placed
            - paid
            - held
            - completed
            - cancelled
          description: 'placed (invoiced, not paid), paid (provisioning has started), held (paid, waiting for a review before set-up), completed (every service is ready) or cancelled.'
        items:
          type: array
          description: The order's services.
          items:
            $ref: '#/components/schemas/OrderItem'
        subtotal:
          $ref: '#/components/schemas/Money'
          description: The items' total before discount and tax.
        discount:
          $ref: '#/components/schemas/Money'
          description: The coupon's discount.
        tax:
          $ref: '#/components/schemas/Money'
          description: 'GST, where it applies.'
        total:
          $ref: '#/components/schemas/Money'
          description: 'subtotal minus discount plus tax: what was paid.'
        couponCode:
          type:
            - string
            - 'null'
          description: 'The coupon applied, or null.'
        invoiceId:
          type:
            - string
            - 'null'
          format: uuid
          description: The order's invoice.
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: Your own key-value data on this object.
        createdAt:
          type: string
          format: date-time
          description: When the order was placed.
        paidAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it was paid, or null.'
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When its last service became ready, or null.'
        cancelledAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it was cancelled, or null.'
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - status
        - items
        - subtotal
        - discount
        - tax
        - total
        - couponCode
        - invoiceId
        - reference
        - metadata
        - createdAt
        - paidAt
        - completedAt
        - cancelledAt
        - livemode
    OrderUpdate:
      type: object
      description: Fields to change.
      properties:
        reference:
          type:
            - string
            - 'null'
          description: 'Your own identifier for this object, such as your client''s id in your billing system. 1 to 100 printable characters, or null. Not unique: several objects may share one. Filter lists by it with the reference query parameter.'
          minLength: 1
          maxLength: 100
        metadata:
          $ref: '#/components/schemas/MetadataUpdate'
          description: Metadata keys to set (a string) or remove (null). Keys you leave out are kept.
      required: []
      additionalProperties: false
    OrderPreview:
      type: object
      description: 'What an order would cost now, at this account''s price. Nothing is written.'
      properties:
        object:
          type: string
          const: order_preview
          description: The object's type. Always "order_preview".
        items:
          type: array
          description: Each item's price.
          items:
            type: object
            description: An item's figures.
            properties:
              planId:
                type: string
                description: The plan's id.
              billingCycleMonths:
                type: integer
                description: The cycle.
              price:
                $ref: '#/components/schemas/Money'
                description: 'The price per cycle, excluding GST.'
              discount:
                $ref: '#/components/schemas/Money'
                description: The coupon's discount on this item.
              tax:
                $ref: '#/components/schemas/Money'
                description: The item's GST.
            required:
              - planId
              - billingCycleMonths
              - price
              - discount
              - tax
        subtotal:
          $ref: '#/components/schemas/Money'
          description: Before discount and tax.
        discount:
          $ref: '#/components/schemas/Money'
          description: The coupon's discount.
        tax:
          $ref: '#/components/schemas/Money'
          description: GST.
        total:
          $ref: '#/components/schemas/Money'
          description: What the order would cost.
        walletBalance:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'Wallet credit held in the order''s currency, or null when there is none.'
        sufficientCredit:
          type: boolean
          description: Whether wallet credit covers total now.
      required:
        - object
        - items
        - subtotal
        - discount
        - tax
        - total
        - walletBalance
        - sufficientCredit
    TaxBreakdown:
      type: object
      description: 'Indian GST split. CGST and SGST for a buyer in Clouduxe''s registered state, otherwise IGST.'
      properties:
        cgst:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'Central GST, or null.'
        sgst:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'State GST, or null.'
        igst:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'Integrated GST, or null.'
      required:
        - cgst
        - sgst
        - igst
    InvoiceLine:
      type: object
      description: One line of an invoice.
      properties:
        id:
          type: string
          format: uuid
          description: The line's id.
        description:
          type: string
          description: What the line is for.
        quantity:
          type: integer
          description: The quantity.
        unitAmount:
          $ref: '#/components/schemas/Money'
          description: 'The price of one unit, excluding tax.'
        discount:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: 'The line''s discount, or null.'
        net:
          $ref: '#/components/schemas/Money'
          description: 'After discount, before tax.'
        taxRateBp:
          type: integer
          description: The tax rate in basis points (1800 is 18%).
        tax:
          $ref: '#/components/schemas/Money'
          description: The line's tax.
        serviceId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The service the line bills, or null.'
        periodStart:
          type:
            - string
            - 'null'
          format: date
          description: 'The first day billed, or null.'
        periodEnd:
          type:
            - string
            - 'null'
          format: date
          description: 'The last day billed, or null.'
      required:
        - id
        - description
        - quantity
        - unitAmount
        - discount
        - net
        - taxRateBp
        - tax
        - serviceId
        - periodStart
        - periodEnd
    Invoice:
      type: object
      description: An invoice or a credit note issued to your account.
      properties:
        object:
          type: string
          const: invoice
          description: The object's type. Always "invoice".
        id:
          type: string
          format: uuid
          description: The invoice's id.
        number:
          type: string
          description: 'The printed number, such as C-INV-02731 (credit notes: C-CN-).'
        documentType:
          type: string
          enum:
            - invoice
            - credit_note
            - free
          description: 'invoice (a tax invoice), credit_note, or free (a zero-value document).'
        status:
          type:
            - string
            - 'null'
          enum:
            - open
            - part_paid
            - overdue
            - paid
            - cancelled
            - null
          description: 'open, part_paid, overdue, paid or cancelled (settled by a credit note). Null for a credit note.'
        currency:
          type: string
          description: The invoice's currency.
          pattern: '^[A-Z]{3}$'
        issuedAt:
          type: string
          format: date-time
          description: When it was issued.
        issueDate:
          type: string
          format: date
          description: The date printed as the date of issue.
        dueDate:
          type: string
          format: date
          description: The due date.
        subtotal:
          $ref: '#/components/schemas/Money'
          description: Before discount and tax.
        discount:
          $ref: '#/components/schemas/Money'
          description: Discounts.
        tax:
          $ref: '#/components/schemas/Money'
          description: Tax in total.
        taxBreakdown:
          oneOf:
            - $ref: '#/components/schemas/TaxBreakdown'
            - type: 'null'
          description: The GST split for an Indian invoice; null otherwise.
        total:
          $ref: '#/components/schemas/Money'
          description: The invoice total.
        amountPaid:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: Paid so far. Null for a credit note.
        amountCredited:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: Settled by credit notes. Null for a credit note.
        amountDue:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
          description: Still due. Null for a credit note.
        paidAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it was paid in full, or null.'
        buyerGstin:
          type:
            - string
            - 'null'
          description: 'Your GSTIN as printed, or null.'
        placeOfSupply:
          type:
            - object
            - 'null'
          description: 'The place of supply, for GST.'
          properties:
            country:
              type: string
              description: ISO 3166-1 alpha-2.
            gstState:
              type:
                - string
                - 'null'
              description: 'The Indian GST state code, or null.'
          required:
            - country
            - gstState
        lines:
          type: array
          description: The invoice's lines. Empty in listInvoices; filled by getInvoice.
          items:
            $ref: '#/components/schemas/InvoiceLine'
        orderId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The order this invoice was issued for, or null.'
        creditsInvoiceId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'For a credit note: the invoice it credits. Null otherwise.'
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - number
        - documentType
        - status
        - currency
        - issuedAt
        - issueDate
        - dueDate
        - subtotal
        - discount
        - tax
        - taxBreakdown
        - total
        - amountPaid
        - amountCredited
        - amountDue
        - paidAt
        - buyerGstin
        - placeOfSupply
        - lines
        - orderId
        - creditsInvoiceId
        - livemode
    InvoicePdf:
      type: object
      description: A short-lived link to the invoice's PDF.
      properties:
        object:
          type: string
          const: invoice_pdf
          description: The object's type. Always "invoice_pdf".
        url:
          type: string
          description: 'Download the PDF from here, without your token. Opaque: do not parse it.'
          format: uri
        expiresAt:
          type: string
          format: date-time
          description: 'When url stops working, about 5 minutes after it was made.'
      required:
        - object
        - url
        - expiresAt
    Wallet:
      type: object
      description: Your wallet credit. Credit pays invoices in its own currency only and is never converted.
      properties:
        object:
          type: string
          const: wallet
          description: The object's type. Always "wallet".
        balances:
          type: array
          description: 'Credit held, one entry per currency. Empty when you hold none.'
          items:
            $ref: '#/components/schemas/Money'
        topUpCurrency:
          type:
            - string
            - 'null'
          description: 'The currency a top-up in the panel would add, or null when not known.'
          pattern: '^[A-Z]{3}$'
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - balances
        - topUpCurrency
        - livemode
    WalletTransaction:
      type: object
      description: One change to your wallet credit.
      properties:
        object:
          type: string
          const: wallet_transaction
          description: The object's type. Always "wallet_transaction".
        id:
          type: string
          description: The transaction's id.
        type:
          type: string
          description: 'What changed the credit, such as wallet.topup, wallet.apply (paid an invoice) or refund. An open string: new kinds may appear.'
        amount:
          $ref: '#/components/schemas/Money'
          description: 'The change: positive adds credit, negative spends it.'
        balanceAfter:
          $ref: '#/components/schemas/Money'
          description: Credit held in that currency after this change.
        invoiceId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The invoice this change paid or returned credit from, or null.'
        createdAt:
          type: string
          format: date-time
          description: When it happened.
      required:
        - object
        - id
        - type
        - amount
        - balanceAfter
        - invoiceId
        - createdAt
    Department:
      type: object
      description: A support department.
      properties:
        object:
          type: string
          const: department
          description: The object's type. Always "department".
        id:
          type: string
          format: uuid
          description: The department's id.
        name:
          type: string
          description: Its name.
      required:
        - object
        - id
        - name
    TicketAttachment:
      type: object
      description: A file on a ticket message.
      properties:
        id:
          type: string
          format: uuid
          description: The attachment's id. Get a download link with getAttachment.
        filename:
          type: string
          description: The file name.
        size:
          type: integer
          description: Bytes.
        type:
          type: string
          description: 'The media type, sniffed from the file.'
        removedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When staff removed it, or null.'
      required:
        - id
        - filename
        - size
        - type
        - removedAt
    TicketMessage:
      type: object
      description: A message on a ticket.
      properties:
        id:
          type: string
          format: uuid
          description: The message's id.
        author:
          type: object
          description: Who wrote it.
          properties:
            type:
              type: string
              enum:
                - customer
                - staff
              description: customer or staff.
            name:
              type:
                - string
                - 'null'
              description: 'The author''s name, or null.'
          required:
            - type
            - name
        body:
          type: string
          description: The message text.
        attachments:
          type: array
          description: Files on the message.
          items:
            $ref: '#/components/schemas/TicketAttachment'
        createdAt:
          type: string
          format: date-time
          description: When it was written.
        redactedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When staff redacted it, or null.'
      required:
        - id
        - author
        - body
        - attachments
        - createdAt
        - redactedAt
    Ticket:
      type: object
      description: A support ticket.
      properties:
        object:
          type: string
          const: ticket
          description: The object's type. Always "ticket".
        id:
          type: string
          format: uuid
          description: The ticket's id.
        reference:
          type: string
          description: 'The ticket''s reference, such as CX-1482.'
        subject:
          type: string
          description: The subject.
        status:
          type: string
          enum:
            - open
            - in_progress
            - awaiting_customer
            - customer_replied
            - closed
          description: 'open, in_progress, awaiting_customer (staff replied and wait for you), customer_replied or closed.'
        priority:
          type: string
          enum:
            - low
            - normal
            - high
            - urgent
          description: 'low, normal, high or urgent.'
        department:
          $ref: '#/components/schemas/Department'
          description: The ticket's department.
        unread:
          type: integer
          description: Staff messages you have not read in the panel.
        messages:
          type: array
          description: 'The messages, oldest first. Empty in listTickets; filled by getTicket and createTicket.'
          items:
            $ref: '#/components/schemas/TicketMessage'
        createdAt:
          type: string
          format: date-time
          description: When it was opened.
        updatedAt:
          type: string
          format: date-time
          description: When it last changed.
        lastActivityAt:
          type: string
          format: date-time
          description: The last message's time.
        closedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it was closed, or null.'
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - reference
        - subject
        - status
        - priority
        - department
        - unread
        - messages
        - createdAt
        - updatedAt
        - lastActivityAt
        - closedAt
        - livemode
    TicketCreate:
      type: object
      description: A new ticket.
      properties:
        departmentId:
          type: string
          format: uuid
          description: 'The department, from listSupportDepartments.'
        subject:
          type: string
          description: 'The subject, 1 to 200 characters on one line.'
          minLength: 1
          maxLength: 200
        body:
          type: string
          description: 'The first message, 1 to 20,000 characters.'
          minLength: 1
          maxLength: 20000
        priority:
          type: string
          enum:
            - low
            - normal
            - high
            - urgent
          description: 'low, normal, high or urgent. Default normal.'
        attachmentIds:
          type: array
          description: 'Uploaded attachments, at most 10.'
          items:
            type: string
            format: uuid
            description: An attachment id.
          maxItems: 10
      required:
        - departmentId
        - subject
        - body
      additionalProperties: false
    TicketReplyCreate:
      type: object
      description: A reply.
      properties:
        body:
          type: string
          description: 'The message, 1 to 20,000 characters.'
          minLength: 1
          maxLength: 20000
        attachmentIds:
          type: array
          description: 'Uploaded attachments, at most 10.'
          items:
            type: string
            format: uuid
            description: An attachment id.
          maxItems: 10
      required:
        - body
      additionalProperties: false
    AttachmentCreate:
      type: object
      description: The file you will upload.
      properties:
        filename:
          type: string
          description: 'The file name, 1 to 255 characters.'
          minLength: 1
          maxLength: 255
        size:
          type: integer
          description: 'The exact size in bytes, at most 10 MiB.'
          minimum: 1
          maximum: 10485760
        contentType:
          type: string
          description: 'The file''s media type. The stored type is sniffed from the bytes: PNG, JPEG, GIF, WebP, PDF, ZIP, gzip or plain text.'
      required:
        - filename
        - size
        - contentType
      additionalProperties: false
    AttachmentUpload:
      type: object
      description: Where to upload the file's bytes.
      properties:
        object:
          type: string
          const: attachment_upload
          description: The object's type. Always "attachment_upload".
        attachmentId:
          type: string
          format: uuid
          description: The attachment's id. Call completeAttachment after the upload.
        upload:
          type: object
          description: The upload request to make.
          properties:
            url:
              type: string
              description: 'PUT the bytes here, without your token. Opaque: do not parse it.'
              format: uri
            method:
              type: string
              enum:
                - PUT
              description: Always PUT.
            headers:
              type: object
              description: Send exactly these headers with the PUT.
              additionalProperties:
                type: string
            expiresAt:
              type: string
              format: date-time
              description: When url stops accepting the upload.
          required:
            - url
            - method
            - headers
            - expiresAt
      required:
        - object
        - attachmentId
        - upload
    Attachment:
      type: object
      description: An uploaded file.
      properties:
        object:
          type: string
          const: attachment
          description: The object's type. Always "attachment".
        id:
          type: string
          format: uuid
          description: The attachment's id.
        status:
          type: string
          enum:
            - ready
            - refused
            - attached
          description: 'ready (pass it in attachmentIds), refused (its type is not accepted), or attached.'
        filename:
          type: string
          description: The file name.
        size:
          type: integer
          description: Bytes.
        type:
          type:
            - string
            - 'null'
          description: 'The sniffed media type, or null when refused.'
        ticketId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The ticket it is attached to, or null.'
        download:
          type:
            - object
            - 'null'
          description: 'A short-lived download link, for an attached file.'
          properties:
            url:
              type: string
              description: 'Download from here, without your token. Opaque: do not parse it.'
              format: uri
            expiresAt:
              type: string
              format: date-time
              description: When url stops working.
          required:
            - url
            - expiresAt
      required:
        - object
        - id
        - status
        - filename
        - size
        - type
        - ticketId
        - download
    WebhookEndpoint:
      type: object
      description: A URL that receives events.
      properties:
        object:
          type: string
          const: webhook_endpoint
          description: The object's type. Always "webhook_endpoint".
        id:
          type: string
          format: uuid
          description: The endpoint's id.
        url:
          type: string
          description: The https URL events are POSTed to.
          format: uri
        description:
          type:
            - string
            - 'null'
          description: Your description.
        enabledEvents:
          type: array
          description: 'The event types sent here, or ["*"] for all.'
          items:
            type: string
            description: 'An event type, or *.'
        status:
          type: string
          enum:
            - enabled
            - disabled
          description: 'enabled, or disabled (by you, or after 3 days of failed deliveries).'
        apiVersion:
          type: string
          description: The API version event payloads are rendered in.
        secret:
          type:
            - string
            - 'null'
          description: 'The signing secret, cxwhsec_ followed by 43 characters. Returned only in the first answer when the endpoint is created and when its secret is rotated. A replay of the same Idempotency-Key answers null: if you lost the secret, rotate it.'
        createdByTokenId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The API token that created the endpoint, or null when it was made in the panel.'
        updatedByTokenId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The API token that last changed the URL, events or secret, or null when the panel did.'
        createdAt:
          type: string
          format: date-time
          description: When it was created.
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - url
        - description
        - enabledEvents
        - status
        - apiVersion
        - secret
        - createdByTokenId
        - updatedByTokenId
        - createdAt
        - livemode
    WebhookEndpointCreate:
      type: object
      description: A new endpoint.
      properties:
        url:
          type: string
          description: 'An https URL on port 443 or 8443, with a public DNS name.'
          format: uri
          maxLength: 2048
        description:
          type: string
          description: Your description.
          maxLength: 200
        enabledEvents:
          type: array
          description: 'Event types to send, or ["*"] for all.'
          items:
            type: string
            enum:
              - order.paid
              - order.held
              - order.completed
              - order.cancelled
              - service.created
              - service.provisioned
              - service.provisioning_failed
              - service.suspended
              - service.unsuspended
              - service.plan_changed
              - service.cancellation_scheduled
              - service.cancellation_removed
              - service.renewed
              - service.terminating
              - service.terminated
              - action.completed
              - invoice.created
              - invoice.paid
              - invoice.overdue
              - invoice.cancelled
              - wallet.credited
              - ticket.replied
              - ticket.closed
              - api_token.revoked
              - protection.attack_started
              - protection.attack_ended
              - '*'
            description: 'An event type, or *.'
          minItems: 1
        apiVersion:
          type: string
          description: 'The API version to render payloads in. Default: the token''s version.'
      required:
        - url
        - enabledEvents
      additionalProperties: false
    RotateSecretRequest:
      type: object
      description: How long the old secret keeps working.
      properties:
        oldSecretExpiresInSeconds:
          type: integer
          description: 'Seconds the old secret stays valid, 0 to 86,400. Default 86,400. Send 0 after a leak to stop it at once.'
          minimum: 0
          maximum: 86400
      required: []
      additionalProperties: false
    RedeliverRequest:
      type: object
      description: Where to send the event again.
      properties:
        endpointId:
          type: string
          format: uuid
          description: The endpoint to deliver to. It must be enabled.
      required:
        - endpointId
      additionalProperties: false
    WebhookEndpointUpdate:
      type: object
      description: Fields to change.
      properties:
        url:
          type: string
          description: The new URL.
          format: uri
          maxLength: 2048
        description:
          type:
            - string
            - 'null'
          description: Your description.
          maxLength: 200
        enabledEvents:
          type: array
          description: Event types to send.
          items:
            type: string
            enum:
              - order.paid
              - order.held
              - order.completed
              - order.cancelled
              - service.created
              - service.provisioned
              - service.provisioning_failed
              - service.suspended
              - service.unsuspended
              - service.plan_changed
              - service.cancellation_scheduled
              - service.cancellation_removed
              - service.renewed
              - service.terminating
              - service.terminated
              - action.completed
              - invoice.created
              - invoice.paid
              - invoice.overdue
              - invoice.cancelled
              - wallet.credited
              - ticket.replied
              - ticket.closed
              - api_token.revoked
              - protection.attack_started
              - protection.attack_ended
              - '*'
            description: 'An event type, or *.'
          minItems: 1
        status:
          type: string
          enum:
            - enabled
            - disabled
          description: enabled or disabled.
      required: []
      additionalProperties: false
    Event:
      type: object
      description: 'Something that happened on your account. Delivered to webhook endpoints, and listed for 30 days.'
      properties:
        object:
          type: string
          const: event
          description: The object's type. Always "event".
        id:
          type: string
          format: uuid
          description: 'The event''s id. Deliveries of the same event carry the same id: record ids you processed and ignore repeats.'
        type:
          type: string
          enum:
            - order.paid
            - order.held
            - order.completed
            - order.cancelled
            - service.created
            - service.provisioned
            - service.provisioning_failed
            - service.suspended
            - service.unsuspended
            - service.plan_changed
            - service.cancellation_scheduled
            - service.cancellation_removed
            - service.renewed
            - service.terminating
            - service.terminated
            - action.completed
            - invoice.created
            - invoice.paid
            - invoice.overdue
            - invoice.cancelled
            - wallet.credited
            - ticket.replied
            - ticket.closed
            - api_token.revoked
            - protection.attack_started
            - protection.attack_ended
            - webhook_endpoint.test
          description: 'The event type. webhook_endpoint.test is sent only by testWebhookEndpoint, to that endpoint.'
        apiVersion:
          type: string
          description: The API version data.object is rendered in.
        createdAt:
          type: string
          format: date-time
          description: When it happened.
        data:
          type: object
          description: The event's data.
          properties:
            object:
              description: 'The object as it was when the event happened: an order, a service, an action, an invoice, a wallet, a ticket, an api_token or (for a test) a webhook_endpoint, by the event type. Its object field names which.'
              oneOf:
                - $ref: '#/components/schemas/Order'
                - $ref: '#/components/schemas/Service'
                - $ref: '#/components/schemas/Action'
                - $ref: '#/components/schemas/Invoice'
                - $ref: '#/components/schemas/Wallet'
                - $ref: '#/components/schemas/Ticket'
                - $ref: '#/components/schemas/ApiToken'
                - $ref: '#/components/schemas/WebhookEndpoint'
                - $ref: '#/components/schemas/ProtectionIncident'
              discriminator:
                propertyName: object
                mapping:
                  order: '#/components/schemas/Order'
                  service: '#/components/schemas/Service'
                  action: '#/components/schemas/Action'
                  invoice: '#/components/schemas/Invoice'
                  wallet: '#/components/schemas/Wallet'
                  ticket: '#/components/schemas/Ticket'
                  api_token: '#/components/schemas/ApiToken'
                  webhook_endpoint: '#/components/schemas/WebhookEndpoint'
                  protection_incident: '#/components/schemas/ProtectionIncident'
            previousAttributes:
              type:
                - object
                - 'null'
              description: 'The earlier values of fields that changed, such as a service''s status, or null.'
          required:
            - object
            - previousAttributes
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - type
        - apiVersion
        - createdAt
        - data
        - livemode
    ApiToken:
      type: object
      description: 'An API token. The token itself is shown only once, in the panel, when it is created; it is never returned by the API.'
      properties:
        object:
          type: string
          const: api_token
          description: The object's type. Always "api_token".
        id:
          type: string
          format: uuid
          description: The token's id.
        name:
          type: string
          description: The token's name.
        prefix:
          type: string
          enum:
            - cxk_live_
          description: 'The token''s prefix: cxk_live_.'
        lastFour:
          type: string
          description: 'The token''s last four characters, to tell tokens apart.'
        scopes:
          type: array
          description: What the token may do.
          items:
            type: string
            enum:
              - 'account:read'
              - 'services:read'
              - 'services:write'
              - 'services:lifecycle'
              - 'services:destructive'
              - 'firewall:read'
              - 'firewall:write'
              - 'ssh_keys:read'
              - 'ssh_keys:write'
              - 'orders:read'
              - 'orders:write'
              - 'billing:read'
              - 'tickets:read'
              - 'tickets:write'
              - 'webhooks:read'
              - 'webhooks:write'
              - 'api_tokens:read'
              - 'api_tokens:write'
              - 'protection:read'
            description: A scope.
        apiVersion:
          type: string
          description: The API version used when a request sends no Clouduxe-Version header.
        ipAllowlist:
          type: array
          description: Addresses or CIDR ranges the token may be used from. Empty means any address.
          items:
            type: string
            description: An IPv4 or IPv6 address or CIDR.
        createdBy:
          type: object
          description: Who made it.
          properties:
            personId:
              type: string
              format: uuid
              description: The person's id.
            name:
              type:
                - string
                - 'null'
              description: 'Their name, or null.'
          required:
            - personId
            - name
        createdAt:
          type: string
          format: date-time
          description: When it was made.
        expiresAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it expires, or null for never. A token holding any elevated scope (marked elevated at https://docs.clouduxe.com/api/authentication#scopes) always expires, at most 365 days after creation.'
        lastUsedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it was last used (updated at most once a minute), or null.'
        lastUsedIp:
          type:
            - string
            - 'null'
          description: 'The address it was last used from, or null.'
        revokedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When it was revoked, or null.'
        revokedReason:
          type:
            - string
            - 'null'
          enum:
            - user
            - leaked
            - member_removed
            - person_disabled
            - account_closed
            - expired
            - null
          description: 'Why: user, leaked (reported by secret scanning), member_removed, person_disabled, account_closed or expired.'
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - name
        - prefix
        - lastFour
        - scopes
        - apiVersion
        - ipAllowlist
        - createdBy
        - createdAt
        - expiresAt
        - lastUsedAt
        - lastUsedIp
        - revokedAt
        - revokedReason
        - livemode
    ServiceList:
      type: object
      description: A page of services.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Service'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    PlanList:
      type: object
      description: Plans you can order.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Plan'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    RegionList:
      type: object
      description: Regions.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Region'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    ImageList:
      type: object
      description: OS images.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Image'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    ActionList:
      type: object
      description: 'A page of actions, newest first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Action'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    PlanOptionList:
      type: object
      description: Plans this service can move to.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/PlanOption'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    FirewallPresetList:
      type: object
      description: Firewall presets.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/FirewallPreset'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    SshKeyList:
      type: object
      description: A page of SSH keys.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/SshKey'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    OrderList:
      type: object
      description: 'A page of orders, newest first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Order'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    InvoiceList:
      type: object
      description: 'A page of invoices, newest first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Invoice'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    WalletTransactionList:
      type: object
      description: 'A page of wallet transactions, newest first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/WalletTransaction'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    DepartmentList:
      type: object
      description: Support departments.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Department'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    TicketList:
      type: object
      description: 'A page of tickets, latest activity first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Ticket'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    WebhookEndpointList:
      type: object
      description: Webhook endpoints.
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/WebhookEndpoint'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    EventList:
      type: object
      description: 'A page of events, newest first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/Event'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    ApiTokenList:
      type: object
      description: 'A page of API tokens, newest first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/ApiToken'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    WebhookDelivery:
      type: object
      description: One delivery attempt. Test sends and redeliveries are queued and answered pending; read the result with getWebhookDelivery.
      properties:
        object:
          type: string
          const: webhook_delivery
          description: The object's type. Always "webhook_delivery".
        id:
          type: string
          format: uuid
          description: The delivery's id.
        eventId:
          type: string
          format: uuid
          description: The event delivered.
        endpointId:
          type: string
          format: uuid
          description: The endpoint it was sent to.
        status:
          type: string
          enum:
            - pending
            - delivered
            - failed
          description: 'pending (queued, not sent yet), delivered (a 2xx within 10 seconds) or failed.'
        responseStatus:
          type:
            - integer
            - 'null'
          description: 'Your endpoint''s HTTP status, or null while pending or when there was no answer.'
        durationMs:
          type:
            - integer
            - 'null'
          description: 'How long your endpoint took, or null while pending or when there was no answer.'
        attemptedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When the attempt was made, or null while pending.'
        createdAt:
          type: string
          format: date-time
          description: When the delivery was queued.
      required:
        - object
        - id
        - eventId
        - endpointId
        - status
        - responseStatus
        - durationMs
        - attemptedAt
        - createdAt
    FirewallProtection:
      type: object
      description: Protection on or off.
      properties:
        enabled:
          type: boolean
          description: 'true to filter traffic, false to pass it unfiltered.'
      required:
        - enabled
      additionalProperties: false
    FirewallPolicy:
      type: object
      description: The default policy.
      properties:
        defaultPolicy:
          type: string
          enum:
            - allow
            - deny
          description: allow or deny.
      required:
        - defaultPolicy
      additionalProperties: false
    BlockIpRequest:
      type: object
      description: An address to block.
      properties:
        ip:
          type: string
          description: One IPv4 address.
          format: ipv4
        expiresInSeconds:
          type: integer
          description: 'How long the block lasts, 60 seconds to one year. Omit it for no end.'
          minimum: 60
          maximum: 31536000
      required:
        - ip
      additionalProperties: false
    TrustIpRequest:
      type: object
      description: An address to trust.
      properties:
        ip:
          type: string
          description: One IPv4 address.
          format: ipv4
        note:
          type: string
          description: 'A note, at most 200 characters on one line.'
          maxLength: 200
      required:
        - ip
      additionalProperties: false
    ApplyPresetRequest:
      type: object
      description: The preset to apply.
      properties:
        presetId:
          type: string
          description: 'A preset''s id, from listFirewallPresets.'
      required:
        - presetId
      additionalProperties: false
    ProtectedPort:
      type: object
      description: 'A protected port range, as the panel shows it.'
      properties:
        protocol:
          type: string
          enum:
            - tcp
            - udp
          description: tcp or udp.
        portStart:
          type: integer
          description: The first port.
          minimum: 1
          maximum: 65535
        portEnd:
          type: integer
          description: The last port.
          minimum: 1
          maximum: 65535
        profile:
          type:
            - string
            - 'null'
          description: 'The protection profile that inspects this traffic, or null for the default checks.'
        enabled:
          type: boolean
          description: Whether the rule is on.
      required:
        - protocol
        - portStart
        - portEnd
        - profile
        - enabled
    ProtectionTraffic:
      type: object
      description: 'Traffic at the protection layer, now.'
      properties:
        receivedPps:
          type:
            - integer
            - 'null'
          description: 'Packets per second arriving at the protection layer, or null when not known.'
        droppedPps:
          type:
            - integer
            - 'null'
          description: 'Packets per second dropped by protection, or null when not known.'
        measuredAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When these rates were measured, or null.'
      required:
        - receivedPps
        - droppedPps
        - measuredAt
    Protection:
      type: object
      description: 'A server''s DDoS protection, read-only: what the panel''s protection page shows.'
      properties:
        object:
          type: string
          const: protection
          description: The object's type. Always "protection".
        serviceId:
          type: string
          format: uuid
          description: The service's id.
        status:
          type: string
          enum:
            - protected
            - under_attack
            - elevated
            - paused
            - sealed
            - not_reporting
            - unknown
            - managed
          description: 'protected (on, no attack), under_attack (an attack is being mitigated now), elevated (traffic is higher than usual, no attack), paused (protection is off, so nothing is filtered), sealed (the address is idle and protection holds it closed; contact support), not_reporting (protection has not reported recently, so no claim about traffic is made), unknown (the state could not be read), or managed (a protected proxy, set up and watched by staff).'
        mitigating:
          type: boolean
          description: True while an attack is being mitigated now.
        currentIncidentId:
          type:
            - string
            - 'null'
          format: uuid
          description: 'The incident being mitigated now, or null.'
        traffic:
          oneOf:
            - $ref: '#/components/schemas/ProtectionTraffic'
            - type: 'null'
          description: 'Traffic now, or null for a managed proxy.'
        last24Hours:
          type:
            - object
            - 'null'
          description: 'Packets in the last 24 hours, or null when not known.'
          properties:
            receivedPackets:
              type:
                - integer
                - 'null'
              description: Packets received.
            droppedPackets:
              type:
                - integer
                - 'null'
              description: Packets dropped by protection.
          required:
            - receivedPackets
            - droppedPackets
        ports:
          type: array
          description: 'The protected ports, as the panel shows them. Change them with the firewall operations.'
          items:
            $ref: '#/components/schemas/ProtectedPort'
        protectedSince:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When protection data for this service starts: nothing before this service held the address is ever shown.'
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When this state was read.
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - serviceId
        - status
        - mitigating
        - currentIncidentId
        - traffic
        - last24Hours
        - ports
        - protectedSince
        - updatedAt
        - livemode
    ProtectionIncident:
      type: object
      description: 'An attack on a protected server, from its first dropped packet to five minutes of quiet.'
      properties:
        object:
          type: string
          const: protection_incident
          description: The object's type. Always "protection_incident".
        id:
          type: string
          format: uuid
          description: The incident's id.
        serviceId:
          type: string
          format: uuid
          description: The service attacked.
        status:
          type: string
          enum:
            - ongoing
            - ended
          description: ongoing or ended.
        startedAt:
          type: string
          format: date-time
          description: When the first attack packet was dropped.
        startKnown:
          type: boolean
          description: 'False when the attack began before the records this service can see (its start is then a lower bound, and the totals are not measured).'
        endedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: 'When the attack ended (its last dropped packet), or null while ongoing.'
        vector:
          type: string
          description: 'The main attack vector, in words, such as UDP flood or invalid game protocol.'
        targetPort:
          type:
            - object
            - 'null'
          description: 'The port most of the attack aimed at, or null.'
          properties:
            protocol:
              type: string
              enum:
                - tcp
                - udp
              description: tcp or udp.
            port:
              type: integer
              description: The port.
              minimum: 1
              maximum: 65535
          required:
            - protocol
            - port
        peakPps:
          type:
            - integer
            - 'null'
          description: 'The highest packets per second measured at the protection layer, or null when not measured.'
        droppedPackets:
          type:
            - integer
            - 'null'
          description: 'Packets dropped by protection during the attack, or null when not measured.'
        actionsTaken:
          type: array
          description: 'What protection did: filtered (dropped at the server''s protection), edge_filtered (also scrubbed earlier, at the network edge).'
          items:
            type: string
            enum:
              - filtered
              - edge_filtered
            description: An action.
        livemode:
          type: boolean
          description: True for objects of your live account.
      required:
        - object
        - id
        - serviceId
        - status
        - startedAt
        - startKnown
        - endedAt
        - vector
        - targetPort
        - peakPps
        - droppedPackets
        - actionsTaken
        - livemode
    ProtectionIncidentList:
      type: object
      description: 'A page of incidents, newest first.'
      properties:
        object:
          type: string
          const: list
          description: Always "list".
        data:
          type: array
          description: The objects on this page.
          items:
            $ref: '#/components/schemas/ProtectionIncident'
        hasMore:
          type: boolean
          description: 'True when there are more objects after this page. A page can hold fewer than limit objects while hasMore is true: keep following nextCursor.'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass this as cursor to get the next page. Null when hasMore is false.
      required:
        - object
        - data
        - hasMore
        - nextCursor
