Menu

Servers

Tiers, servers billed by the hour, volumes, snapshots, one-command apps, SSH keys.

OperationMethod and path
One of the caller's actionsGET /vps/actions/{id}
The caller's VPS activity feedGET /vps/activity
The one-click apps on offerGET /vps/apps
The caller's app deploymentsGET /vps/apps/deployments
Deploy a one-click app on a new instance under one of the caller's hostnamesPOST /vps/apps/deployments
One of the caller's app deploymentsGET /vps/apps/deployments/{id}
Show the root password of an app deployment againPOST /vps/apps/deployments/{id}/reveal-password
Whether a new instance can be placed now, per tier and locationGET /vps/availability
The VPS credit chargesGET /vps/charges
The caller's instancesGET /vps/instances
Create an instance (billed by the hour)POST /vps/instances
One of the caller's instancesGET /vps/instances/{id}
Delete an instance (IRREVERSIBLE)DELETE /vps/instances/{id}
An instance's actions, newest firstGET /vps/instances/{id}/actions
Open a console of an instancePOST /vps/instances/{id}/console
An instance's connected hostnamesGET /vps/instances/{id}/domains
Connect a hostname of one of the caller's zones to an instancePOST /vps/instances/{id}/domains
Release a connected hostnameDELETE /vps/instances/{id}/domains/{connection_id}
An instance's usage metricsGET /vps/instances/{id}/metrics
Power an instance off (hard)POST /vps/instances/{id}/power-off
Power an instance onPOST /vps/instances/{id}/power-on
Switch the notice of a queued create's outcomePOST /vps/instances/{id}/queue-notify
Set or reset an address's reverse DNSPUT /vps/instances/{id}/rdns
Reboot an instancePOST /vps/instances/{id}/reboot
Rebuild an instance's disk from an image (IRREVERSIBLE)POST /vps/instances/{id}/rebuild
Reset an instance (hard)POST /vps/instances/{id}/reset
Move an instance to another tierPOST /vps/instances/{id}/resize
Shut an instance down gracefullyPOST /vps/instances/{id}/shutdown
Snapshot an instance (billed by the hour)POST /vps/instances/{id}/snapshots
Offer an instance (with its attached volumes) to another accountPOST /vps/instances/{id}/transfer
Withdraw the pending transfer offer of a instanceDELETE /vps/instances/{id}/transfer
The caller's instance quota and usageGET /vps/limits
The caller's snapshotsGET /vps/snapshots
Delete a snapshot (IRREVERSIBLE)DELETE /vps/snapshots/{id}
Offer a snapshot to another accountPOST /vps/snapshots/{id}/transfer
Withdraw the pending transfer offer of a snapshotDELETE /vps/snapshots/{id}/transfer
The caller's saved SSH keysGET /vps/ssh-keys
Save an SSH public keyPOST /vps/ssh-keys
Generate an SSH key pair and save its public keyPOST /vps/ssh-keys/generate
One of the caller's saved SSH keysGET /vps/ssh-keys/{id}
Delete one of the caller's saved SSH keysDELETE /vps/ssh-keys/{id}
The system images a create or a rebuild may nameGET /vps/system-images
The VPS tiers on saleGET /vps/tiers
The pending transfer offers made to and by the callerGET /vps/transfers
Accept a transfer offered to the callerPOST /vps/transfers/{id}/accept
Decline a transfer offered to the callerPOST /vps/transfers/{id}/decline
The caller's volumesGET /vps/volumes
Create a volume (billed by the hour)POST /vps/volumes
One of the caller's volumesGET /vps/volumes/{id}
Delete a volume (IRREVERSIBLE)DELETE /vps/volumes/{id}
Attach a volume to an instancePOST /vps/volumes/{id}/attach
Detach a volumePOST /vps/volumes/{id}/detach
Grow a volumePOST /vps/volumes/{id}/resize
Offer a volume to another accountPOST /vps/volumes/{id}/transfer
Withdraw the pending transfer offer of a volumeDELETE /vps/volumes/{id}/transfer

One of the caller's actions#

GET /vps/actions/{id} · operation getVpsAction

type (create, delete, power-on, power-off, reboot) and state (queued, running, succeeded, failed, cancelled). Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsActionView): the result

  • action, object, required
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (an unknown action, another customer's alike)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/actions/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers action, weird servers rebuild, weird servers power):

$ weird servers action <action id>$ weird servers rebuild <server> --image <image|snapshot:id>$ weird servers power <server> on|off|reboot|shutdown|reset

MCP: weird_servers_actions.

The caller's VPS activity feed#

GET /vps/activity · operation listVpsActivity

Every action and operation on what the caller owns, deleted resources included, newest first; page with before (the answer's next_before). Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
instance_idquerystringnoone instance's
typequerystringnoone type
statequerystringnoqueued, running, succeeded, failed or cancelled
beforequerystringnoISO 8601
limitqueryintegerno1..200 (default 50) (default 50; 1 to 200)

Answer 200 (VpsActivityList): the result

  • activity, array of objects, required
    • origin, string, required — who started it, as in VpsActionRecord (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • type, string, required
    • started_at, string or null
    • instance_id, string or null
    • actor_id, string or null
    • attempts, integer
    • resource_type, string (one of instance, volume, snapshot)
    • kind, string, required (one of action, operation)
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • resource_name, string or null
    • finished_at, string or null
    • resource_id, string
  • next_before, string or null — the before of the next page; null on the last

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (a field is wrong: field names it)
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/activity' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers activity):

$ weird servers activity

MCP: weird_servers_actions.

The one-click apps on offer#

GET /vps/apps · operation listVpsApps

The one-click apps that can be deployed (POST /vps/apps/deployments): each with its name, description, the smallest memory and disk it needs and the tiers on sale it runs on. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (VpsAppList): the result

  • apps, array of objects, required
    • id, string, required
    • display_name, string, required
    • description, string or null
    • min_memory_mb, integer
    • min_disk_gb, integer
    • arch, string (one of x86, arm)
    • image_versions, object — the image version a deployment boots, per eligible tier id
    • eligible_tier_ids, array of strings, required — the tiers on sale the app can be deployed on

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/apps' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers apps catalog):

$ weird servers apps catalog

MCP: weird_apps_catalog.

The caller's app deployments#

GET /vps/apps/deployments · operation listVpsAppDeployments

The account's one-click app deployments (POST /vps/apps/deployments makes them), each with its hostname, state, DNS state and instance; include_deleted true lists the deleted ones too. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
include_deletedquerybooleanno

Answer 200 (VpsAppDeploymentList): the result

  • deployments, array of objects, required
    • hostname, string, required
    • url, string — https://<hostname>; link it once dns-state is ok
    • dns_error, string or null — a text for the customer while dns-state is not ok
    • instance_state, string or null — the state of its instance
    • ipv4, string or null
    • id, string, required
    • instance_id, string
    • password_available, boolean — the root password can still be revealed once
    • state, string, required (one of provisioning, active, failed, deleted)
    • zone, string
    • created_at, string
    • last_error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • dns_ok_at, string or null
    • app_id, string, required
    • dns_state, string, required — the managed A record: pending until the hostname answers the server's address (one of pending, ok, error)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/apps/deployments' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers apps deployments):

$ weird servers apps deployments

MCP: weird_apps_deployments.

Deploy a one-click app on a new instance under one of the caller's hostnames#

POST /vps/apps/deployments · operation deployVpsApp

app_id, zone, subdomain, tier_id, ssh_key_ids, name, location, idempotency_key (required, at most 128 characters: choose one value per server you intend to create and repeat it if you retry; a repeat never creates or bills a second one: it answers 200 with the deployment the first request made, and the same value with a different request is refused 409 conflict), queue_if_unavailable, notify_on_outcome. A domain the caller marked sensitive refuses an API key (403 access-denied) and needs a current authenticator code in the request (totp_code); a domain another account holds is 404. The zone must be hosted here; the instance is billed by the hour like any other (the first hour at creation) and the hostname's A record is written once the server runs. The answer's root_password is shown ONCE and never stored. An API key needs dns:write too. Cost (credit charges in GET /credits/charges): the tiers.{tier_id} credit charge of recurring.vps-hourly is billed every hour while what it creates exists.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetythe body field idempotency_key (required) makes a repeat safe

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
recurring.vps-hourlytiers.{tier_id}every hour while it exists—by tier (weird servers tiers)

Request body (VpsAppDeployment):

  • ssh_key_ids, array of strings, required
  • tier_id, string, required
  • queue_if_unavailable, boolean
  • idempotency_key, string, required — required, 1..128 characters: choose one value per resource you intend to create and repeat it if you retry; a repeat never creates or bills a second one (it answers 200 with what the first request made), and the same value with a different request is refused 409 conflict (length 1 to 128)
  • name, string
  • subdomain, string, required
  • location, string
  • totp_code, string (password) — a current authenticator code (the second factor) (a secret: shown once, never logged)
  • zone, string, required
  • backup_code, string (password) — an unused backup code, instead of the authenticator code (a secret: shown once, never logged)
  • app_id, string, required
  • notify_on_outcome, boolean

Answer 200 (VpsAppDeploymentCreated): the deployment an earlier request with the same idempotency_key made

  • deployment, object, required
    • hostname, string, required
    • url, string — https://<hostname>; link it once dns-state is ok
    • dns_error, string or null — a text for the customer while dns-state is not ok
    • instance_state, string or null — the state of its instance
    • ipv4, string or null
    • id, string, required
    • instance_id, string
    • password_available, boolean — the root password can still be revealed once
    • state, string, required (one of provisioning, active, failed, deleted)
    • zone, string
    • created_at, string
    • last_error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • dns_ok_at, string or null
    • app_id, string, required
    • dns_state, string, required — the managed A record: pending until the hostname answers the server's address (one of pending, ok, error)
  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or null — address -> the reverse DNS name set for it (the address's default name until the customer sets another)
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • credits_per_hour, string
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean — on a create that was queued: whether its outcome is told
    • owner_user_id, string — on a delegated instance: the customer it belongs to
    • name, string, required
    • running_at, string or null
    • delegated, boolean — on an instance a grant lets the caller operate: true
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)
    • created_at, string
    • billing_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaid
    • grant_id, string — on a delegated instance read by id: the grant that gives the access
    • traffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are kept
      • outgoing_bytes, number or null
      • ingoing_bytes, number or null
      • included_bytes, number or null
      • sampled_at, string
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string
  • root_password, string (password) — the app's root password, 24 letters and digits; absent on a replay (a secret: shown once, never logged)

Answer 202 (VpsAppDeploymentCreated): the result

  • deployment, object, required
    • hostname, string, required
    • url, string — https://<hostname>; link it once dns-state is ok
    • dns_error, string or null — a text for the customer while dns-state is not ok
    • instance_state, string or null — the state of its instance
    • ipv4, string or null
    • id, string, required
    • instance_id, string
    • password_available, boolean — the root password can still be revealed once
    • state, string, required (one of provisioning, active, failed, deleted)
    • zone, string
    • created_at, string
    • last_error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • dns_ok_at, string or null
    • app_id, string, required
    • dns_state, string, required — the managed A record: pending until the hostname answers the server's address (one of pending, ok, error)
  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or null — address -> the reverse DNS name set for it (the address's default name until the customer sets another)
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • credits_per_hour, string
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean — on a create that was queued: whether its outcome is told
    • owner_user_id, string — on a delegated instance: the customer it belongs to
    • name, string, required
    • running_at, string or null
    • delegated, boolean — on an instance a grant lets the caller operate: true
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)
    • created_at, string
    • billing_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaid
    • grant_id, string — on a delegated instance read by id: the grant that gives the access
    • traffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are kept
      • outgoing_bytes, number or null
      • ingoing_bytes, number or null
      • included_bytes, number or null
      • sampled_at, string
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string
  • root_password, string (password) — the app's root password, 24 letters and digits; absent on a replay (a secret: shown once, never logged)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (with field; idempotency_key missing or longer than 128 characters)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403access-denied, account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it), profile-incomplete (complete the profile first: GET /auth/profile says what is missing), access-denied (the person denied it: start again) or step-up-required; enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflict, quota-exceededquota-exceeded (the account's limit is reached: remove one first), or conflict (field idempotency_key: the value was used for a different request)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
451hostname-blockedhostname-blocked (the hostname or content was blocked after a review: reason abuse-review; contest it through a support ticket or contact)
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/apps/deployments' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"app_id":"<app_id>","zone":"<zone>","subdomain":"<subdomain>","tier_id":"<tier_id>","ssh_key_ids":["<ssh_key_id>"],"idempotency_key":"<idempotency_key>"}'

With the CLI (weird servers apps deploy):

$ weird servers apps deploy <app>

MCP: weird_apps_deploy.

One of the caller's app deployments#

GET /vps/apps/deployments/{id} · operation getVpsAppDeployment

The app deployment id: its hostname and URL, its state, whether its DNS record answers yet (dns_state), whether its root password can still be revealed once (password_available) and its instance. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsAppDeploymentResult): the result

  • deployment, object, required
    • hostname, string, required
    • url, string — https://<hostname>; link it once dns-state is ok
    • dns_error, string or null — a text for the customer while dns-state is not ok
    • instance_state, string or null — the state of its instance
    • ipv4, string or null
    • id, string, required
    • instance_id, string
    • password_available, boolean — the root password can still be revealed once
    • state, string, required (one of provisioning, active, failed, deleted)
    • zone, string
    • created_at, string
    • last_error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • dns_ok_at, string or null
    • app_id, string, required
    • dns_state, string, required — the managed A record: pending until the hostname answers the server's address (one of pending, ok, error)
  • instance, object
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or null — address -> the reverse DNS name set for it (the address's default name until the customer sets another)
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • credits_per_hour, string
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean — on a create that was queued: whether its outcome is told
    • owner_user_id, string — on a delegated instance: the customer it belongs to
    • name, string, required
    • running_at, string or null
    • delegated, boolean — on an instance a grant lets the caller operate: true
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)
    • created_at, string
    • billing_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaid
    • grant_id, string — on a delegated instance read by id: the grant that gives the access
    • traffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are kept
      • outgoing_bytes, number or null
      • ingoing_bytes, number or null
      • included_bytes, number or null
      • sampled_at, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/apps/deployments/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers apps deployment):

$ weird servers apps deployment <id>

MCP: weird_apps_deployments.

Show the root password of an app deployment again#

POST /vps/apps/deployments/{id}/reveal-password · operation revealVpsAppPassword

Shown in this answer only, never stored (Cache-Control: private, no-store). It can be revealed once: after this the password cannot be shown again (change it inside the server if it is lost). This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-secrets:read
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsAppPassword): the result

  • root_password, string (password), required (a secret: shown once, never logged)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/apps/deployments/{id}/reveal-password' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers apps password):

$ weird servers apps password <deployment id>

Whether a new instance can be placed now, per tier and location#

GET /vps/availability · operation getVpsAvailability

Whether a create of each tier would find capacity now, per tier and per location, and how long a queued create waits for capacity (max_wait_hours). Read it before POST /vps/instances; a create without capacity is refused unless queued. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (VpsAvailability): the result

  • availability, object, required — tier id -> its availability
    • each value: object
      • available, boolean, required — a create of the tier would find capacity now
      • locations, object, required — location -> a create there would find capacity now
        • each value: boolean
  • max_wait_hours, integer, required — how long a queued create waits for capacity

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/availability' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers availability):

$ weird servers availability

MCP: weird_servers_catalog.

The VPS credit charges#

GET /vps/charges · operation getVpsCharges

The hourly credit charges of the tiers, of a volume GB and of a snapshot GB. No VPS request is charged as such: instances, volumes and snapshots are billed by the hour while they exist. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (VpsCharges): the result

  • charges_version, integer
  • tiers, array of objects
    • id, string
    • credits_per_hour, string
  • volume_gb_hour, string or null
  • snapshot_gb_hour, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/charges' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers charges, weird servers volumes resize, weird servers snapshots create):

$ weird servers charges$ weird servers volumes resize <volume id> <GB>$ weird servers snapshots create <server> <name>

MCP: weird_servers_catalog.

The caller's instances#

GET /vps/instances · operation listVpsInstances

Newest first; the deleted ones only with include_deleted=true. delegated lists the instances other customers' delegation grants let the caller operate, with owner_user_id and grant_id. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
include_deletedquerybooleannotrue lists the deleted instances too

Answer 200 (VpsInstanceList): the result

  • instances, array of objects, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • delegated, array of objects — the instances other customers' grants let the caller operate
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/instances' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers list, weird servers actions, weird servers activity):

$ weird servers list$ weird servers actions <server>$ weird servers activity

MCP: weird_servers.

Create an instance (billed by the hour)#

POST /vps/instances · operation createVpsInstance

name (1..42 of a-z, 0-9 and dash), tier_id (a tier on sale), ssh_key_ids (1..10 of the caller's saved keys), location and image (default the tier's first), idempotency_key (required, at most 128 characters: choose one value per server you intend to create and repeat it if you retry; a repeat never creates or bills a second one: it answers 200 with the instance the first request made, and the same value with a different request is refused 409 conflict). Billed by the hour at the tier's credits_per_hour: the first hour is charged when the instance is created (402 insufficient-funds when the credits do not cover it), every later hour while it exists; unpaid hours lead to a grace period, then power-off, then, if still unpaid after the retention, deletion: announced beforehand and, by default, only once our team approved it. queue_if_unavailable true: without capacity the answer is 202 with the instance queued (charged only once it is created), notify_on_outcome true emails the outcome. zone + subdomain: the instance gets that hostname from the start: in the caller's own zone, or under a domain granted to the caller (then created for the domain's owner; the payer's profile must be complete, 403 profile-incomplete). Poll the instance (or its action) until running. Cost (credit charges in GET /credits/charges): the tiers.{tier_id} credit charge of recurring.vps-hourly is billed every hour while what it creates exists.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetythe body field idempotency_key (required) makes a repeat safe

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
recurring.vps-hourlytiers.{tier_id}every hour while it exists—by tier (weird servers tiers)

Request body (CreateVpsInstance):

  • ssh_key_ids, array of strings, required — 1..10 of the caller's saved key ids
  • tier_id, string, required
  • queue_if_unavailable, boolean — without capacity: 202 with the instance queued instead of 503 capacity-exhausted
  • image, string — default: the tier's first image
  • idempotency_key, string, required — required, 1..128 characters: choose one value per resource you intend to create and repeat it if you retry; a repeat never creates or bills a second one (it answers 200 with what the first request made), and the same value with a different request is refused 409 conflict (length 1 to 128)
  • name, string, required — 1..42 of a-z, 0-9 and dash
  • subdomain, string — with zone; never blank
  • location, string — default: the tier's first location
  • zone, string — with subdomain: the instance anchored to subdomain.zone from the start (one of the caller's zones, or under a domain granted to the caller)
  • notify_on_outcome, boolean — the outcome of a queued create is told by email

Answer 200 (VpsInstanceResult): the instance an earlier request with the same idempotency_key made

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Answer 202 (VpsInstanceResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (with field; idempotency_key missing or longer than 128 characters)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover the first hour)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (the tier, or a saved key)
409conflict, quota-exceededquota-exceeded (the per-customer instance quota), or conflict (field idempotency_key: the value was used for a different request)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503capacity-exhausted, charge-not-set, unavailablecapacity-exhausted (no capacity now: try later or send queue_if_unavailable), or unavailable (VPS is not available now: try again later), or charge-not-set (its credit charge is not set yet: nothing was created or charged)

Example

curl -X POST 'https://api.weird.ro/vps/instances' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>","tier_id":"<tier_id>","ssh_key_ids":["<ssh_key_id>"],"idempotency_key":"<idempotency_key>"}'

With the CLI (weird servers create):

$ weird servers create <name>

MCP: weird_servers_create.

One of the caller's instances#

GET /vps/instances/{id} · operation getVpsInstance

The state (pending, creating, running, off, deleting, deleted, failed), the addresses once running, the credit charge per hour and billing_hold (grace, powered-off or refund-pending while hours are unpaid). Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsInstanceView): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (an unknown instance, another customer's alike)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/instances/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers get, weird servers delete, weird servers create):

$ weird servers get <server>$ weird servers delete <server>$ weird servers create <name>

MCP: weird_servers.

Delete an instance (IRREVERSIBLE)#

DELETE /vps/instances/{id} · operation deleteVpsInstance

IRREVERSIBLE: the server and its disk are destroyed and nothing can be recovered. The instance moves to deleting, then deleted; hours already charged are not refunded. A delete overrides any action in progress; on a queued instance it cancels the create. The DNS records of the hostnames the instance was connected to are removed from its owner's zone where unchanged (dns: removed, kept). Open to a delegate. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsInstanceResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409invalid-stateinvalid-state (already deleting or deleted)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/instances/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers delete):

$ weird servers delete <server>

MCP: weird_servers_delete.

An instance's actions, newest first#

GET /vps/instances/{id}/actions · operation listVpsInstanceActions

The actions run on the instance id (create, power, reboot, resize, snapshot and the rest), newest first, each with its state and, when it failed, why. Poll it, or GET /vps/actions/{id}, after an operation answered 202. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsActionList): the result

  • actions, array of objects, required
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/instances/{id}/actions' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers actions):

$ weird servers actions <server>

MCP: weird_servers_actions.

Open a console of an instance#

POST /vps/instances/{id}/console · operation openVpsConsole

A VNC session over a websocket (url) and its one-time password, short-lived and shown once (Cache-Control: private, no-store). The instance must be running with no action in progress. Only for the instance's owner, not a delegate. 501 not-implemented where the instance offers no console. Safe to repeat: each call opens a new session. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-secrets:read
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsConsoleResult): the result

  • console, object, required
    • url, string, required — the websocket URL of a VNC session (short-lived)
    • password, string (password), required — its one-time password; never stored (a secret: shown once, never logged)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
501not-implementednot-implemented (not offered for this resource)
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/console' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers console):

$ weird servers console <server>

An instance's connected hostnames#

GET /vps/instances/{id}/domains · operation listVpsInstanceHostnames

Each connection with the records it needs. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsConnectionList): the result

  • connections, array of objects, required
    • hostname, string
    • records, array of objects — when listed: the zone records it needs (none until the server has an address)
      • zone, string
      • name, string
      • type, string (one of A, AAAA)
      • value, string
    • id, string
    • instance_id, string
    • set_rdns, boolean
    • state, string (one of pending, active, deleted)
    • zone, string
    • deleted_at, string or null
    • created_at, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/instances/{id}/domains' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers hostnames):

$ weird servers hostnames <server>

MCP: weird_servers_hostnames.

Connect a hostname of one of the caller's zones to an instance#

POST /vps/instances/{id}/domains · operation connectVpsInstanceHostname

zone (a DNS zone the instance's owner hosts here: the caller's, or the owner's for an instance operated under a grant), subdomain (never blank), set_rdns. The hostname's A and AAAA records are written in the zone (replacing records of the same name and type); if they cannot be written, nothing is connected and the failure is answered. An API key needs dns:write too. Not charged. Disconnect it with DELETE /vps/instances/{id}/domains/{connection_id}.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsConnectHostname):

  • zone, string, required — a DNS zone the instance's owner hosts here
  • subdomain, string, required — never blank
  • set_rdns, boolean

Answer 201 (VpsConnectionResult): the result

  • connection, object, required
    • hostname, string
    • records, array of objects — when listed: the zone records it needs (none until the server has an address)
      • zone, string
      • name, string
      • type, string (one of A, AAAA)
      • value, string
    • id, string
    • instance_id, string
    • set_rdns, boolean
    • state, string (one of pending, active, deleted)
    • zone, string
    • deleted_at, string or null
    • created_at, string
  • records, array of objects
    • zone, string
    • name, string
    • type, string (one of A, AAAA)
    • value, string
  • action, object or null
  • dns, object — the records of the released hostnames: removed from the owner's zone, or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field zone or subdomain)
401unauthorizedunauthorized
403account-suspended, delegate-blocked, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it), profile-incomplete (complete the profile first: GET /auth/profile says what is missing) or delegate-blocked (a delegate may not do this: the owner must); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (the instance, or a zone of the owner)
409conflictconflict (the hostname is connected already: disconnect it first)
429rate-limitedrate-limited
451hostname-blockedhostname-blocked (the hostname or content was blocked after a review: reason abuse-review; contest it through a support ticket or contact)
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/domains' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"zone":"<zone>","subdomain":"<subdomain>"}'

With the CLI (weird servers hostnames connect):

$ weird servers hostnames connect <server> <zone> <name>

MCP: weird_servers_hostname_connect.

Release a connected hostname#

DELETE /vps/instances/{id}/domains/{connection_id} · operation disconnectVpsInstanceHostname

The hostname is released, then its records are removed from the zone where unchanged (dns: removed, kept). An API key needs dns:write too. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes
connection_idpathstringyes

Answer 200 (VpsConnectionResult): the result

  • connection, object, required
    • hostname, string
    • records, array of objects — when listed: the zone records it needs (none until the server has an address)
      • zone, string
      • name, string
      • type, string (one of A, AAAA)
      • value, string
    • id, string
    • instance_id, string
    • set_rdns, boolean
    • state, string (one of pending, active, deleted)
    • zone, string
    • deleted_at, string or null
    • created_at, string
  • records, array of objects
    • zone, string
    • name, string
    • type, string (one of A, AAAA)
    • value, string
  • action, object or null
  • dns, object — the records of the released hostnames: removed from the owner's zone, or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/instances/{id}/domains/{connection_id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers hostnames disconnect):

$ weird servers hostnames disconnect <server> <connection id>

MCP: weird_servers_hostname_disconnect.

An instance's usage metrics#

GET /vps/instances/{id}/metrics · operation getVpsInstanceMetrics

Live or from history (source); works for the caller's deleted instances too (history). Open to a delegate. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes
typequerystringnoa comma list of cpu, disk, network, traffic
startquerystringnoISO 8601
endquerystringnoISO 8601
stepqueryintegernoseconds

Answer 200 (VpsMetrics): the result

  • instance_id, string
  • source, string (one of live, stored)
  • start, string
  • end, string
  • step, integer — seconds between points, as answered
  • series, array of objects
    • name, string
    • unit, string
    • points, array of arrays

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (a field is wrong: field names it)
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited (also too many live reads: wait)
501not-implementednot-implemented (not offered for this resource)
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/instances/{id}/metrics' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers metrics):

$ weird servers metrics <server>

MCP: weird_servers_metrics.

Power an instance off (hard)#

POST /vps/instances/{id}/power-off · operation powerOffVpsInstance

No body. A powered-off instance is still billed by the hour; delete it to stop the billing. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsInstanceResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/power-off' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers power):

$ weird servers power <server> on|off|reboot|shutdown|reset

MCP: weird_servers_power.

Power an instance on#

POST /vps/instances/{id}/power-on · operation powerOnVpsInstance

No body. An instance powered off for unpaid hours is refused 402 payment-required until the credits cover them. Power it off again with POST /vps/instances/{id}/power-off. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsInstanceResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
402payment-requiredpayment-required (powered off for unpaid hours: top up first)
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (an action is in progress)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/power-on' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers power):

$ weird servers power <server> on|off|reboot|shutdown|reset

MCP: weird_servers_power.

Switch the notice of a queued create's outcome#

POST /vps/instances/{id}/queue-notify · operation setVpsQueueNotify

enabled: whether the outcome of the instance's queued create (one waiting for capacity) is emailed when it is placed or its wait ends. Switch it back the same way. Once the create is no longer queued, 409 invalid-state. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsQueueNotify):

  • enabled, boolean, required

Answer 200 (VpsInstanceRecordResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or null — address -> the reverse DNS name set for it (the address's default name until the customer sets another)
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • credits_per_hour, string
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean — on a create that was queued: whether its outcome is told
    • owner_user_id, string — on a delegated instance: the customer it belongs to
    • name, string, required
    • running_at, string or null
    • delegated, boolean — on an instance a grant lets the caller operate: true
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)
    • created_at, string
    • billing_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaid
    • grant_id, string — on a delegated instance read by id: the grant that gives the access
    • traffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are kept
      • outgoing_bytes, number or null
      • ingoing_bytes, number or null
      • included_bytes, number or null
      • sampled_at, string
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string
  • dns_records, array of objects — on a delete: the zone records of the hostnames released, for the caller to remove

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409invalid-stateinvalid-state (the create is no longer queued)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/queue-notify' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true}'

With the CLI (weird servers queue-notify):

$ weird servers queue-notify <server> on|off

MCP: weird_servers_queue_notify.

Set or reset an address's reverse DNS#

PUT /vps/instances/{id}/rdns · operation setVpsInstanceRdns

ip, hostname (null resets to the default name). Open to a delegate. Set it again, or send null to go back to the default name. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsRdns):

  • ip, string, required
  • hostname, string or null, required — null resets to the default name

Answer 200 (VpsActionResult): the result

  • action, object, required
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (a field is wrong: field names it)
401unauthorizedunauthorized
403account-suspended, delegate-blocked, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it), profile-incomplete (complete the profile first: GET /auth/profile says what is missing) or delegate-blocked (a delegate may not do this: the owner must); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X PUT 'https://api.weird.ro/vps/instances/{id}/rdns' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip":"<ip>","hostname":"<hostname>"}'

With the CLI (weird servers rdns):

$ weird servers rdns <server> <ip> [hostname]

MCP: weird_servers_rdns_set.

Reboot an instance#

POST /vps/instances/{id}/reboot · operation rebootVpsInstance

No body. Asks the instance's system to restart (a soft reboot): it comes back with its disk as it was. Answers the action queued; follow it with GET /vps/actions/{id}. The instance must be running (409 invalid-state otherwise; busy while another action runs: retry after it). This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsInstanceResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/reboot' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers power):

$ weird servers power <server> on|off|reboot|shutdown|reset

MCP: weird_servers_power.

Rebuild an instance's disk from an image (IRREVERSIBLE)#

POST /vps/instances/{id}/rebuild · operation rebuildVpsInstance

image: a system image of the instance's tier or snapshot:<id>. IRREVERSIBLE: everything on the disk is lost; the instance keeps its tier, addresses and hours. Not charged. Not open to a delegate.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsRebuild):

  • image, string, required — a system image of the instance's tier, or snapshot:<id>
  • totp_code, string (password) — a current authenticator code (the second factor) (a secret: shown once, never logged)
  • backup_code, string (password) — an unused backup code, instead of the authenticator code (a secret: shown once, never logged)

Answer 202 (VpsActionResult): the result

  • action, object, required
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field image)
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/rebuild' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image":"<image>"}'

With the CLI (weird servers rebuild):

$ weird servers rebuild <server> --image <image|snapshot:id>

MCP: weird_servers_rebuild.

Reset an instance (hard)#

POST /vps/instances/{id}/reset · operation resetVpsInstance

No body. Restarts the instance at once without asking its system first, like pressing a reset button: what was not written to disk is lost. Use it when a reboot does not work. Answers the action queued. 409 invalid-state when it is not running, busy while another action runs. Cannot be undone. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsInstanceResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/reset' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers power):

$ weird servers power <server> on|off|reboot|shutdown|reset

MCP: weird_servers_power.

Move an instance to another tier#

POST /vps/instances/{id}/resize · operation resizeVpsInstance

tier_id. The instance must be off; the disk grows with the new tier, permanently (it cannot be shrunk back). The new tier's hourly credit charge applies from the next hour. Not open to a delegate. Cost (credit charges in GET /credits/charges): the tiers.{tier_id} credit charge of recurring.vps-hourly is billed every hour while what it creates exists.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetya repeat is refused or changes nothing: a repeat is refused: 409 busy while the first resize runs, then 400 invalid-params (field tier_id: the instance is of this tier already)

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
recurring.vps-hourlytiers.{tier_id}every hour while it exists—by tier (weird servers tiers)

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsResize):

  • tier_id, string, required

Answer 202 (VpsActionResult): the result

  • action, object, required
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field tier_id)
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (power it off first) or busy (another action on it is running: retry after it)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/resize' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tier_id":"<tier_id>"}'

With the CLI (weird servers resize):

$ weird servers resize <server> --tier <size>

MCP: weird_servers_resize.

Shut an instance down gracefully#

POST /vps/instances/{id}/shutdown · operation shutdownVpsInstance

The signal the guest's operating system may ignore. Open to a delegate. Power it on again with POST /vps/instances/{id}/power-on. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsInstanceResult): the result

  • instance, object, required
    • ssh_key_ids, array of strings
    • tier_id, string
    • rdns, object or array of values or null
    • failure_reason, string or null
    • restriction, object — on a resource held after a review: suspended (its account is restricted) or blocked (its content or hostname may not be served); the one reason code is abuse-review
      • state, string, required (one of suspended, blocked)
      • reason, string, required (must be "abuse-review")
      • decision_id, string or null — the decision on your account that put it in place (GET /auth/account/restrictions lists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it is
      • contact, string — the abuse contact address to write to about it
    • credits_per_hour, string — a decimal amount as text
    • image, string
    • ipv4, string or null
    • ipv6, string or null
    • id, string, required
    • queue_notify, boolean
    • owner_user_id, string
    • name, string, required
    • running_at, string or null
    • delegated, boolean — operated under a delegation grant
    • unpaid_since, string or null
    • location, string
    • adopted_at, string or null
    • state, string, required (one of queued, pending, creating, running, off, deleting, deleted, failed)
    • deleted_at, string or null
    • queued_until, string or null — a create waiting for capacity (state queued) waits until then
    • created_at, string
    • billing_hold, string or null — grace, powered-off or refund-pending while hours are unpaid
    • grant_id, string
    • traffic, object or null
  • action, object
    • origin, string
    • error, string or null
    • id, string, required
    • started_at, string or null
    • instance_id, string, required
    • attempts, integer
    • type, string, required — create, delete, power-on, power-off, reboot, shutdown, reset, and other kinds
    • state, string, required (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
  • dns, object — on a delete: the records of the hostnames the instance was released from, removed from the owner's zone or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
429rate-limitedrate-limited
501not-implementednot-implemented (not offered for this resource)
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/shutdown' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers power):

$ weird servers power <server> on|off|reboot|shutdown|reset

MCP: weird_servers_power.

Snapshot an instance (billed by the hour)#

POST /vps/instances/{id}/snapshots · operation createVpsSnapshot

name and idempotency_key (required, at most 128 characters: choose one value per snapshot you intend to take and repeat it if you retry; a repeat never takes or bills a second one: it answers 200 with the snapshot the first request made, and the same value with another server or name is refused 409 conflict; a snapshot that failed frees its value). Billed per GB and hour while it is kept. Cost (credit charges in GET /credits/charges): the snapshot_gb_hour credit charge of recurring.vps-hourly times the snapshot's size in GB is billed every hour while what it creates exists.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetythe body field idempotency_key (required) makes a repeat safe

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
recurring.vps-hourlysnapshot_gb_hourevery hour while it existsthe snapshot's size in GBsee the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (CreateVpsSnapshot):

  • name, string, required
  • idempotency_key, string, required — required, 1..128 characters: choose one value per resource you intend to create and repeat it if you retry; a repeat never creates or bills a second one (it answers 200 with what the first request made), and the same value with a different request is refused 409 conflict (length 1 to 128)

Answer 200 (VpsSnapshotResult): the snapshot an earlier request with the same idempotency_key made

  • snapshot, object, required
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • image, string, required — what a create names as image to boot from it: snapshot:<id>
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • state, string, required (one of pending, available, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer or null
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Answer 202 (VpsSnapshotResult): the result

  • snapshot, object, required
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • image, string, required — what a create names as image to boot from it: snapshot:<id>
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • state, string, required (one of pending, available, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer or null
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (with field; idempotency_key missing or longer than 128 characters)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, conflict, invalid-state, quota-exceededinvalid-state (not possible in its present state: read it, and retry once it allows it), busy (another action on it is running: retry after it), quota-exceeded (the account's limit is reached: remove one first), or conflict (field idempotency_key: the value was used for a different request)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/snapshots' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>","idempotency_key":"<idempotency_key>"}'

With the CLI (weird servers snapshots create):

$ weird servers snapshots create <server> <name>

MCP: weird_servers_snapshot_create.

Offer an instance (with its attached volumes) to another account#

POST /vps/instances/{id}/transfer · operation offerVpsInstanceTransfer

email: the recipient account's address (its login address or a verified linked one); and a current authenticator code IN THIS REQUEST (totp_code or backup_code: a stepped-up session alone is refused 403 step-up-required). One pending offer per resource; the resource must be idle and its hours paid. Not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Strong authenticationthe body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsTransferOffer):

  • email, string, required — the recipient's email address (its login address or a verified linked one)
  • totp_code, string (password) — a current authenticator code (the second factor) (a secret: shown once, never logged)
  • backup_code, string (password) — an unused backup code, instead of the authenticator code (a secret: shown once, never logged)

Answer 200 (VpsTransferResult): the offer stored already

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Answer 201 (VpsTransferResult): the result

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field email: malformed, or the caller's own)
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (the resource, or no account holds the address)
409conflict, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or conflict
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/instances/{id}/transfer' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"<email>"}'

With the CLI (weird servers transfers offer):

$ weird servers transfers offer server|volume|snapshot <name|id> <email>

MCP: weird_server_transfer_offer.

Withdraw the pending transfer offer of a instance#

DELETE /vps/instances/{id}/transfer · operation cancelVpsInstanceTransfer

Withdraws the pending offer of the instance id to another account (POST /vps/instances/{id}/transfer made it): the instance stays the caller's. Offer it again to undo. No pending offer is 404. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsTransferResult): the result

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/instances/{id}/transfer' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers transfers cancel):

$ weird servers transfers cancel server|volume|snapshot <name|id>

MCP: weird_server_transfer_cancel.

The caller's instance quota and usage#

GET /vps/limits · operation getVpsLimits

How many instances the account may have (per_customer_quota), how many it has (used) and how many more it may create (available). A create past it is refused; ask support for more. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (VpsLimits): the result

  • per_customer_quota, integer, required
  • used, integer, required — the caller's live instances
  • available, integer, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/limits' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers limits):

$ weird servers limits

MCP: weird_servers_catalog.

The caller's snapshots#

GET /vps/snapshots · operation listVpsSnapshots

The account's snapshots (POST /vps/instances/{id}/snapshots takes them), each with its state, size and the image a create names to boot from it (snapshot:<id>). A snapshot is billed by the hour while it exists. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (VpsSnapshotList): the result

  • snapshots, array of objects, required
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • image, string, required — what a create names as image to boot from it: snapshot:<id>
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • state, string, required (one of pending, available, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/snapshots' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers snapshots list):

$ weird servers snapshots list

MCP: weird_servers_snapshots.

Delete a snapshot (IRREVERSIBLE)#

DELETE /vps/snapshots/{id} · operation deleteVpsSnapshot

Deletes the snapshot id: its billing stops and it can no longer boot a server. IRREVERSIBLE: the snapshot cannot be recovered. 409 invalid-state while it is still being taken or already being deleted. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsSnapshotResult): the result

  • snapshot, object, required
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • image, string, required — what a create names as image to boot from it: snapshot:<id>
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • state, string, required (one of pending, available, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer or null
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/snapshots/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers snapshots delete):

$ weird servers snapshots delete <snapshot id>

MCP: weird_servers_snapshot_delete.

Offer a snapshot to another account#

POST /vps/snapshots/{id}/transfer · operation offerVpsSnapshotTransfer

email: the recipient account's address (its login address or a verified linked one); and a current authenticator code IN THIS REQUEST (totp_code or backup_code: a stepped-up session alone is refused 403 step-up-required). One pending offer per resource; the resource must be idle and its hours paid. Not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Strong authenticationthe body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsTransferOffer):

  • email, string, required — the recipient's email address (its login address or a verified linked one)
  • totp_code, string (password) — a current authenticator code (the second factor) (a secret: shown once, never logged)
  • backup_code, string (password) — an unused backup code, instead of the authenticator code (a secret: shown once, never logged)

Answer 200 (VpsTransferResult): the offer stored already

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Answer 201 (VpsTransferResult): the result

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field email: malformed, or the caller's own)
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (the resource, or no account holds the address)
409conflict, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or conflict
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/snapshots/{id}/transfer' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"<email>"}'

With the CLI (weird servers transfers offer):

$ weird servers transfers offer server|volume|snapshot <name|id> <email>

MCP: weird_server_transfer_offer.

Withdraw the pending transfer offer of a snapshot#

DELETE /vps/snapshots/{id}/transfer · operation cancelVpsSnapshotTransfer

Withdraws the pending offer of the snapshot id to another account (POST /vps/snapshots/{id}/transfer made it): the snapshot stays the caller's. Offer it again to undo. No pending offer is 404. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsTransferResult): the result

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/snapshots/{id}/transfer' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers transfers cancel):

$ weird servers transfers cancel server|volume|snapshot <name|id>

MCP: weird_server_transfer_cancel.

The caller's saved SSH keys#

GET /vps/ssh-keys · operation listSshKeys

The account's one SSH key store: the keys a VPS create names and a tunnel create may name by ssh_key_id. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (SshKeyList): the result

  • ssh_keys, array of objects, required
    • id, string, required
    • name, string, required
    • public_key, string, required — the OpenSSH public key line
    • fingerprint, string, required — SHA256:<base64>
    • created_at, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/ssh-keys' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers ssh-keys list, weird servers ssh-keys delete, weird servers ssh-keys get):

$ weird servers ssh-keys list$ weird servers ssh-keys delete <key>$ weird servers ssh-keys get <key>

MCP: weird_servers_ssh_keys.

Save an SSH public key#

POST /vps/ssh-keys · operation createSshKey

name and public_key, one OpenSSH public key line; answered with its SHA-256 fingerprint. Remove it with DELETE /vps/ssh-keys/{id}. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Request body (CreateSshKey):

  • name, string, required
  • public_key, string, required — one OpenSSH public key line

Answer 201 (SshKeyResult): the result

  • ssh_key, object, required
    • id, string, required
    • name, string, required
    • public_key, string, required — the OpenSSH public key line
    • fingerprint, string, required — SHA256:<base64>
    • created_at, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field name or public_key)
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
409conflict, quota-exceededconflict (the key is saved already) or quota-exceeded (the account's limit is reached: remove one first)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/ssh-keys' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>","public_key":"<public_key>"}'

With the CLI (weird servers ssh-keys add, weird servers apps deploy, weird servers create):

$ weird servers ssh-keys add <name> <public key file|key line>$ weird servers apps deploy <app>$ weird servers create <name>

MCP: weird_servers_ssh_key_add.

Generate an SSH key pair and save its public key#

POST /vps/ssh-keys/generate · operation generateSshKey

name. The answer's private_key is shown ONCE and never stored (Cache-Control: private, no-store): keep it. A lost private key cannot be shown again: remove the key with DELETE /vps/ssh-keys/{id} and generate another. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Request body (VpsNameBody):

  • name, string, required

Answer 201 (VpsGeneratedSshKey): the result

  • ssh_key, object, required
    • id, string
    • name, string
    • public_key, string
    • fingerprint, string — SHA256:<base64>
    • created_at, string
  • private_key, string (password), required — the OpenSSH private key file; in this answer only (a secret: shown once, never logged)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field name)
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflict, quota-exceededconflict or quota-exceeded (the account's limit is reached: remove one first)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/ssh-keys/generate' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>"}'

With the CLI (weird servers ssh-keys generate):

$ weird servers ssh-keys generate <name>

One of the caller's saved SSH keys#

GET /vps/ssh-keys/{id} · operation getSshKey

The saved SSH key id (GET /vps/ssh-keys lists them): its name, public key, fingerprint and when it was added; never a private key. An unknown or another account's key is 404 alike. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (SshKeyResult): the result

  • ssh_key, object, required
    • id, string, required
    • name, string, required
    • public_key, string, required — the OpenSSH public key line
    • fingerprint, string, required — SHA256:<base64>
    • created_at, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (an unknown key, another customer's alike)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/ssh-keys/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers ssh-keys get):

$ weird servers ssh-keys get <key>

MCP: weird_servers_ssh_keys.

Delete one of the caller's saved SSH keys#

DELETE /vps/ssh-keys/{id} · operation deleteSshKey

No longer offered to new instances. Servers already made keep it in their own authorized keys (remove it there yourself), and a tunnel created with it keeps the key it was created with. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (Deleted): the result

  • deleted, boolean, required (must be true)
  • id, string, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/ssh-keys/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers ssh-keys delete):

$ weird servers ssh-keys delete <key>

MCP: weird_servers_ssh_key_delete.

The system images a create or a rebuild may name#

GET /vps/system-images · operation listVpsSystemImages

The system images POST /vps/instances and POST /vps/instances/{id}/rebuild may name as image, each with the tiers it boots on; tier_id narrows the list to one tier's. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
tier_idquerystringno

Answer 200 (VpsSystemImageList): the result

  • system_images, array of objects, required
    • id, string, required — what a create names as image
    • display_name, string, required
    • tier_ids, array of strings, required — the tiers it boots on

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/system-images' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers images):

$ weird servers images

MCP: weird_servers_catalog.

The VPS tiers on sale#

GET /vps/tiers · operation listVpsTiers

The tiers on sale: the size, the credit charge per hour (credits, a decimal string), and the locations and images a create may name. No complete profile needed. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (VpsTierList): the result

  • tiers, array of objects, required
    • credits_per_hour, string, required — credits per hour, a decimal string
    • disk_gb, integer or null
    • memory_mb, integer or null
    • cpu, integer or null
    • id, string, required
    • name, string, required
    • locations, array of strings, required — the abstract locations a create may name
    • images, array of strings, required — the images a create may name
    • description, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (VPS did not answer: try again later)
503unavailableunavailable (VPS is not available now)

Example

curl -X GET 'https://api.weird.ro/vps/tiers' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers tiers, weird servers resize, weird servers apps deploy):

$ weird servers tiers$ weird servers resize <server> --tier <size>$ weird servers apps deploy <app>

MCP: weird_servers_catalog.

The pending transfer offers made to and by the caller#

GET /vps/transfers · operation listVpsTransfers

The pending transfer offers of servers, volumes and snapshots: incoming (offered to the caller: accept with POST /vps/transfers/{id}/accept or decline) and outgoing (offered by the caller: withdraw one with the resource's DELETE .../transfer). Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Answer 200 (VpsTransferList): the result

  • incoming, array of objects
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null
  • outgoing, array of objects
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/transfers' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers transfers):

$ weird servers transfers

MCP: weird_server_transfers.

Accept a transfer offered to the caller#

POST /vps/transfers/{id}/accept · operation acceptVpsTransfer

A current authenticator code IN THIS REQUEST (totp_code or backup_code) and a complete profile. The resource becomes the caller's (an instance with its attached volumes; its saved SSH keys are cleared: rotate the keys inside the server); the current hour was paid by the previous owner, the next is billed to the caller. The DNS records of the hostnames the instance was connected to are removed from the previous owner's zone where unchanged (dns: removed, kept). Not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Strong authenticationthe body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsStepUpBody):

  • totp_code, string (password) — a current authenticator code (the second factor) (a secret: shown once, never logged)
  • backup_code, string (password) — an unused backup code, instead of the authenticator code (a secret: shown once, never logged)

Answer 200 (VpsTransferAccepted): the result

  • transfer, object
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null
  • resource_type, string
  • resource_id, string
  • dns, object — the records of the released hostnames: removed from the owner's zone, or kept (changed by hand since, or the zone is gone)

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflict, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or conflict (the resource changed since the offer)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/transfers/{id}/accept' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

With the CLI (weird servers transfers accept):

$ weird servers transfers accept <transfer id>

MCP: weird_server_transfer_accept.

Decline a transfer offered to the caller#

POST /vps/transfers/{id}/decline · operation declineVpsTransfer

Declines the transfer id offered to the caller: the resource stays with the account that offered it. Cannot be undone: that account may offer it again. An unknown or no longer pending offer is 404. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsTransferResult): the result

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/transfers/{id}/decline' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers transfers decline):

$ weird servers transfers decline <transfer id>

MCP: weird_server_transfer_decline.

The caller's volumes#

GET /vps/volumes · operation listVpsVolumes

The account's volumes, each with its size, state, location and the instance it is attached to (device inside it); include_deleted true lists the deleted ones too. A volume is billed by the hour while it exists. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
include_deletedquerybooleanno

Answer 200 (VpsVolumeList): the result

  • volumes, array of objects, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/volumes' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers volumes list):

$ weird servers volumes list

MCP: weird_servers_volumes.

Create a volume (billed by the hour)#

POST /vps/volumes · operation createVpsVolume

name, size_gb, instance_id (attached at once) or tier_id + location, and idempotency_key (required, at most 128 characters: choose one value per volume you intend to create and repeat it if you retry; a repeat never creates or bills a second one: it answers 200 with the volume the first request made, and the same value with a different request is refused 409 conflict). Billed by the hour per GB while it exists; the first hour is charged at creation (402 insufficient-funds when the credits do not cover it). Cost (credit charges in GET /credits/charges): the volume_gb_hour credit charge of recurring.vps-hourly times size_gb is billed every hour while what it creates exists.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetythe body field idempotency_key (required) makes a repeat safe

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
recurring.vps-hourlyvolume_gb_hourevery hour while it existssize_gbsee the credit charges

Request body (CreateVpsVolume):

  • name, string, required
  • size_gb, integer, required
  • instance_id, string
  • tier_id, string
  • location, string
  • idempotency_key, string, required — required, 1..128 characters: choose one value per resource you intend to create and repeat it if you retry; a repeat never creates or bills a second one (it answers 200 with what the first request made), and the same value with a different request is refused 409 conflict (length 1 to 128)

Answer 200 (VpsVolumeResult): the volume an earlier request with the same idempotency_key made

  • volume, object, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Answer 202 (VpsVolumeResult): the result

  • volume, object, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (with field; idempotency_key missing or longer than 128 characters)
401unauthorizedunauthorized
402insufficient-fundsinsufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry)
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409conflict, invalid-state, quota-exceededquota-exceeded (the account's limit is reached: remove one first), invalid-state (not possible in its present state: read it, and retry once it allows it), or conflict (field idempotency_key: the value was used for a different request)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/volumes' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>","size_gb":1,"idempotency_key":"<idempotency_key>"}'

With the CLI (weird servers volumes create):

$ weird servers volumes create <name> --size <GB> (--server <server> | --tier <size> --location <where>)

MCP: weird_servers_volume_create.

One of the caller's volumes#

GET /vps/volumes/{id} · operation getVpsVolume

The volume id: its size, state, location and the instance it is attached to. Changes nothing. Cost (credit charges in GET /credits/charges): the per_request credit charge of vps.reads is charged for each call that answers successfully, after it has answered (a refused or failed call is not charged); the calls are added up and taken from the credits every hour.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:read
Chargedyes — see the charges below
Retry safetya repeat makes a second one and is charged again: each successful call is charged as one request: a repeat after a lost answer is a second request and is charged again

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
vps.readsper_requestafter a successful answer—see the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsVolumeResult): the result

  • volume, object, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X GET 'https://api.weird.ro/vps/volumes/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers volumes get):

$ weird servers volumes get <volume id>

MCP: weird_servers_volumes.

Delete a volume (IRREVERSIBLE)#

DELETE /vps/volumes/{id} · operation deleteVpsVolume

Deletes the volume id and the data on it: its billing stops. IRREVERSIBLE: the data cannot be recovered. Detach it first (POST /vps/volumes/{id}/detach): an attached volume is refused 409 (in use). This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsVolumeResult): the result

  • volume, object, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or in use
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/volumes/{id}' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers volumes delete):

$ weird servers volumes delete <volume id>

MCP: weird_servers_volume_delete.

Attach a volume to an instance#

POST /vps/volumes/{id}/attach · operation attachVpsVolume

instance_id: an instance of the caller in the volume's location. The volume appears inside it as a device (device once attached). Undo it with POST /vps/volumes/{id}/detach. 409 invalid-state when the volume or the instance cannot take it now, busy while another action runs. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsVolumeAttach):

  • instance_id, string, required

Answer 202 (VpsVolumeResult): the result

  • volume, object, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (a field is wrong: field names it)
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/volumes/{id}/attach' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"instance_id":"<instance_id>"}'

With the CLI (weird servers volumes attach):

$ weird servers volumes attach <volume id> <server>

MCP: weird_servers_volume_attach.

Detach a volume#

POST /vps/volumes/{id}/detach · operation detachVpsVolume

Detaches the volume from its instance; the data on it stays, and it can be attached again (POST /vps/volumes/{id}/attach). Unmount it inside the server first. 409 invalid-state when it is not attached, busy while another action runs. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 202 (VpsVolumeResult): the result

  • volume, object, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/volumes/{id}/detach' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers volumes detach):

$ weird servers volumes detach <volume id>

MCP: weird_servers_volume_attach.

Grow a volume#

POST /vps/volumes/{id}/resize · operation resizeVpsVolume

size_gb. The new size is billed from the next hour. A volume cannot be shrunk: the growth cannot be undone. Cost (credit charges in GET /credits/charges): the volume_gb_hour credit charge of recurring.vps-hourly times size_gb is billed every hour while what it creates exists.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedyes — see the charges below
Retry safetya repeat is refused or changes nothing: a repeat is refused: 409 busy while the first growth runs, then 400 invalid-params (field size_gb: a volume only grows)

Credit charges (each a contract of the list of credit charges; the credit charge in force is filled in from the API):

ContractRateWhenTimesCredit charge in force
recurring.vps-hourlyvolume_gb_hourevery hour while it existssize_gbsee the credit charges

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsVolumeResize):

  • size_gb, integer, required

Answer 202 (VpsVolumeResult): the result

  • volume, object, required
    • device, string or null — the device path inside the instance, once attached
    • failure_reason, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string, required
    • instance_id, string or null
    • name, string, required
    • unpaid_since, string or null
    • location, string
    • state, string, required (one of pending, available, attached, deleting, deleted, failed)
    • deleted_at, string or null
    • created_at, string
    • billing_hold, string or null
    • size_gb, integer, required
  • action, object
    • origin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one of customer, delegate, admin, billing, system)
    • error, string or null — why it failed or was cancelled, in a fixed wording: one of the service's own notes, or out of capacity, invalid request, quota reached, temporary infrastructure problem, unknown failure
    • id, string
    • type, string — create, delete, power-on, power-off, reboot; or an operation: create-volume, attach-volume, detach-volume, resize-volume, delete-volume, create-snapshot, delete-snapshot, set-rdns, shutdown, reset, rebuild, resize
    • started_at, string or null
    • instance_id, string
    • actor_id, string or null — who asked when it was not the customer (a delegate, a staff member)
    • next_attempt_at, string
    • attempts, integer
    • resource_type, string
    • state, string (one of queued, running, succeeded, failed, cancelled)
    • created_at, string
    • finished_at, string or null
    • resource_id, string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (a field is wrong: field names it)
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it) or profile-incomplete (complete the profile first: GET /auth/profile says what is missing); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
409busy, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or busy (another action on it is running: retry after it)
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/volumes/{id}/resize' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"size_gb":1}'

With the CLI (weird servers volumes resize):

$ weird servers volumes resize <volume id> <GB>

MCP: weird_servers_volume_resize.

Offer a volume to another account#

POST /vps/volumes/{id}/transfer · operation offerVpsVolumeTransfer

email: the recipient account's address (its login address or a verified linked one); and a current authenticator code IN THIS REQUEST (totp_code or backup_code: a stepped-up session alone is refused 403 step-up-required). One pending offer per resource; the resource must be idle and its hours paid. Not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Strong authenticationthe body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Request body (VpsTransferOffer):

  • email, string, required — the recipient's email address (its login address or a verified linked one)
  • totp_code, string (password) — a current authenticator code (the second factor) (a secret: shown once, never logged)
  • backup_code, string (password) — an unused backup code, instead of the authenticator code (a secret: shown once, never logged)

Answer 200 (VpsTransferResult): the offer stored already

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Answer 201 (VpsTransferResult): the result

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field email: malformed, or the caller's own)
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found (the resource, or no account holds the address)
409conflict, invalid-stateinvalid-state (not possible in its present state: read it, and retry once it allows it) or conflict
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X POST 'https://api.weird.ro/vps/volumes/{id}/transfer' \
  -H "Authorization: Bearer $WEIRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"<email>"}'

With the CLI (weird servers transfers offer):

$ weird servers transfers offer server|volume|snapshot <name|id> <email>

MCP: weird_server_transfer_offer.

Withdraw the pending transfer offer of a volume#

DELETE /vps/volumes/{id}/transfer · operation cancelVpsVolumeTransfer

Withdraws the pending offer of the volume id to another account (POST /vps/volumes/{id}/transfer made it): the volume stays the caller's. Offer it again to undo. No pending offer is 404. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionvps-transfers:write
Strong authenticationa session needs an authenticator enrolled and a recent proof of it (a step-up in the last 15 minutes, or totp_code / backup_code in the body); an API key is not asked — see authentication
Chargedno

Parameters

NameInTypeRequiredDescription
idpathstringyes

Answer 200 (VpsTransferResult): the result

  • transfer, object, required
    • id, string
    • resource_type, string (one of instance, volume, snapshot)
    • resource_id, string
    • from_user_id, string
    • to_user_id, string
    • state, string (one of pending, accepted, declined, cancelled)
    • created_at, string
    • resolved_at, string or null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); enrolment-required (a session caller whose account has no authenticator: enrol one first) or step-up-required (a session without a recent step-up: POST /auth/step-up, then retry); account-suspended (the account is restricted while a report about it is reviewed: reading, support tickets and the copy of its data keep working; contact is the address to write to, GET /auth/account/restrictions says more); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
404not-foundnot-found
422invalid-totpinvalid-totp (a wrong or replayed authenticator code)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503unavailableunavailable (try again later)

Example

curl -X DELETE 'https://api.weird.ro/vps/volumes/{id}/transfer' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird servers transfers cancel):

$ weird servers transfers cancel server|volume|snapshot <name|id>

MCP: weird_server_transfer_cancel.

This page is generated from the API's public document; it changes when the document does.