Menu
Servers
Tiers, servers billed by the hour, volumes, snapshots, one-command apps, SSH keys.
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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsActionView): the result
action, object, requiredorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (an unknown action, another customer's alike) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
instance_id | query | string | no | one instance's |
type | query | string | no | one type |
state | query | string | no | queued, running, succeeded, failed or cancelled |
before | query | string | no | ISO 8601 |
limit | query | integer | no | 1..200 (default 50) (default 50; 1 to 200) |
Answer 200 (VpsActivityList): the result
activity, array of objects, requiredorigin, string, required — who started it, as in VpsActionRecord (one ofcustomer,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 failureid, string, requiredtype, string, requiredstarted_at, string or nullinstance_id, string or nullactor_id, string or nullattempts, integerresource_type, string (one ofinstance,volume,snapshot)kind, string, required (one ofaction,operation)state, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringresource_name, string or nullfinished_at, string or nullresource_id, string
next_before, string or null — the before of the next page; null on the last
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (a field is wrong: field names it) |
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 activityMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (VpsAppList): the result
apps, array of objects, requiredid, string, requireddisplay_name, string, requireddescription, string or nullmin_memory_mb, integermin_disk_gb, integerarch, string (one ofx86,arm)image_versions, object — the image version a deployment boots, per eligible tier ideligible_tier_ids, array of strings, required — the tiers on sale the app can be deployed on
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 catalogMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
include_deleted | query | boolean | no |
Answer 200 (VpsAppDeploymentList): the result
deployments, array of objects, requiredhostname, string, requiredurl, string — https://<hostname>; link it once dns-state is okdns_error, string or null — a text for the customer while dns-state is not okinstance_state, string or null — the state of its instanceipv4, string or nullid, string, requiredinstance_id, stringpassword_available, boolean — the root password can still be revealed oncestate, string, required (one ofprovisioning,active,failed,deleted)zone, stringcreated_at, stringlast_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 failuredns_ok_at, string or nullapp_id, string, requireddns_state, string, required — the managed A record: pending until the hostname answers the server's address (one ofpending,ok,error)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 deploymentsMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | the 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
recurring.vps-hourly | tiers.{tier_id} | every hour while it exists | — | by tier (weird servers tiers) |
Request body (VpsAppDeployment):
ssh_key_ids, array of strings, requiredtier_id, string, requiredqueue_if_unavailable, booleanidempotency_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, stringsubdomain, string, requiredlocation, stringtotp_code, string (password) — a current authenticator code (the second factor) (a secret: shown once, never logged)zone, string, requiredbackup_code, string (password) — an unused backup code, instead of the authenticator code (a secret: shown once, never logged)app_id, string, requirednotify_on_outcome, boolean
Answer 200 (VpsAppDeploymentCreated): the deployment an earlier request with the same idempotency_key made
deployment, object, requiredhostname, string, requiredurl, string — https://<hostname>; link it once dns-state is okdns_error, string or null — a text for the customer while dns-state is not okinstance_state, string or null — the state of its instanceipv4, string or nullid, string, requiredinstance_id, stringpassword_available, boolean — the root password can still be revealed oncestate, string, required (one ofprovisioning,active,failed,deleted)zone, stringcreated_at, stringlast_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 failuredns_ok_at, string or nullapp_id, string, requireddns_state, string, required — the managed A record: pending until the hostname answers the server's address (one ofpending,ok,error)
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, 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 failurecredits_per_hour, stringimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, boolean — on a create that was queued: whether its outcome is toldowner_user_id, string — on a delegated instance: the customer it belongs toname, string, requiredrunning_at, string or nulldelegated, boolean — on an instance a grant lets the caller operate: trueunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)created_at, stringbilling_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaidgrant_id, string — on a delegated instance read by id: the grant that gives the accesstraffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are keptoutgoing_bytes, number or nullingoing_bytes, number or nullincluded_bytes, number or nullsampled_at, string
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_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, requiredhostname, string, requiredurl, string — https://<hostname>; link it once dns-state is okdns_error, string or null — a text for the customer while dns-state is not okinstance_state, string or null — the state of its instanceipv4, string or nullid, string, requiredinstance_id, stringpassword_available, boolean — the root password can still be revealed oncestate, string, required (one ofprovisioning,active,failed,deleted)zone, stringcreated_at, stringlast_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 failuredns_ok_at, string or nullapp_id, string, requireddns_state, string, required — the managed A record: pending until the hostname answers the server's address (one ofpending,ok,error)
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, 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 failurecredits_per_hour, stringimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, boolean — on a create that was queued: whether its outcome is toldowner_user_id, string — on a delegated instance: the customer it belongs toname, string, requiredrunning_at, string or nulldelegated, boolean — on an instance a grant lets the caller operate: trueunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)created_at, stringbilling_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaidgrant_id, string — on a delegated instance read by id: the grant that gives the accesstraffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are keptoutgoing_bytes, number or nullingoing_bytes, number or nullincluded_bytes, number or nullsampled_at, string
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_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):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (with field; idempotency_key missing or longer than 128 characters) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | access-denied, account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict, quota-exceeded | quota-exceeded (the account's limit is reached: remove one first), or conflict (field idempotency_key: the value was used for a different request) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 451 | hostname-blocked | hostname-blocked (the hostname or content was blocked after a review: reason abuse-review; contest it through a support ticket or contact) |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsAppDeploymentResult): the result
deployment, object, requiredhostname, string, requiredurl, string — https://<hostname>; link it once dns-state is okdns_error, string or null — a text for the customer while dns-state is not okinstance_state, string or null — the state of its instanceipv4, string or nullid, string, requiredinstance_id, stringpassword_available, boolean — the root password can still be revealed oncestate, string, required (one ofprovisioning,active,failed,deleted)zone, stringcreated_at, stringlast_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 failuredns_ok_at, string or nullapp_id, string, requireddns_state, string, required — the managed A record: pending until the hostname answers the server's address (one ofpending,ok,error)
instance, objectssh_key_ids, array of stringstier_id, stringrdns, 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 failurecredits_per_hour, stringimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, boolean — on a create that was queued: whether its outcome is toldowner_user_id, string — on a delegated instance: the customer it belongs toname, string, requiredrunning_at, string or nulldelegated, boolean — on an instance a grant lets the caller operate: trueunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)created_at, stringbilling_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaidgrant_id, string — on a delegated instance read by id: the grant that gives the accesstraffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are keptoutgoing_bytes, number or nullingoing_bytes, number or nullincluded_bytes, number or nullsampled_at, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-secrets:read |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsAppPassword): the result
root_password, string (password), required (a secret: shown once, never logged)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after 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 nowlocations, object, required — location -> a create there would find capacity now- each value: boolean
- each value: object
max_wait_hours, integer, required — how long a queued create waits for capacity
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 availabilityMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (VpsCharges): the result
charges_version, integertiers, array of objectsid, stringcredits_per_hour, string
volume_gb_hour, string or nullsnapshot_gb_hour, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
include_deleted | query | boolean | no | true lists the deleted instances too |
Answer 200 (VpsInstanceList): the result
instances, array of objects, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
delegated, array of objects — the instances other customers' grants let the caller operatessh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | the 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
recurring.vps-hourly | tiers.{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 idstier_id, string, requiredqueue_if_unavailable, boolean — without capacity: 202 with the instancequeuedinstead of 503 capacity-exhaustedimage, string — default: the tier's first imageidempotency_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 dashsubdomain, string — with zone; never blanklocation, string — default: the tier's first locationzone, 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, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Answer 202 (VpsInstanceResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (with field; idempotency_key missing or longer than 128 characters) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover the first hour) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (the tier, or a saved key) |
| 409 | conflict, quota-exceeded | quota-exceeded (the per-customer instance quota), or conflict (field idempotency_key: the value was used for a different request) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | capacity-exhausted, charge-not-set, unavailable | capacity-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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsInstanceView): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (an unknown instance, another customer's alike) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsInstanceResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | invalid-state | invalid-state (already deleting or deleted) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsActionList): the result
actions, array of objects, requiredorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-secrets:read |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsConsoleResult): the result
console, object, requiredurl, 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):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 501 | not-implemented | not-implemented (not offered for this resource) |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsConnectionList): the result
connections, array of objects, requiredhostname, stringrecords, array of objects — when listed: the zone records it needs (none until the server has an address)zone, stringname, stringtype, string (one ofA,AAAA)value, string
id, stringinstance_id, stringset_rdns, booleanstate, string (one ofpending,active,deleted)zone, stringdeleted_at, string or nullcreated_at, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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}.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (VpsConnectHostname):
zone, string, required — a DNS zone the instance's owner hosts heresubdomain, string, required — never blankset_rdns, boolean
Answer 201 (VpsConnectionResult): the result
connection, object, requiredhostname, stringrecords, array of objects — when listed: the zone records it needs (none until the server has an address)zone, stringname, stringtype, string (one ofA,AAAA)value, string
id, stringinstance_id, stringset_rdns, booleanstate, string (one ofpending,active,deleted)zone, stringdeleted_at, string or nullcreated_at, string
records, array of objectszone, stringname, stringtype, string (one ofA,AAAA)value, string
action, object or nulldns, object — the records of the released hostnames:removedfrom the owner's zone, orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field zone or subdomain) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, delegate-blocked, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (the instance, or a zone of the owner) |
| 409 | conflict | conflict (the hostname is connected already: disconnect it first) |
| 429 | rate-limited | rate-limited |
| 451 | hostname-blocked | hostname-blocked (the hostname or content was blocked after a review: reason abuse-review; contest it through a support ticket or contact) |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
connection_id | path | string | yes |
Answer 200 (VpsConnectionResult): the result
connection, object, requiredhostname, stringrecords, array of objects — when listed: the zone records it needs (none until the server has an address)zone, stringname, stringtype, string (one ofA,AAAA)value, string
id, stringinstance_id, stringset_rdns, booleanstate, string (one ofpending,active,deleted)zone, stringdeleted_at, string or nullcreated_at, string
records, array of objectszone, stringname, stringtype, string (one ofA,AAAA)value, string
action, object or nulldns, object — the records of the released hostnames:removedfrom the owner's zone, orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
type | query | string | no | a comma list of cpu, disk, network, traffic |
start | query | string | no | ISO 8601 |
end | query | string | no | ISO 8601 |
step | query | integer | no | seconds |
Answer 200 (VpsMetrics): the result
instance_id, stringsource, string (one oflive,stored)start, stringend, stringstep, integer — seconds between points, as answeredseries, array of objectsname, stringunit, stringpoints, array of arrays
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (a field is wrong: field names it) |
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited (also too many live reads: wait) |
| 501 | not-implemented | not-implemented (not offered for this resource) |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsInstanceResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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|resetMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsInstanceResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 402 | payment-required | payment-required (powered off for unpaid hours: top up first) |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-state (not possible in its present state: read it, and retry once it allows it) or busy (an action is in progress) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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|resetMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (VpsQueueNotify):
enabled, boolean, required
Answer 200 (VpsInstanceRecordResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, 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 failurecredits_per_hour, stringimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, boolean — on a create that was queued: whether its outcome is toldowner_user_id, string — on a delegated instance: the customer it belongs toname, string, requiredrunning_at, string or nulldelegated, boolean — on an instance a grant lets the caller operate: trueunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required — queued: the create waits for capacity (nothing charged, no server yet); deleting it cancels it (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — on a create that was queued: the instant its wait for capacity ends (it then fails)created_at, stringbilling_hold, string or null — grace, suspending, powered-off or refund-pending while hours are unpaidgrant_id, string — on a delegated instance read by id: the grant that gives the accesstraffic, object or null — the cumulative traffic counters of the current traffic period, as last sampled; null until sampled, and where none are keptoutgoing_bytes, number or nullingoing_bytes, number or nullincluded_bytes, number or nullsampled_at, string
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_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):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | invalid-state | invalid-state (the create is no longer queued) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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|offMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (VpsRdns):
ip, string, requiredhostname, string or null, required — null resets to the default name
Answer 200 (VpsActionResult): the result
action, object, requiredorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (a field is wrong: field names it) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, delegate-blocked, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsInstanceResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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|resetMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (VpsRebuild):
image, string, required — a system image of the instance's tier, orsnapshot:<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, requiredorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field image) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsInstanceResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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|resetMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
recurring.vps-hourly | tiers.{tier_id} | every hour while it exists | — | by tier (weird servers tiers) |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (VpsResize):
tier_id, string, required
Answer 202 (VpsActionResult): the result
action, object, requiredorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field tier_id) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-state (power it off first) or busy (another action on it is running: retry after it) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsInstanceResult): the result
instance, object, requiredssh_key_ids, array of stringstier_id, stringrdns, object or array of values or nullfailure_reason, string or nullrestriction, object — on a resource held after a review:suspended(its account is restricted) orblocked(its content or hostname may not be served); the one reason code isabuse-reviewstate, string, required (one ofsuspended,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/restrictionslists it; contest it with a support ticket naming it); null when it cannot be told which of your decisions it iscontact, string — the abuse contact address to write to about it
credits_per_hour, string — a decimal amount as textimage, stringipv4, string or nullipv6, string or nullid, string, requiredqueue_notify, booleanowner_user_id, stringname, string, requiredrunning_at, string or nulldelegated, boolean — operated under a delegation grantunpaid_since, string or nulllocation, stringadopted_at, string or nullstate, string, required (one ofqueued,pending,creating,running,off,deleting,deleted,failed)deleted_at, string or nullqueued_until, string or null — a create waiting for capacity (statequeued) waits until thencreated_at, stringbilling_hold, string or null —grace,powered-offorrefund-pendingwhile hours are unpaidgrant_id, stringtraffic, object or null
action, objectorigin, stringerror, string or nullid, string, requiredstarted_at, string or nullinstance_id, string, requiredattempts, integertype, string, required —create,delete,power-on,power-off,reboot,shutdown,reset, and other kindsstate, string, required (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or null
dns, object — on a delete: the records of the hostnames the instance was released from,removedfrom the owner's zone orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 429 | rate-limited | rate-limited |
| 501 | not-implemented | not-implemented (not offered for this resource) |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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|resetMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | the 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
recurring.vps-hourly | snapshot_gb_hour | every hour while it exists | the snapshot's size in GB | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (CreateVpsSnapshot):
name, string, requiredidempotency_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, requiredfailure_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 failureimage, string, required — what a create names as image to boot from it: snapshot:<id>id, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nullstate, string, required (one ofpending,available,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer or null
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Answer 202 (VpsSnapshotResult): the result
snapshot, object, requiredfailure_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 failureimage, string, required — what a create names as image to boot from it: snapshot:<id>id, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nullstate, string, required (one ofpending,available,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer or null
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (with field; idempotency_key missing or longer than 128 characters) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, conflict, invalid-state, quota-exceeded | invalid-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) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Strong authentication | the body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
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, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Answer 201 (VpsTransferResult): the result
transfer, object, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field email: malformed, or the caller's own) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (the resource, or no account holds the address) |
| 409 | conflict, invalid-state | invalid-state (not possible in its present state: read it, and retry once it allows it) or conflict |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsTransferResult): the result
transfer, object, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (VpsLimits): the result
per_customer_quota, integer, requiredused, integer, required — the caller's live instancesavailable, integer, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 limitsMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (VpsSnapshotList): the result
snapshots, array of objects, requiredfailure_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 failureimage, string, required — what a create names as image to boot from it: snapshot:<id>id, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nullstate, string, required (one ofpending,available,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 listMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsSnapshotResult): the result
snapshot, object, requiredfailure_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 failureimage, string, required — what a create names as image to boot from it: snapshot:<id>id, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nullstate, string, required (one ofpending,available,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer or null
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | invalid-state | invalid-state (not possible in its present state: read it, and retry once it allows it) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Strong authentication | the body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
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, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Answer 201 (VpsTransferResult): the result
transfer, object, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field email: malformed, or the caller's own) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (the resource, or no account holds the address) |
| 409 | conflict, invalid-state | invalid-state (not possible in its present state: read it, and retry once it allows it) or conflict |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsTransferResult): the result
transfer, object, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (SshKeyList): the result
ssh_keys, array of objects, requiredid, string, requiredname, string, requiredpublic_key, string, required — the OpenSSH public key linefingerprint, string, required — SHA256:<base64>created_at, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Request body (CreateSshKey):
name, string, requiredpublic_key, string, required — one OpenSSH public key line
Answer 201 (SshKeyResult): the result
ssh_key, object, requiredid, string, requiredname, string, requiredpublic_key, string, required — the OpenSSH public key linefingerprint, string, required — SHA256:<base64>created_at, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field name or public_key) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 409 | conflict, quota-exceeded | conflict (the key is saved already) or quota-exceeded (the account's limit is reached: remove one first) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Request body (VpsNameBody):
name, string, required
Answer 201 (VpsGeneratedSshKey): the result
ssh_key, object, requiredid, stringname, stringpublic_key, stringfingerprint, 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):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field name) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict, quota-exceeded | conflict or quota-exceeded (the account's limit is reached: remove one first) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (SshKeyResult): the result
ssh_key, object, requiredid, string, requiredname, string, requiredpublic_key, string, required — the OpenSSH public key linefingerprint, string, required — SHA256:<base64>created_at, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (an unknown key, another customer's alike) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (Deleted): the result
deleted, boolean, required (must betrue)id, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tier_id | query | string | no |
Answer 200 (VpsSystemImageList): the result
system_images, array of objects, requiredid, string, required — what a create names as imagedisplay_name, string, requiredtier_ids, array of strings, required — the tiers it boots on
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 imagesMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (VpsTierList): the result
tiers, array of objects, requiredcredits_per_hour, string, required — credits per hour, a decimal stringdisk_gb, integer or nullmemory_mb, integer or nullcpu, integer or nullid, string, requiredname, string, requiredlocations, array of strings, required — the abstract locations a create may nameimages, array of strings, required — the images a create may namedescription, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (VPS did not answer: try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Answer 200 (VpsTransferList): the result
incoming, array of objectsid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
outgoing, array of objectsid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 transfersMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Strong authentication | the body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
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, objectid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
resource_type, stringresource_id, stringdns, object — the records of the released hostnames:removedfrom the owner's zone, orkept(changed by hand since, or the zone is gone)
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict, invalid-state | invalid-state (not possible in its present state: read it, and retry once it allows it) or conflict (the resource changed since the offer) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsTransferResult): the result
transfer, object, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
include_deleted | query | boolean | no |
Answer 200 (VpsVolumeList): the result
volumes, array of objects, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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 listMCP: 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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | the 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
recurring.vps-hourly | volume_gb_hour | every hour while it exists | size_gb | see the credit charges |
Request body (CreateVpsVolume):
name, string, requiredsize_gb, integer, requiredinstance_id, stringtier_id, stringlocation, stringidempotency_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, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Answer 202 (VpsVolumeResult): the result
volume, object, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (with field; idempotency_key missing or longer than 128 characters) |
| 401 | unauthorized | unauthorized |
| 402 | insufficient-funds | insufficient-funds (the credits do not cover it: top up with POST /credits/topup, then retry) |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | conflict, invalid-state, quota-exceeded | quota-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) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:read |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
vps.reads | per_request | after a successful answer | — | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsVolumeResult): the result
volume, object, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsVolumeResult): the result
volume, object, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | invalid-state | invalid-state (not possible in its present state: read it, and retry once it allows it) or in use |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (VpsVolumeAttach):
instance_id, string, required
Answer 202 (VpsVolumeResult): the result
volume, object, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (a field is wrong: field names it) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 202 (VpsVolumeResult): the result
volume, object, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, insufficient-scope, profile-incomplete, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps:write |
| Strong authentication | a 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 |
| Charged | yes — see the charges below |
| Retry safety | a 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):
| Contract | Rate | When | Times | Credit charge in force |
|---|---|---|---|---|
recurring.vps-hourly | volume_gb_hour | every hour while it exists | size_gb | see the credit charges |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (VpsVolumeResize):
size_gb, integer, required
Answer 202 (VpsVolumeResult): the result
volume, object, requireddevice, string or null — the device path inside the instance, once attachedfailure_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 failureid, string, requiredinstance_id, string or nullname, string, requiredunpaid_since, string or nulllocation, stringstate, string, required (one ofpending,available,attached,deleting,deleted,failed)deleted_at, string or nullcreated_at, stringbilling_hold, string or nullsize_gb, integer, required
action, objectorigin, string — who started it: customer, delegate, admin (support staff), billing or system (the service itself) (one ofcustomer,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 failureid, stringtype, 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, resizestarted_at, string or nullinstance_id, stringactor_id, string or null — who asked when it was not the customer (a delegate, a staff member)next_attempt_at, stringattempts, integerresource_type, stringstate, string (one ofqueued,running,succeeded,failed,cancelled)created_at, stringfinished_at, string or nullresource_id, string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (a field is wrong: field names it) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, profile-incomplete, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 409 | busy, invalid-state | invalid-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) |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Strong authentication | the body itself must carry totp_code or backup_code, from a session and an API key alike — see authentication |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
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, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Answer 201 (VpsTransferResult): the result
transfer, object, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field email: malformed, or the caller's own) |
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found (the resource, or no account holds the address) |
| 409 | conflict, invalid-state | invalid-state (not possible in its present state: read it, and retry once it allows it) or conflict |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | vps-transfers:write |
| Strong authentication | a 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 |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Answer 200 (VpsTransferResult): the result
transfer, object, requiredid, stringresource_type, string (one ofinstance,volume,snapshot)resource_id, stringfrom_user_id, stringto_user_id, stringstate, string (one ofpending,accepted,declined,cancelled)created_at, stringresolved_at, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | account-suspended, enrolment-required, insufficient-scope, step-up-required, terms-acceptance-required | insufficient-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) |
| 404 | not-found | not-found |
| 422 | invalid-totp | invalid-totp (a wrong or replayed authenticator code) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | unavailable | unavailable (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>This page is generated from the API's public document; it changes when the document does.