{"openapi":"3.0.0","paths":{"/v1/me":{"get":{"description":"Returns the account behind the API token and the scopes it was granted. Requires no scope — any valid token can call it.","operationId":"v1GetMe","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Who am I","tags":["Account"]}},"/v1/me/token":{"delete":{"description":"Signs this credential out: every later request with it is refused with 401. What `mw logout` calls. Requires no scope — any valid token can revoke itself.","operationId":"v1RevokeMyToken","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Revoke the token making this request","tags":["Account"]}},"/v1/regions":{"get":{"description":"Lists the regions you can deploy into, with current placement and IP availability. Requires `vm:read`.","operationId":"v1ListRegions","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RegionDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List regions","tags":["Regions"]}},"/v1/catalog/offerings":{"get":{"description":"The plans you can order, with their hourly rate per term. Requires `vm:read`.","operationId":"v1ListOfferings","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OfferingDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List compute offerings","tags":["Catalog"]}},"/v1/catalog/images":{"get":{"description":"Images you can deploy or reinstall with, including the minimum specs each requires. Requires `vm:read`.","operationId":"v1ListImages","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ImageDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List OS images and marketplace apps","tags":["Catalog"]}},"/v1/catalog/addons":{"get":{"description":"Optional extras (backup slots, licences, …) orderable alongside an instance. Requires `vm:read`.","operationId":"v1ListAddons","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AddonDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List addons","tags":["Catalog"]}},"/v1/instances":{"get":{"description":"Lists the instances in your account, newest first. Requires `vm:read`.","operationId":"v1ListInstances","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InstanceDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List instances","tags":["Instances"]}},"/v1/instances/{id}":{"get":{"description":"Requires `vm:read`. Returns 404 for an instance in another account.","operationId":"v1GetInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get an instance","tags":["Instances"]},"patch":{"description":"Updates only the display name and description. Changing the plan is a resize, not an update. Requires `vm:write`.","operationId":"v1UpdateInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInstanceV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Rename or annotate an instance","tags":["Instances"]},"delete":{"description":"**Irreversible.** The instance is destroyed, its disks are gone, its IPs are released and billing for it stops. There is no undelete and no recovery from a snapshot afterwards.\n\nThree deliberate guardrails, because an accidental call here cannot be undone:\n1. `vm:delete` — a scope granted to nothing by default and shown apart in the console.\n2. An `Idempotency-Key` header, so a retried request cannot destroy a second instance.\n3. `?confirm=<instance id>` must echo the id in the path — the machine-readable form of typing the name to confirm.\n\nRefused with 409 while another operation holds the instance (a reinstall, a backup, a resize, a clone) — the hypervisor cannot destroy a guest mid-operation. Retry once it finishes.","operationId":"v1DeleteInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"confirm","required":true,"in":"query","description":"Must equal the instance id in the path. Guards against a mis-templated URL.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Unique client-generated string, so a retry cannot destroy anything twice.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceDeletedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Destroy an instance permanently","tags":["Instances"]}},"/v1/instances/{id}/status":{"get":{"description":"Live power state and resource usage from the hypervisor. Answers from a short-lived cache by default; pass `fresh=true` after a power action to bypass it. Requires `vm:read`.","operationId":"v1GetInstanceStatus","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"fresh","required":false,"in":"query","schema":{"type":"string","enum":["true","false"]},"description":"Set to `true` to bypass the status cache."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceStatusDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get live instance status","tags":["Instances"]}},"/v1/instances/{id}/power":{"post":{"description":"Asynchronous: returns 202 immediately. Poll `GET /v1/instances/{id}/status?fresh=true` for the resulting power state.\n\nRefused with 409 while the instance is locked by another operation (a backup, a resize, a deploy) — retry once that finishes.\n\nRequires `vm:power`, which is deliberately separate from `vm:write` so a token can restart an instance without being able to resize or reinstall it.","operationId":"v1PowerInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstancePowerV1Dto"}}}},"responses":{"202":{"description":"Action accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Start, stop or reboot an instance","tags":["Instances"]}},"/v1/instances/{id}/rescue":{"get":{"description":"Whether the instance can enter rescue mode and with which rescue systems, whether its firewall lets SSH reach one, and its open rescue session (state, connection details, host-key fingerprints, automatic exit). `session` is null when it is not in rescue mode.","operationId":"v1GetInstanceRescue","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescueOptionsDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Rescue mode options and state","tags":["Instances"]},"post":{"description":"Asynchronous: returns 202 with the rescue system’s root password — **shown only in this response**, never stored, never returned again (ask for a new one with `POST /v1/instances/{id}/rescue/password`). The instance is shut down (forced after a timeout), its boot settings are recorded and it starts from the rescue media with its disks attached and untouched. Poll `GET /v1/instances/{id}/rescue` until `session.state` is `active` and `session.ready` is true.\n\nNot idempotency-keyed: the response carries a one-time secret the platform does not keep. A repeated call answers 409 `RESCUE_ALREADY_ACTIVE`.\n\nRefused with 409 (`rescue_code`): `RESCUE_UNAVAILABLE` (see `reason`), `RESCUE_ALREADY_ACTIVE`, `VM_OPERATION_IN_PROGRESS`.","operationId":"v1EnterInstanceRescue","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterRescueV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterRescueResponseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Boot an instance into rescue mode","tags":["Instances"]},"delete":{"description":"Asynchronous: returns 202. The rescue system is shut down, the boot settings the instance had before are restored exactly, and it starts from its own disk — unless `start=false`. Refused with 409 `RESCUE_NOT_ACTIVE` or `VM_OPERATION_IN_PROGRESS`.","operationId":"v1ExitInstanceRescue","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"start","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescueTransitionResponseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Take an instance out of rescue mode","tags":["Instances"]}},"/v1/instances/{id}/rescue/password":{"post":{"description":"Generates a new root password, applies it to the running rescue system and returns it — shown only here, not idempotency-keyed for the same reason as entering. Refused with 409 `RESCUE_NOT_READY` while the rescue system is not answering.","operationId":"v1NewInstanceRescuePassword","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescuePasswordResponseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"New root password for the rescue system","tags":["Instances"]}},"/v1/instances/{id}/reinstall":{"post":{"description":"Rebuilds the instance from a catalog image (`image`) or one of your custom images (`custom_image_id`). **Everything on its disk is replaced**; the addresses and the plan stay.\n\nRefused with 400 when the plan is smaller than the image needs (resize first) and with 409 while another operation holds the instance. SSH keys and user data apply to Linux catalog images. Requires `vm:write` and an `Idempotency-Key`.\n\nAsynchronous: poll `GET /v1/operations/{operation_id}`.","operationId":"v1ReinstallInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReinstallInstanceV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Reinstall an instance","tags":["Instances"]}},"/v1/instances/{id}/reset-password":{"post":{"description":"Through the guest agent, with the instance running. `username` defaults to `root` (Linux) or `Administrator` (Windows); a password left out is generated and returned once. Requires `vm:write` and an `Idempotency-Key`.","operationId":"v1ResetInstancePassword","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Reset an account's password inside the instance","tags":["Instances"]}},"/v1/instances/{id}/metrics":{"get":{"description":"One point per step of the timeframe. Requires `vm:read`.","operationId":"v1GetInstanceMetrics","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"timeframe","required":false,"in":"query","schema":{"default":"hour","type":"string","enum":["hour","day","week","month","year"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceMetricsV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"CPU, memory, disk and network over time","tags":["Instances"]}},"/v1/instances/{id}/bandwidth":{"get":{"description":"Inbound and outbound bytes per bucket for the period, plus the public outbound transfer of the current billing window against what the plan includes. Requires `vm:read`.","operationId":"v1GetInstanceBandwidth","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"period","required":false,"in":"query","schema":{"default":"current_cycle","type":"string","enum":["current_cycle","day","week","month","year"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceBandwidthV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Data transferred, and the public outbound of the billing window","tags":["Instances"]}},"/v1/instances/{id}/snapshots":{"get":{"description":"With how many the plan allows and how many remain. Requires `vm:read`.","operationId":"v1ListInstanceSnapshots","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotListV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An instance's snapshots","tags":["Snapshots"]},"post":{"description":"Refused with 403 when the plan has no snapshot slots left and with 409 while another operation holds the instance; a suspended instance cannot be snapshotted. Kept 30 days. Requires `vm:write` and an `Idempotency-Key`.","operationId":"v1CreateInstanceSnapshot","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSnapshotV1Dto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Take a snapshot","tags":["Snapshots"]}},"/v1/instances/{id}/snapshots/{snapshotId}/restore":{"post":{"description":"The disk (and the memory, for a snapshot with it) goes back to that moment. **Snapshots newer than this one are deleted.** Requires `vm:write` and an `Idempotency-Key`; poll `GET /v1/instances/{id}/status?fresh=true`.","operationId":"v1RestoreInstanceSnapshot","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"snapshotId","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Restore an instance to a snapshot","tags":["Snapshots"]}},"/v1/instances/{id}/snapshots/{snapshotId}":{"delete":{"description":"Requires `vm:write`.","operationId":"v1DeleteInstanceSnapshot","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"snapshotId","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a snapshot","tags":["Snapshots"]}},"/v1/reverse-dns":{"get":{"description":"Every IPv4 and IPv6 address on your instances, with its PTR. Requires `network:read`.","operationId":"v1ListReverseDns","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReverseDnsListV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Your addresses' reverse DNS","tags":["Reverse DNS"]}},"/v1/reverse-dns/{ip}":{"put":{"description":"The hostname must resolve to the address. Requires `network:write`.","operationId":"v1SetReverseDns","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"ip","required":true,"in":"path","schema":{"example":"203.0.113.10","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetReverseDnsV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReverseDnsV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Set an address's PTR","tags":["Reverse DNS"]}},"/v1/reverse-dns/{ip}/reset":{"post":{"description":"Requires `network:write`.","operationId":"v1ResetReverseDns","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"ip","required":true,"in":"path","schema":{"example":"203.0.113.10","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReverseDnsV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Put an address's PTR back to the default","tags":["Reverse DNS"]}},"/v1/instances/{id}/backups":{"get":{"description":"With whether it can be backed up now and the slots its add-on keeps. Requires `vm:read`.","operationId":"v1ListInstanceBackups","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupListV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An instance's backups","tags":["Backups"]},"post":{"description":"Needs the backup add-on and a free slot (400 with the reason otherwise); refused while another operation holds the instance. Asynchronous: poll `GET /v1/instances/{id}/backups` (`running`, then a new entry). Requires `vm:write` and an `Idempotency-Key`.","operationId":"v1RunInstanceBackup","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Back an instance up now","tags":["Backups"]}},"/v1/instances/{id}/backup-schedule":{"get":{"description":"404 when it has none. Requires `vm:read`.","operationId":"v1GetInstanceBackupSchedule","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupScheduleV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An instance's backup schedule","tags":["Backups"]},"put":{"description":"Creates the schedule or replaces the one it has. Needs the backup add-on. Requires `vm:write`.","operationId":"v1SetInstanceBackupSchedule","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetBackupScheduleV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupScheduleV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Set when an instance is backed up","tags":["Backups"]},"delete":{"description":"Its existing backups stay. Requires `vm:write`.","operationId":"v1DeleteInstanceBackupSchedule","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Stop backing an instance up on a schedule","tags":["Backups"]}},"/v1/backups/{id}":{"get":{"description":"Which instance it is of and when it was taken. Requires `vm:read`.","operationId":"v1GetBackup","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Backup id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A backup","tags":["Backups"]},"delete":{"description":"Requires `vm:write`.","operationId":"v1DeleteBackup","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Backup id","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a backup","tags":["Backups"]}},"/v1/backups/{id}/restore":{"post":{"description":"**The instance is overwritten with the backup.** Refused while the instance is suspended or another operation holds it. Asynchronous: poll `GET /v1/instances/{instance_id}/status?fresh=true`. Requires `vm:write` and an `Idempotency-Key`.","operationId":"v1RestoreBackup","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Backup id","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Restore an instance from a backup","tags":["Backups"]}},"/v1/instances/{id}/resize-options":{"get":{"description":"Its current plan and extras, the plans it can move to, the add-ons, addresses and disks it can change, with hourly rates. Requires `vm:read`.","operationId":"v1GetInstanceResizeOptions","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeOptionsV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"What an instance can be resized to","tags":["Resize"]}},"/v1/instances/{id}/resize/quote":{"post":{"description":"What the change costs now and per hour after, what it removes, and why it would be refused. Changes nothing. Requires `vm:read`.","operationId":"v1QuoteInstanceResize","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeInstanceV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeQuoteV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Price a resize","tags":["Resize"]}},"/v1/instances/{id}/resize":{"post":{"description":"Changes the plan, disks, addresses or add-ons. The new rate applies from now: an upgrade on a commitment is charged from the balance for the rest of the cycle, a downgrade gives the difference back as credit. A CPU, memory or disk change powers the instance off and on again; the guest’s partition must be grown by hand afterwards.\n\n- **202** — billing changed; the hypervisor work is an operation (`operation_id`).\n- **402** `insufficient_balance` — nothing changed; the body carries `shortfall_cents`.\n\nPrice it first with `POST /v1/instances/{id}/resize/quote`. Requires `vm:write` and an `Idempotency-Key`.","operationId":"v1ResizeInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeInstanceV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeAcceptedV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"402":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Resize an instance","tags":["Resize"]}},"/v1/instances/{id}/removal-preview":{"get":{"description":"Credit returned on a commitment (or that billing simply stops), the balance afterwards, and anything that would make the deletion be refused. Changes nothing. Requires `vm:read`.","operationId":"v1GetInstanceRemovalPreview","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovalPreviewV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"What deleting an instance does to the bill","tags":["Resize"]}},"/v1/images":{"get":{"description":"Requires `image:read`.","operationId":"v1ListCustomImages","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"kind","required":false,"in":"query","schema":{"type":"string","enum":["disk_image","iso"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageListV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Your images","tags":["Custom images"]},"post":{"description":"Reserves the space and answers one presigned URL per part. PUT each part (`part_size_bytes`, the last one shorter) to its URL, in any order and in parallel, then call `POST /v1/images/{id}/upload/complete`. An interrupted upload resumes with `GET /v1/images/{id}/upload`.\n\nThe extension says the format (`GET /v1/images/quota` → `accepted_extensions`). Requires `image:write`.","operationId":"v1StartCustomImageUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartCustomImageUploadV1Dto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageUploadV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Start uploading an image","tags":["Custom images"]}},"/v1/images/quota":{"get":{"description":"Requires `image:read`.","operationId":"v1GetCustomImageQuota","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageQuotaV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"How much you may upload","tags":["Custom images"]}},"/v1/images/{id}":{"get":{"description":"Requires `image:read`.","operationId":"v1GetCustomImage","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An image","tags":["Custom images"]},"patch":{"description":"Requires `image:write`.","operationId":"v1UpdateCustomImage","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomImageV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Rename an image, or say what it needs to boot","tags":["Custom images"]},"delete":{"description":"Instances already built from it keep running. Refused while an operation is using it. Requires `image:write`.","operationId":"v1DeleteCustomImage","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete an image","tags":["Custom images"]}},"/v1/images/{id}/upload":{"get":{"description":"The parts that have not arrived, with fresh URLs. Safe at any point. Requires `image:write`.","operationId":"v1ResumeCustomImageUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageUploadV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Resume an upload","tags":["Custom images"]}},"/v1/images/{id}/upload/complete":{"post":{"description":"Seals it and starts checking and preparing the image. Requires `image:write` and an `Idempotency-Key`.","operationId":"v1CompleteCustomImageUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomImageImportV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Finish an upload","tags":["Custom images"]}},"/v1/images/{id}/upload/abort":{"post":{"description":"What was uploaded is discarded. Requires `image:write`.","operationId":"v1AbortCustomImageUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Cancel an upload","tags":["Custom images"]}},"/v1/activity":{"get":{"description":"Newest first, filterable by action, category, actor, outcome, target and time. Kept for the retention period the console states. Requires `account:read`.","operationId":"v1ListActivity","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}},{"name":"action","required":false,"in":"query","description":"An action key, e.g. `instance.delete`.","schema":{"type":"string"}},{"name":"category","required":false,"in":"query","schema":{"type":"string","enum":["instance","network","dns","storage","billing","security","account","serverless"]}},{"name":"actor_kind","required":false,"in":"query","schema":{"type":"string","enum":["CONSOLE","API_TOKEN","MCP","SUPPORT","SYSTEM","SUPPORT_BOT"]}},{"name":"outcome","required":false,"in":"query","schema":{"type":"string","enum":["success","failure","denied"]}},{"name":"target_type","required":false,"in":"query","schema":{"example":"instance","type":"string"}},{"name":"target_id","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"Free text over who, what and where.","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ActivityEntryV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The account's activity log","tags":["Account"]}},"/v1/instances/{id}/clone/quote":{"post":{"description":"Whether this instance can be copied onto the destination, how the destination’s disks change, what it costs, and why it would be refused. Changes nothing. Requires `vm:read`.","operationId":"v1QuoteInstanceClone","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"The instance to copy (the origin)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneInstanceV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneCheckV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Check and price a clone before making it","tags":["Instances"]}},"/v1/instances/{id}/clone":{"post":{"description":"**The destination’s disks are replaced** by this instance’s (now, or from one of its backups); its addresses and plan stay, and its price follows its new disks. `confirm` must repeat `destination_instance_id`.\n\nCheck it first with `POST /v1/instances/{id}/clone/quote`. Asynchronous: poll `GET /v1/operations/{operation_id}`. Requires `vm:write` and an `Idempotency-Key`.","operationId":"v1CloneInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"The instance to copy (the origin)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneInstanceV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Clone an instance onto another","tags":["Instances"]}},"/v1/instances/{id}/iso":{"get":{"description":"Requires `vm:read`.","operationId":"v1GetInstanceIso","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoAttachmentV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The ISO in an instance’s drive","tags":["Custom images"]},"post":{"description":"It becomes the first boot device; the instance keeps its power state — reboot it to boot from the ISO. Refused while the instance is suspended or busy. Requires `vm:write`.","operationId":"v1AttachInstanceIso","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachIsoV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoAttachmentV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Put an ISO in an instance’s drive","tags":["Custom images"]},"delete":{"description":"The instance boots from its disk again. Requires `vm:write`.","operationId":"v1DetachInstanceIso","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Eject the ISO","tags":["Custom images"]}},"/v1/orders/quote":{"post":{"description":"Runs the same pricing engine an order runs, and creates nothing. Use it to show a price, or to check `purchasable` before committing.\n\nRequires `billing:read`. No idempotency key — it has no side effects.","operationId":"v1QuoteOrder","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulatePriceV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Price a configuration before ordering it","tags":["Orders"]}},"/v1/orders":{"post":{"description":"Places an order and returns one of three outcomes:\n\n- **201** `provisioned` — funded from the subscription balance; the instance is being built. Poll `GET /v1/instances/{id}`.\n- **202** `pending_payment` — an invoice was raised. Provisioning starts automatically once it is paid; poll `GET /v1/orders/{id}`.\n- **402** `insufficient_balance` — nothing was created. The problem body carries `shortfall_cents`.\n\nA new ON_DEMAND subscription invoices initial prepaid credit, defaulting to the applicable minimum recharge. Payment starts provisioning and credits the full amount to the subscription; hourly usage consumes that balance with no fixed billing cycle.\n\nRequires `order:write` **and** an `Idempotency-Key` header: this spends money and provisions hardware, so a retried request must be recognisable as the same request.","operationId":"v1CreateOrder","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Unique client-generated string (a UUID is ideal). Retrying with the same key returns the first response instead of ordering again.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderV1Dto"}}}},"responses":{"201":{"description":"Funded from balance; provisioning has started.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDto"}}}},"202":{"description":"Invoice raised; awaiting payment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"402":{"description":"Balance is insufficient and `payment` forbade invoicing. Nothing was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Order a new instance","tags":["Orders"]}},"/v1/orders/{id}":{"get":{"description":"Safe to poll: reading never advances the order. Requires `billing:read`.","operationId":"v1GetOrder","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Order id (UUID)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Where an order stands","tags":["Orders"]}},"/v1/operations":{"get":{"description":"Async work in your account, newest first. Filter by `resource_type`, `resource_id` or `status`.\n\nPass `status=active` for the ones still running — that is what you poll after starting something. Requires `vm:read`.","operationId":"v1ListOperations","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"resource_type","required":false,"in":"query","description":"Only operations acting on this kind of resource.","schema":{"type":"string","enum":["instance","firewall","vpc","snapshot","backup","order","vpn_gateway"]}},{"name":"resource_id","required":false,"in":"query","description":"Only operations acting on this resource id.","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","description":"`active` is shorthand for pending + in_progress — what you poll while waiting.","schema":{"type":"string","enum":["active","pending","in_progress","completed","failed","cancelled"]}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OperationDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List operations","tags":["Operations"]}},"/v1/operations/{id}":{"get":{"description":"Safe to poll. Stop when `status` is `completed`, `failed` or `cancelled`. Requires `vm:read`.","operationId":"v1GetOperation","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Operation id (UUID)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get an operation","tags":["Operations"]}},"/v1/subscriptions":{"get":{"description":"Your subscriptions with their term, status and current balance. Requires `billing:read`.","operationId":"v1ListSubscriptions","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List subscriptions","tags":["Billing"]}},"/v1/subscriptions/{id}":{"get":{"description":"Requires `billing:read`.","operationId":"v1GetSubscription","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Subscription id (UUID)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a subscription","tags":["Billing"]}},"/v1/subscriptions/{id}/balance":{"get":{"description":"The four balance buckets and the usable total. `usable_cents` is what a balance-funded order draws from, computed the same way the order endpoint computes it (see the field description — the formula differs by commitment type). Requires `billing:read`.","operationId":"v1GetSubscriptionBalance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Subscription id (UUID)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionBalanceDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a subscription balance","tags":["Billing"]}},"/v1/subscriptions/{id}/ledger":{"get":{"description":"Every credit and debit against the subscription, newest first — the authoritative record of what was charged and why. Requires `billing:read`.","operationId":"v1ListSubscriptionLedger","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Subscription id (UUID)","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LedgerEntryDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List ledger entries","tags":["Billing"]}},"/v1/subscriptions/{id}/top-ups":{"post":{"description":"Raises an invoice for the requested amount. **Credit lands when the invoice is paid, not when this returns** — so an order placed immediately afterwards will still see the old balance.\n\nThis is the other half of the `payment: \"balance\"` loop: a 402 from `POST /v1/orders` tells you the shortfall, and this is how you cover it.\n\nRequires `billing:write` (which `billing:read` does NOT imply) and an `Idempotency-Key`.","operationId":"v1CreateTopUp","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Subscription id (UUID)","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","description":"Unique client-generated string. Retrying with the SAME key returns the original invoice and never raises a second one; a DIFFERENT key is a new intent and raises a new invoice, even for the same amount moments later.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTopUpV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopUpDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Add credit to a subscription","tags":["Billing"]}},"/v1/invoices":{"get":{"description":"Invoices across your account, newest first. Requires `billing:read`.","operationId":"v1ListInvoices","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List invoices","tags":["Billing"]}},"/v1/dns/zones":{"get":{"description":"The DNS zones in your account. Requires `dns:read`.","operationId":"v1ListDnsZones","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DnsZoneDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List DNS zones","tags":["DNS"]},"post":{"description":"Creates the zone on our nameservers and records it against your account.\n\nIdempotent by nature: asking for a zone you already host returns the existing one rather than failing. Requires `dns:write`.","operationId":"v1CreateDnsZone","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDnsZoneV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZoneDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Host a new DNS zone","tags":["DNS"]}},"/v1/dns/zones/{id}":{"get":{"description":"Requires `dns:read`.","operationId":"v1GetDnsZone","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Zone id (UUID)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZoneDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a DNS zone","tags":["DNS"]},"delete":{"description":"Removes the zone and every record in it from our nameservers. Anything pointing at it stops resolving. Requires `dns:write`.","operationId":"v1DeleteDnsZone","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Zone id (UUID)","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Stop hosting a DNS zone","tags":["DNS"]}},"/v1/dns/zones/{id}/records":{"get":{"description":"Record sets read live from the authoritative nameservers. Requires `dns:read`.","operationId":"v1ListDnsRecords","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Zone id (UUID)","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List records in a zone","tags":["DNS"]},"post":{"description":"Upsert semantics: the record set at (`name`, `type`) is REPLACED by what you send. Sending an A record for `www` replaces every existing A value for `www`, it does not add to them.\n\nRequires `dns:write`.","operationId":"v1UpsertDnsRecord","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Zone id (UUID)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertDnsRecordV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create or replace a DNS record","tags":["DNS"]},"put":{"description":"The record set at (`name`, `type`) holds exactly `records` afterwards, changed in one step: a round-robin A, several MX, every TXT of a name. `POST` replaces it with a single value; this takes them all.\n\nRequires `dns:write`.","operationId":"v1SetDnsRecordSet","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Zone id (UUID)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDnsRecordSetV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Set a whole record set","tags":["DNS"]},"delete":{"description":"Removes the entire record set at (`name`, `type`). Requires `dns:write`.","operationId":"v1DeleteDnsRecord","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Zone id (UUID)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDnsRecordV1Dto"}}}},"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a DNS record set","tags":["DNS"]}},"/v1/dns/zones/{id}/health":{"get":{"description":"Looks up the domain's NS records now. `delegated` is true when every one of our nameservers is among them; until then the zone exists here but the world does not ask us. Requires `dns:read`.","operationId":"v1GetDnsZoneHealth","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Zone id (UUID)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"dns_zone_health"},"zone_id":{"type":"string"},"delegated":{"type":"boolean"},"nameservers":{"type":"array","items":{"type":"string"},"description":"The NS records the domain has now."},"expected_nameservers":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Whether the domain's registrar points at our nameservers","tags":["DNS"]}},"/v1/firewalls/macros":{"get":{"description":"Named service presets usable as `macro` on a rule, so you do not have to remember port numbers. Requires `network:read`.","operationId":"v1ListFirewallMacros","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FirewallMacroDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List firewall macros","tags":["Firewalls"]}},"/v1/firewalls":{"get":{"description":"Your firewalls with their rules and attached instances. Requires `network:read`.","operationId":"v1ListFirewalls","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FirewallDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List firewalls","tags":["Firewalls"]},"post":{"description":"Creates an empty firewall attached to nothing. Add rules, then commit it onto instances. Requires `network:write`.","operationId":"v1CreateFirewall","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFirewallV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a firewall","tags":["Firewalls"]}},"/v1/firewalls/{id}":{"get":{"description":"Requires `network:read`.","operationId":"v1GetFirewall","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Firewall id (UUID)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a firewall","tags":["Firewalls"]},"patch":{"description":"Changes the name, description, enabled flag or default policies.\n\n**Changing a default policy to DROP can cut off access** to every instance this firewall protects once committed — the default applies to traffic no rule matched, including your own SSH. Requires `network:write`.","operationId":"v1UpdateFirewall","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Firewall id (UUID)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFirewallV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Update a firewall","tags":["Firewalls"]},"delete":{"description":"Detaches the firewall from every instance and removes it. Those instances are then unfiltered. Requires `network:write`.","operationId":"v1DeleteFirewall","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Firewall id (UUID)","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a firewall","tags":["Firewalls"]}},"/v1/firewalls/{id}/rules":{"post":{"description":"Staged only — call commit to apply it. Addresses and port lists are sanitised and validated server-side. Requires `network:write`.","operationId":"v1CreateFirewallRule","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Firewall id (UUID)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFirewallRuleV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Add a rule","tags":["Firewalls"]}},"/v1/firewalls/{id}/rules/{ruleId}":{"patch":{"description":"Staged only — call commit to apply it. Requires `network:write`.","operationId":"v1UpdateFirewallRule","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Firewall id (UUID)","schema":{"type":"string"}},{"name":"ruleId","required":true,"in":"path","description":"Rule id (UUID)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFirewallRuleV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Update a rule","tags":["Firewalls"]},"delete":{"description":"Staged only — call commit to apply it. Requires `network:write`.","operationId":"v1DeleteFirewallRule","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Firewall id (UUID)","schema":{"type":"string"}},{"name":"ruleId","required":true,"in":"path","description":"Rule id (UUID)","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a rule","tags":["Firewalls"]}},"/v1/firewalls/{id}/commit":{"post":{"description":"Pushes the current ruleset to the hypervisor for the instances you list. Asynchronous — returns an `operation_id` to poll.\n\n`instance_ids` is the FULL set of instances this firewall should protect: any instance not listed is detached from it.\n\nRequires an `Idempotency-Key`: a commit reconfigures live traffic filtering, and a retried request must not run twice.","operationId":"v1CommitFirewall","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Firewall id (UUID)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitFirewallV1Dto"}}}},"responses":{"202":{"description":"Commit accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallCommitDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Apply staged rules to instances","tags":["Firewalls"]}},"/v1/vpcs":{"get":{"description":"The private networks in your account. Requires `network:read`.","operationId":"v1ListVpcs","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VpcDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List VPCs","tags":["VPCs"]},"post":{"description":"A private network for your instances in one region. Instances only: serverless apps do not join VPCs. Requires `network:write`.","operationId":"v1CreateVpc","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVpcV1Dto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpcDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a VPC","tags":["VPCs"]}},"/v1/vpcs/{id}":{"get":{"description":"Requires `network:read`.","operationId":"v1GetVpc","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"VPC id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpcDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a VPC","tags":["VPCs"]},"patch":{"description":"Requires `network:write`.","operationId":"v1UpdateVpc","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"VPC id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVpcV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpcDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Rename or describe a VPC","tags":["VPCs"]},"delete":{"description":"Its instances leave it (their private NICs are removed in the background). The account's default VPC cannot be deleted. Requires `network:write` and an `Idempotency-Key`.","operationId":"v1DeleteVpc","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"VPC id","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a VPC","tags":["VPCs"]}},"/v1/vpcs/{id}/instances":{"post":{"description":"Same region only; an instance is in one VPC at a time (409 otherwise). `private_ip` picks its address. Its private NIC is plugged in by a background job: poll `GET /v1/operations/{operation_id}`, then `GET /v1/vpcs/{id}` shows its `members[].private_ip`. Requires `network:write` and an `Idempotency-Key`.","operationId":"v1AttachVpcInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"VPC id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachVpcInstanceV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Put an instance in a VPC","tags":["VPCs"]}},"/v1/vpcs/{id}/instances/{instanceId}":{"delete":{"description":"Its private NIC is removed and its public one kept. `?restart=true` restarts it afterwards. Requires `network:write` and an `Idempotency-Key`.","operationId":"v1DetachVpcInstance","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"VPC id","schema":{"type":"string"}},{"name":"instanceId","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"restart","required":false,"in":"query","schema":{"default":"false","type":"string","enum":["true","false"]}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationAcceptedDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Take an instance out of a VPC","tags":["VPCs"]}},"/v1/serverless/services/{id}/alerts":{"get":{"description":"Requires `serverless:read`. On by default: requests failing, slow responses, memory near its limit, the maximum instances reached.","operationId":"v1ListServerlessAlerts","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertRuleDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A service's alerts","tags":["Serverless"]}},"/v1/serverless/services/{id}/alerts/{kind}":{"patch":{"description":"Requires `serverless:write`. `kind` is ERROR_RATE, LATENCY_P95, MEMORY or MAX_INSTANCES.","operationId":"v1UpdateServerlessAlert","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"kind","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAlertRuleV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Switch an alert on or off, or move its threshold","tags":["Serverless"]}},"/v1/serverless/services/{id}/metrics":{"get":{"description":"Requires `serverless:read`. `range` is 1h (default), 6h, 24h or 7d; a value per step. Requests and response times only for web and private services. `available` is false when the metrics could not be read just now.","operationId":"v1GetServerlessServiceMetrics","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"range","required":false,"in":"query","schema":{"enum":["1h","6h","24h","7d"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceMetricsDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Requests, response times, instances, CPU and memory over a window","tags":["Serverless"]}},"/v1/serverless/services/{id}/recommendation":{"get":{"description":"Requires `serverless:read`. Null when the size it has fits.","operationId":"v1GetServerlessSizeRecommendation","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceRecommendationDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The size the past week says the service should have","tags":["Serverless"]}},"/v1/serverless/services/{id}/access-logs":{"get":{"description":"Requires `serverless:read`. Method, host, path (never the query string), status, bytes, time taken and the visitor, oldest first; the same window and limits as the logs, `status` one of 2xx–5xx, `search` in the path.","operationId":"v1GetServerlessAccessLogs","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"since","required":false,"in":"query","schema":{"type":"string"}},{"name":"until","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["2xx","3xx","4xx","5xx"],"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessLogsDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The requests a web or private service answered","tags":["Serverless"]}},"/v1/serverless/egress":{"get":{"description":"Requires `serverless:read`. Response bytes to public addresses, by service, against the period’s allowance.","operationId":"v1GetServerlessEgress","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessEgressDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"What services sent to visitors this period, of what it includes","tags":["Serverless"]}},"/v1/serverless/domain-charges":{"get":{"description":"Requires `serverless:read`. The custom domains counting now, the domain-months used this period by the second, and past what it includes, each at the published price.","operationId":"v1GetServerlessDomainCharges","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessDomainChargesDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Custom domains this period, of what it includes","tags":["Serverless"]}},"/v1/serverless/outbound-addresses":{"get":{"description":"Requires `serverless:read`. For allowlists at a bank, an ERP or a database elsewhere: the `addresses` in use now — the location's egress address, and the workers' own while some still have one (those change when the platform replaces a node). `stable` is true when every address is an egress address, which does not change. `addresses_v6` is always empty: services reach the internet over IPv4 only.","operationId":"v1GetServerlessOutboundAddresses","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"datacenter_id","required":false,"in":"query","description":"One location's (GET /v1/serverless/locations); unset: every location's.","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundAddressesDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The addresses services reach the internet from","tags":["Serverless"]}},"/v1/serverless/projects/{id}/log-drains":{"get":{"description":"Requires `serverless:read`. Each destination with its `status` (ok, failing, stopped, off), what it last answered and how much it was sent.","operationId":"v1ListServerlessLogDrains","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LogDrainDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Where the project's logs are also sent","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`, by an administrator. Every service's output from now on, near real time (about 30 s behind). HTTPS endpoints take NDJSON lines: {timestamp, message, project, service, revision, instance}. `token` (Datadog's API key, Better Stack's source token, or an HTTPS Authorization header) is kept encrypted and never shown again. At most 3 per project.","operationId":"v1CreateServerlessLogDrain","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLogDrainDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogDrainDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Send the project's logs to an endpoint, Datadog or Better Stack","tags":["Serverless"]}},"/v1/serverless/log-drains/{id}":{"patch":{"description":"Requires `serverless:write`, by an administrator. Back on, it resumes from where it stopped (within the 6 days the log store keeps).","operationId":"v1UpdateServerlessLogDrain","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLogDrainDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogDrainDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Turn a log drain off, or back on","tags":["Serverless"]},"delete":{"description":"Requires `serverless:write`, by an administrator.","operationId":"v1DeleteServerlessLogDrain","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Stop sending to this destination and forget it","tags":["Serverless"]}},"/v1/serverless/log-drains/{id}/test":{"post":{"description":"Requires `serverless:write`, by an administrator.","operationId":"v1TestServerlessLogDrain","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogDrainTestDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Send one line now, to see that the destination takes it","tags":["Serverless"]}},"/v1/serverless/projects/{id}/resources":{"get":{"description":"Requires `serverless:read`. Everything in the project but its services: the instances (VPS) and buckets put in it, and its databases.","operationId":"v1ListServerlessProjectResources","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectResourceDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A project's instances, databases and buckets","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`. `kind` is INSTANCE (by its number), BUCKET or DATABASE (by id or name). Each is moved from the project it was in, if any: a resource is in one project at most. Nothing is added unless every one is the account's. Returns what the project now holds.","operationId":"v1AddServerlessProjectResources","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddProjectResourcesV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectResourceDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Put instances, databases or buckets in a project","tags":["Serverless"]}},"/v1/serverless/projects/{id}/resources/{kind}/{resourceId}":{"delete":{"description":"Requires `serverless:write`. `kind` is instance, bucket or database. The resource itself is not touched.","operationId":"v1RemoveServerlessProjectResource","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"kind","required":true,"in":"path","schema":{"type":"string"}},{"name":"resourceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Take an instance, database or bucket out of a project","tags":["Serverless"]}},"/v1/serverless/services/{id}/runs":{"get":{"description":"Requires `serverless:read`.","operationId":"v1ListServerlessRuns","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A service's commands and terminals, newest first","tags":["Serverless"]},"post":{"description":"Requires `serverless:run` and an administrator of the account: the command sees the service's variables, secrets included. A container of the live revision — its image, its variables, its size — billed by the second until it ends (at the latest after an hour). Attach to it through `attach_url` within a minute; `mw run` does all of this.","operationId":"v1StartServerlessRun","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartRunV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartedRunDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Run a command (or open a shell) in the service's live revision","tags":["Serverless"]}},"/v1/serverless/runs/{runId}/attach":{"post":{"description":"Requires `serverless:run`.","operationId":"v1AttachServerlessRun","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"runId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartedRunDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A new link to a command not attached to yet (the first one expired)","tags":["Serverless"]}},"/v1/serverless/services/{id}/bindings":{"get":{"description":"Requires `serverless:read`. Buckets and databases the service reads as variables (their names only, never credentials).","operationId":"v1ListServerlessBindings","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BindingDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Resources bound to a service","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`. The service gets the bucket (with a key of its own) or the database (with a login of its own) as variables; refused when they would replace variables it has. Applied with a new deployment unless `deploy` is false.","operationId":"v1CreateServerlessBinding","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBindingV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindingChangeDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Bind a bucket or a database to a service","tags":["Serverless"]}},"/v1/serverless/services/{id}/bindings/{bindingId}":{"delete":{"description":"Requires `serverless:delete` (it revokes the binding's own login or key) and an administrator. The variables leave with a new deployment; the key stops an hour later.","operationId":"v1DeleteServerlessBinding","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"bindingId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindingChangeDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Unbind a resource from a service","tags":["Serverless"]}},"/v1/serverless/bindings/switch-database":{"post":{"description":"The step a restore ends with: every service bound to `from` is bound to `to` instead (the restored copy you checked), with a login of its own and the same variable names, and redeployed. Asynchronous: returns 202 with each service's deployment to follow (`GET /v1/serverless/deployments/{id}`).\n\nRequires `serverless:delete` and an administrator: the old database's logins stop a day later, as an unbind's do. `kind` is `MYSQL` for MySQL and MariaDB.","operationId":"v1SwitchServerlessDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchDatabaseV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchDatabaseResultDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Move the services of one database to another","tags":["Serverless"]}},"/v1/serverless/access":{"get":{"description":"Requires `serverless:read`.","operationId":"v1GetServerlessAccess","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessAccessDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Access, quota and usage","tags":["Serverless"]}},"/v1/serverless/wallet":{"get":{"description":"Requires `serverless:read`. Credit (µ¢: R$ 1 = 1 000 000), what a new service needs, the runway at the current pace, and whether serverless is suspended for lack of credit. The wallet is an on-demand subscription of its own: top it up as any (POST /v1/subscriptions/{id}/topup).","operationId":"v1GetServerlessWallet","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessWalletDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The serverless wallet","tags":["Serverless"]}},"/v1/serverless/spend-cap":{"get":{"description":"Requires `serverless:read`. The most serverless may cost the wallet a period — services, builds, egress, databases, Object Storage — and what reaching it does: WARN (notices at 80% and 100%) or STOP (the services also stop until the period ends or the cap is raised).","operationId":"v1GetServerlessSpendCap","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendCapDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The spend cap, and what was spent against it this period","tags":["Serverless"]},"put":{"description":"Requires `serverless:write` and an administrator of the account. `cap_micro_cents` null removes it (at least R$ 1 = 1 000 000 µ¢ otherwise). Applied at once: under this period’s spend with STOP the services stop now; raising it past the spend, or WARN, starts them again.","operationId":"v1SetServerlessSpendCap","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSpendCapDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendCapDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Set (or remove) the spend cap and what it does","tags":["Serverless"]}},"/v1/serverless/wallet/auto-recharge":{"put":{"description":"Requires `serverless:write` and an administrator of the account. On, a top-up invoice of `amount_micro_cents` (between the wallet's `auto_recharge_min_micro_cents` and `auto_recharge_max_micro_cents`) goes out on its own when the credit has five days left at the current pace (or is below what a new service needs), due the next day. The platform only issues it: the billing system charges it on its due date — a saved card automatically; Pix or boleto are paid from the invoice. Off keeps the amount for next time and cancels the automatic top-up invoice still open (`open_auto_recharge` on the wallet); one already paid is credited as usual.","operationId":"v1SetServerlessAutoRecharge","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAutoRechargeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessWalletDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Turn the automatic top-up on or off, and how much it adds","tags":["Serverless"]}},"/v1/serverless/usage":{"get":{"description":"Requires `serverless:read`. The wallet’s current billing period: time used and its cost per service, builds against their allowance, the total so far and the forecast — usage not charged yet included.","operationId":"v1GetServerlessUsage","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessUsageDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"What serverless cost this period","tags":["Serverless"]}},"/v1/serverless/prices":{"get":{"description":"Requires `serverless:read`. Per vCPU-hour and GiB-hour (charged by the second), what each size costs an hour, and builds per minute past the allowance.","operationId":"v1GetServerlessPrices","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessPricesDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Serverless prices","tags":["Serverless"]}},"/v1/serverless/projects/{id}/pause":{"post":{"description":"Requires `serverless:write`. Its sites answer \"temporarily unavailable\" meanwhile; nothing is deleted and no instance is billed.","operationId":"v1PauseServerlessProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Pause a project: every service stops until resumed","tags":["Serverless"]}},"/v1/serverless/projects/{id}/resume":{"post":{"description":"Requires `serverless:write`.","operationId":"v1ResumeServerlessProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Resume a paused project","tags":["Serverless"]}},"/v1/serverless/projects/{id}/env-groups":{"get":{"description":"Requires `serverless:read`. Variables several services share (a template keeps its secrets in one).","operationId":"v1ListServerlessEnvGroups","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EnvGroupDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A project's variable groups","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`.","operationId":"v1CreateServerlessEnvGroup","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEnvGroupV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvGroupDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a variable group","tags":["Serverless"]}},"/v1/serverless/env-groups/{groupId}":{"delete":{"description":"Requires `serverless:write`.","operationId":"v1DeleteServerlessEnvGroup","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a variable group no service reads","tags":["Serverless"]}},"/v1/serverless/env-groups/{groupId}/variables":{"get":{"description":"Requires `serverless:read`. Values are included only for tokens that also hold `serverless:write`; secrets never.","operationId":"v1ListServerlessEnvGroupVariables","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariableDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A variable group's variables","tags":["Serverless"]},"put":{"description":"Requires `serverless:write`. With `deploy` (the default), every live service reading the group is redeployed with the change.","operationId":"v1SetServerlessEnvGroupVariables","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetVariablesV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupVariableChangeDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change a variable group's variables (all or nothing)","tags":["Serverless"]}},"/v1/serverless/services/{id}/env-groups":{"put":{"description":"Requires `serverless:write`. Later groups override earlier ones; the service its own over all. With `deploy` (the default) it is applied at once.","operationId":"v1SetServerlessServiceEnvGroups","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkEnvGroupsV1Dto"}}}},"responses":{"200":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Choose the variable groups a service reads, in order","tags":["Serverless"]}},"/v1/serverless/registry-credentials":{"get":{"description":"Requires `serverless:read`. Passwords are never returned.","operationId":"v1ListServerlessRegistryCredentials","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RegistryCredentialDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Credentials for private image registries","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`. An image service names it in `source.image.registry_credential_id`.","operationId":"v1CreateServerlessRegistryCredential","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRegistryCredentialV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryCredentialDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Save a credential for a private registry (the password is write-only)","tags":["Serverless"]}},"/v1/serverless/registry-credentials/{credentialId}":{"delete":{"description":"Requires `serverless:delete` and an administrator.","operationId":"v1DeleteServerlessRegistryCredential","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"credentialId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a registry credential no service uses","tags":["Serverless"]}},"/v1/serverless/services/{id}/deploy-hook":{"post":{"description":"Requires `serverless:delete` (it replaces a credential: the previous URL stops working) and an administrator. The URL is in this answer only; a POST to it deploys the latest commit or digest.","operationId":"v1RotateServerlessDeployHook","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployHookDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create (or replace) the deploy-hook URL","tags":["Serverless"]},"delete":{"description":"Requires `serverless:delete` and an administrator.","operationId":"v1DisableServerlessDeployHook","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Disable the deploy-hook URL","tags":["Serverless"]}},"/v1/serverless/git/connections":{"get":{"description":"Requires `serverless:read`. GitHub, GitLab and Bitbucket accounts connected in the console (Settings › Integrations): the `connection_id` of a Git source.","operationId":"v1ListServerlessGitConnections","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GitConnectionDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Connected Git providers","tags":["Serverless"]}},"/v1/serverless/git/connections/{id}/repositories":{"get":{"description":"Requires `serverless:read`. A page at a time.","operationId":"v1ListServerlessGitRepositories","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitRepositoryPageDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Repositories a connection can deploy","tags":["Serverless"]}},"/v1/serverless/git/connections/{id}/branches":{"get":{"description":"Requires `serverless:read`.","operationId":"v1ListServerlessGitBranches","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"repo","required":true,"in":"query","description":"owner/name","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitBranchesDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A repository's branches","tags":["Serverless"]}},"/v1/serverless/templates":{"get":{"description":"Frameworks and ready apps to deploy as a whole project: what each makes and asks. Requires `serverless:read`.","operationId":"v1ListServerlessTemplates","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List the templates gallery","tags":["Serverless"]}},"/v1/serverless/templates/{id}":{"get":{"description":"Requires `serverless:read`.","operationId":"v1GetServerlessTemplate","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"example":"laravel","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessTemplateDetailDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a template, with what it costs a month","tags":["Serverless"]}},"/v1/serverless/templates/{id}/deploy":{"post":{"description":"Makes the project, its databases and buckets, a shared variable group (secrets generated) and its services, bound and deploying. Undone if refused half-way. Requires `serverless:write`.","operationId":"v1DeployServerlessTemplate","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"example":"laravel","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployServerlessTemplateDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessTemplateDeployResultDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Deploy a template as a new project","tags":["Serverless"]}},"/v1/serverless/source-inspections":{"post":{"description":"Requires `serverless:read`. Reads a few files of the branch (nothing is built or kept): the framework, its services (site, queue worker, scheduler, Procfile processes), the release command, the databases, Redis and bucket it uses, the secrets to generate, what is left to fill in, and the monthly estimate. `readable` is false for a public URL on a host whose files cannot be read.","operationId":"v1InspectServerlessSource","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceInspectionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceInspectionDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"What a repository is, and the project that publishes it","tags":["Serverless"]}},"/v1/serverless/projects/from-source":{"post":{"description":"Requires `serverless:write`. The proposal of POST /v1/serverless/source-inspections, read again here and cut to `keep`: the project, its databases and buckets, a shared variable group (secrets generated), its services built from the repository, bound and deploying. Everything it would be refused is checked before anything is made; undone if refused half-way.","operationId":"v1DeployServerlessFromSource","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployFromSourceDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessTemplateDeployResultDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Publish a repository as a whole project, in one go","tags":["Serverless"]}},"/v1/serverless/projects/{id}/duplicate":{"post":{"description":"The same services, sources, settings, variables and groups, with new, empty databases and buckets of the same kinds, bound the same way. Requires `serverless:write`.","operationId":"v1DuplicateServerlessProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateServerlessProjectDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessTemplateDeployResultDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Duplicate a project, with data of its own (a staging)","tags":["Serverless"]}},"/v1/serverless/projects/{id}/repository":{"post":{"description":"Every service of the project still built from the template’s starter moves to the repository given and deploys from it. Requires `serverless:write`.","operationId":"v1UseServerlessProjectRepository","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessTemplateRepositoryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessTemplateRepositoryResultDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Build a template's services from your own repository","tags":["Serverless"]}},"/v1/serverless/projects":{"get":{"description":"Requires `serverless:read`.","operationId":"v1ListServerlessProjects","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProjectDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List projects","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`.","operationId":"v1CreateServerlessProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a project","tags":["Serverless"]}},"/v1/serverless/locations":{"get":{"description":"Requires `serverless:read`. Every location shown to customers, as the VPS checkout lists them; one not `deployable` is temporarily unavailable for new projects. A project is made in one (`datacenter_id`) for good.","operationId":"v1ListServerlessLocations","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessLocationDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Where a project can run","tags":["Serverless"]}},"/v1/serverless/projects/{id}":{"get":{"description":"Requires `serverless:read`.","operationId":"v1GetServerlessProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a project","tags":["Serverless"]},"patch":{"description":"Requires `serverless:write`.","operationId":"v1UpdateServerlessProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Rename, protect or freeze a project, or turn its preview environments on","tags":["Serverless"]},"delete":{"description":"Requires `serverless:delete`, an `Idempotency-Key`, deletion protection off, and `?confirm=<project name>` echoing the name exactly.","operationId":"v1DeleteServerlessProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"confirm","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a project and everything in it","tags":["Serverless"]}},"/v1/serverless/projects/{id}/previews":{"get":{"description":"With `previews_enabled`, each pull request against a branch the project deploys gets a copy of it, built from its branch with new, empty databases and buckets, removed when it closes. Requires `serverless:read`.","operationId":"v1ListServerlessProjectPreviews","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreviewEnvironmentDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A project's preview environments: one per open pull request","tags":["Serverless"]}},"/v1/serverless/projects/{id}/app-logins":{"get":{"description":"An app whose first-run page would give its administrator account to whoever opened it first (Uptime Kuma, n8n, Metabase) gets that account made before it is reachable, with a generated password: its login is listed here. Requires `serverless:read`.","operationId":"v1ListServerlessAppLogins","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessAppLoginDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The administrator sign-ins made with a template's apps","tags":["Serverless"]}},"/v1/serverless/projects/{id}/app-logins/{serviceId}/reveal":{"post":{"description":"Only while it is the one made with the app: changed since, it is never shown. Requires `serverless:write`. Recorded in the activity log.","operationId":"v1RevealServerlessAppLogin","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"serviceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessAppLoginSecretDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An app's generated administrator password","tags":["Serverless"]}},"/v1/serverless/services":{"get":{"description":"Requires `serverless:read`.","operationId":"v1ListServerlessServices","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"project_id","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ServiceDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List services","tags":["Serverless"]}},"/v1/serverless/projects/{id}/services":{"post":{"description":"Requires `serverless:write`. Usage is billed from its first instance; checked against the account quota.","operationId":"v1CreateServerlessService","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceV1Dto"}}}},"responses":{"201":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a service and start its first deployment","tags":["Serverless"]}},"/v1/serverless/services/{id}":{"get":{"description":"Requires `serverless:read`.","operationId":"v1GetServerlessService","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a service","tags":["Serverless"]},"delete":{"description":"Requires `serverless:delete`, an `Idempotency-Key`, and `?confirm=<service name>`.","operationId":"v1DeleteServerlessService","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"confirm","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a service","tags":["Serverless"]}},"/v1/serverless/services/{id}/settings":{"patch":{"description":"Requires `serverless:write`.","operationId":"v1UpdateServerlessServiceSettings","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSettingsV1Dto"}}}},"responses":{"202":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change size, scaling, commands or schedule","tags":["Serverless"]}},"/v1/serverless/services/{id}/deletion-protection":{"put":{"description":"Requires `serverless:write`. Deleting it still needs `serverless:delete`, protection off and its name typed back.","operationId":"v1SetServerlessServiceDeletionProtection","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionProtectionV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Turn a service's deletion protection on or off","tags":["Serverless"]}},"/v1/serverless/services/{id}/source":{"patch":{"description":"Requires `serverless:write`.","operationId":"v1UpdateServerlessServiceSource","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change the repository, branch, image or auto-deploy","tags":["Serverless"]}},"/v1/serverless/services/{id}/deployments":{"post":{"description":"Requires `serverless:write`. Answers with the queued deployment; poll it for progress.","operationId":"v1DeployServerlessService","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployActionV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Deploy the latest commit or image, a chosen ref, or the live commit again","tags":["Serverless"]},"get":{"description":"Requires `serverless:read`.","operationId":"v1ListServerlessDeployments","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DeploymentDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A service's deployments, newest first","tags":["Serverless"]}},"/v1/serverless/services/{id}/uploads":{"post":{"description":"Requires `serverless:write`. For a service whose source is `UPLOAD` (what `mw deploy` does). The body is the archive itself, `Content-Type: application/gzip`, up to `upload_max_bytes` from `GET /v1/serverless/access`. Answers with the queued deployment that builds it; poll it for progress.","operationId":"v1UploadServerlessService","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"no_cache","required":false,"in":"query","description":"Build without the build cache","schema":{"type":"boolean"}},{"name":"message","required":false,"in":"query","description":"What this is, shown on the deployment (like a commit message)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/gzip":{"schema":{"type":"string","format":"binary"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Deploy a folder: its code, as a .tar.gz","tags":["Serverless"]}},"/v1/serverless/services/{id}/rollback":{"post":{"description":"Requires `serverless:write`.","operationId":"v1RollbackServerlessService","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Run an earlier revision again, exactly as it was","tags":["Serverless"]}},"/v1/serverless/services/{id}/restart":{"post":{"description":"Requires `serverless:write`.","operationId":"v1RestartServerlessService","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Replace every instance without rebuilding","tags":["Serverless"]}},"/v1/serverless/deployments/{id}":{"get":{"description":"Requires `serverless:read`.","operationId":"v1GetServerlessDeployment","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A deployment with its timeline and diagnosis","tags":["Serverless"]}},"/v1/serverless/deployments/{id}/cancel":{"post":{"description":"Requires `serverless:write`.","operationId":"v1CancelServerlessDeployment","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Cancel a deployment that has not reached its release","tags":["Serverless"]}},"/v1/serverless/deployments/{id}/build-log":{"get":{"description":"While `state` is `running`, ask again for more. Requires `serverless:read`.","operationId":"v1GetServerlessBuildLog","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildLogDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A deployment's build log: live while it builds, kept after","tags":["Serverless"]}},"/v1/serverless/deployments/{id}/rollout/promote":{"post":{"description":"Only while the deployment is DEPLOYING with a `rollout`. Carried out within seconds. Requires `serverless:write`.","operationId":"v1PromoteServerlessRollout","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Gradual rollout: give the new version every request now, without waiting","tags":["Serverless"]}},"/v1/serverless/deployments/{id}/rollout/abort":{"post":{"description":"Only while the deployment is DEPLOYING with a `rollout`; the deployment ends FAILED with ROLLOUT_ABORTED. Requires `serverless:write`.","operationId":"v1AbortServerlessRollout","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Gradual rollout: give every request back to the previous version, and stop","tags":["Serverless"]}},"/v1/serverless/services/{id}/revisions":{"get":{"description":"Requires `serverless:read`.","operationId":"v1ListServerlessRevisions","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RevisionDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Revisions and which can be rolled back to","tags":["Serverless"]}},"/v1/serverless/services/{id}/logs":{"get":{"description":"Requires `serverless:read`. What the instances, release commands and cron runs wrote, oldest first. `since` is RFC 3339 or a duration back from now (`15m`, `6h`, `7d`; default 1h, at most 7 days); `search` is case-insensitive. For a live tail, poll with `since` set to the last line's `ts`.","operationId":"v1GetServerlessServiceLogs","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"since","required":false,"in":"query","schema":{"type":"string"}},{"name":"until","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"revision","required":false,"in":"query","schema":{"type":"number"}},{"name":"instance","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceLogsDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Service logs","tags":["Serverless"]}},"/v1/serverless/services/{id}/cron-runs":{"get":{"description":"Requires `serverless:read`. Newest first; `before` (RFC 3339) pages back. A failed run carries `failure.code` and the `instance` whose logs say more.","operationId":"v1ListServerlessCronRuns","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"before","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CronRunDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A cron service's runs","tags":["Serverless"]}},"/v1/serverless/services/{id}/variables":{"get":{"description":"Requires `serverless:read`. Values are included only for tokens that also hold `serverless:write`; secrets never.","operationId":"v1ListServerlessVariables","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariableDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A service's variables","tags":["Serverless"]},"put":{"description":"Requires `serverless:write`.","operationId":"v1SetServerlessVariables","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetVariablesV1Dto"}}}},"responses":{"200":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create or update variables (all or nothing)","tags":["Serverless"]}},"/v1/serverless/services/{id}/variables/import":{"post":{"description":"Requires `serverless:write`. Problems come back with line numbers; nothing is saved.","operationId":"v1ImportServerlessVariables","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportVariablesV1Dto"}}}},"responses":{"201":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Import a .env","tags":["Serverless"]}},"/v1/serverless/services/{id}/variables/delete":{"post":{"description":"Requires `serverless:write`.","operationId":"v1DeleteServerlessVariables","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteVariablesV1Dto"}}}},"responses":{"200":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Remove variables","tags":["Serverless"]}},"/v1/serverless/services/{id}/domains":{"get":{"description":"Requires `serverless:read`.","operationId":"v1ListServerlessDomains","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DomainDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A service's domains with their DNS records","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`.","operationId":"v1AddServerlessDomain","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddDomainV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Add a custom domain","tags":["Serverless"]}},"/v1/serverless/domains/{id}/check":{"post":{"description":"Requires `serverless:write`.","operationId":"v1CheckServerlessDomain","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Check a domain's DNS records now","tags":["Serverless"]}},"/v1/serverless/domains/{id}":{"delete":{"description":"Requires `serverless:delete` and an `Idempotency-Key`.","operationId":"v1RemoveServerlessDomain","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Remove a custom domain","tags":["Serverless"]}},"/v1/serverless/images/inspect":{"post":{"description":"Requires `serverless:read`. Read from its registry (with the named registry credential for a private image). A path in `volumes` needs a volume, or what the app writes there is lost when it restarts or sleeps.","operationId":"v1InspectServerlessImage","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectImageV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageInspectionDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"What an image exposes and where it keeps its data","tags":["Serverless"]}},"/v1/serverless/services/{id}/volume/backups":{"get":{"description":"Requires `serverless:read`. Daily backups are kept 7 days, manual ones until deleted; their storage is included up to the volume's own size.","operationId":"v1ListServerlessVolumeBackups","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VolumeBackupDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The service's volume backups, newest first","tags":["Serverless"]},"post":{"description":"Requires `serverless:write`.","operationId":"v1BackUpServerlessVolume","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeBackupDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Back up the volume now (kept until deleted)","tags":["Serverless"]}},"/v1/serverless/volume-backups/{backupId}":{"delete":{"description":"Requires `serverless:delete`. It leaves the store within a minute.","operationId":"v1DeleteServerlessVolumeBackup","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"backupId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeBackupDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a backup","tags":["Serverless"]}},"/v1/serverless/projects/{id}/volume-backups":{"get":{"description":"Requires `serverless:read`. A deleted service's volume, or one taken away: restorable into a service of the project until they expire (7 days).","operationId":"v1ListServerlessOrphanedVolumeBackups","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VolumeBackupDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Backups of the project's volumes that went","tags":["Serverless"]}},"/v1/serverless/services/{id}/volume/restore":{"post":{"description":"Requires `serverless:write` and an `Idempotency-Key`. A deployment (trigger RESTORE): the backup's data is made into a volume while the service keeps serving, then swapped in. The current data is backed up first and kept 7 days.","operationId":"v1RestoreServerlessVolume","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreVolumeV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Replace the volume's data with a backup's","tags":["Serverless"]}},"/v1/serverless/services/{id}/volume/files":{"get":{"description":"Requires `serverless:read`. Through the service's instance (one is started while it sleeps): its image needs a shell.","operationId":"v1ListServerlessVolumeFiles","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"path","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeFilesDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A folder of the volume","tags":["Serverless"]},"put":{"description":"Requires `serverless:write`. The body is the file (`as=file`, written at `path`) or a .tar.gz (`as=archive`, unpacked into the folder `path`). Content-Type application/octet-stream or application/gzip.","operationId":"v1UploadServerlessVolumeFiles","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"path","required":false,"in":"query","schema":{"type":"string"}},{"name":"as","required":false,"in":"query","schema":{"enum":["file","archive"],"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Upload into the volume: a file, or a .tar.gz unpacked into a folder","tags":["Serverless"]},"delete":{"description":"Requires `serverless:delete`.","operationId":"v1DeleteServerlessVolumeFile","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"path","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a file, or a folder and all it holds","tags":["Serverless"]}},"/v1/serverless/services/{id}/volume/archive":{"get":{"description":"Requires `serverless:read`. Streamed as it is read.","operationId":"v1DownloadServerlessVolumeFiles","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"path","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A file or folder of the volume (all of it by default), as a .tar.gz","tags":["Serverless"]}},"/v1/projects":{"get":{"description":"Requires `serverless:read`. Each with how many instances, services, databases and buckets it groups.","operationId":"v1ListProjects","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProjectDto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List projects","tags":["Projects"]},"post":{"description":"Requires `serverless:write`.","operationId":"v1CreateProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a project","tags":["Projects"]}},"/v1/projects/{id}":{"get":{"description":"Requires `serverless:read`.","operationId":"v1GetProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a project","tags":["Projects"]},"patch":{"description":"Requires `serverless:write`.","operationId":"v1UpdateProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Rename or protect a project","tags":["Projects"]},"delete":{"description":"Requires `serverless:delete`, an `Idempotency-Key`, deletion protection off, and `?confirm=<project name>` echoing the name exactly. Its serverless services are torn down; the instances, databases and buckets in it are not touched — they only leave it.","operationId":"v1DeleteProject","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"confirm","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a project","tags":["Projects"]}},"/v1/projects/{id}/resources":{"get":{"description":"Requires `serverless:read`. Everything in the project but its services (GET /v1/serverless/services?project_id=).","operationId":"v1ListProjectResources","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectResourceDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A project's instances, databases and buckets","tags":["Projects"]},"post":{"description":"Requires `serverless:write`. `kind` is INSTANCE (by its id), BUCKET or DATABASE (by id or name). Each is moved from the project it was in, if any: a resource is in one project at most. Nothing is added unless every one is the account's. Returns what the project now holds.","operationId":"v1AddProjectResources","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddProjectResourcesV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectResourceDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Put instances, databases or buckets in a project","tags":["Projects"]}},"/v1/projects/{id}/resources/{kind}/{resourceId}":{"delete":{"description":"Requires `serverless:write`. `kind` is instance, bucket or database. The resource itself is not touched.","operationId":"v1RemoveProjectResource","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"kind","required":true,"in":"path","schema":{"type":"string"}},{"name":"resourceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Take an instance, database or bucket out of a project","tags":["Projects"]}},"/v1/ssh-keys":{"get":{"description":"The SSH keys saved in your account, oldest first. Requires `vm:read`.","operationId":"v1ListSshKeys","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SshKeyV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List SSH keys","tags":["SSH keys"]},"post":{"description":"Checked as sshd reads authorized_keys; refusals name the field (`public_key`) and why. An account keeps up to 100 keys. Requires `vm:write`.","operationId":"v1CreateSshKey","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSshKeyV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SshKeyV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Save an SSH key","tags":["SSH keys"]}},"/v1/ssh-keys/{id}":{"get":{"description":"Requires `vm:read`.","operationId":"v1GetSshKey","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SshKeyV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get an SSH key","tags":["SSH keys"]},"patch":{"description":"Requires `vm:write`.","operationId":"v1UpdateSshKey","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSshKeyV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SshKeyV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Rename an SSH key","tags":["SSH keys"]},"delete":{"description":"Instances that already have it keep it: remove it from the machine itself. Requires `vm:write`.","operationId":"v1DeleteSshKey","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete an SSH key","tags":["SSH keys"]}},"/v1/object-storage/info":{"get":{"description":"Requires `storage:read`. What S3 tools need (endpoint, region), where new buckets keep their data, and the account limits.","operationId":"v1GetObjectStorageInfo","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectStorageInfoDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The S3 endpoint, region and limits","tags":["Object Storage"]}},"/v1/object-storage/buckets":{"get":{"description":"Requires `storage:read`. Deleted ones still restorable included.","operationId":"v1ListBuckets","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BucketDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List buckets","tags":["Object Storage"]},"post":{"description":"Requires `storage:write`. Private and protected from deletion unless said otherwise; needs credit in the wallet.","operationId":"v1CreateBucket","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBucketV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a bucket","tags":["Object Storage"]}},"/v1/object-storage/buckets/{name}":{"get":{"description":"Requires `storage:read`.","operationId":"v1GetBucket","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a bucket","tags":["Object Storage"]},"patch":{"description":"Requires `storage:write`. Public access, deletion protection, size limit, CORS and lifecycle rules.","operationId":"v1UpdateBucket","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBucketV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change a bucket’s settings","tags":["Object Storage"]},"delete":{"description":"Requires `storage:delete`, an `Idempotency-Key`, deletion protection off, and `?confirm=<bucket name>`. Restorable for a few days (info.restore_days).","operationId":"v1DeleteBucket","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"confirm","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a bucket","tags":["Object Storage"]}},"/v1/object-storage/buckets/{name}/restore":{"post":{"description":"Requires `storage:write`. Within its restore window.","operationId":"v1RestoreBucket","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Restore a deleted bucket","tags":["Object Storage"]}},"/v1/object-storage/buckets/{name}/objects":{"get":{"description":"Requires `storage:read`. 200 per page.","operationId":"v1ListBucketObjects","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"prefix","required":false,"in":"query","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectListingDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Files and folders under a prefix","tags":["Object Storage"]}},"/v1/object-storage/buckets/{name}/objects/delete":{"post":{"description":"Up to 1000 keys at a time; keys that do not exist are not an error. Requires `storage:delete`.","operationId":"v1DeleteBucketObjects","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteObjectsV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"number"}}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete files","tags":["Object Storage"]}},"/v1/object-storage/buckets/{name}/objects/upload-url":{"post":{"description":"PUT the file's bytes to `url` within 15 minutes (with the same `Content-Type` when you named one). For large or many files, use an access key with any S3 tool. Requires `storage:write`.","operationId":"v1BucketUploadUrl","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedUrlDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A URL to upload one file to","tags":["Object Storage"]}},"/v1/object-storage/buckets/{name}/objects/download-url":{"post":{"description":"Anyone with the link can download the file until it expires (`expires_seconds`, 60 s to 7 days, default 1 hour). Requires `storage:read`.","operationId":"v1BucketDownloadUrl","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadUrlV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedUrlDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A link to one file","tags":["Object Storage"]}},"/v1/object-storage/keys":{"get":{"description":"Requires `storage:read`. Never their secrets.","operationId":"v1ListAccessKeys","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessKeyDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List access keys","tags":["Object Storage"]},"post":{"description":"Requires `storage:write`. The secret is in this answer only.","operationId":"v1CreateAccessKey","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccessKeyV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAccessKeyDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create an access key","tags":["Object Storage"]}},"/v1/object-storage/keys/{id}":{"delete":{"description":"Requires `storage:delete`. Effective within seconds.","operationId":"v1RevokeAccessKey","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"boolean"}}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Revoke an access key","tags":["Object Storage"]}},"/v1/object-storage/usage":{"get":{"description":"Requires `storage:read`. GB-months stored and operations against their allowances, the cost so far, and each bucket’s usage.","operationId":"v1GetObjectStorageUsage","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUsageDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"What storage cost this period","tags":["Object Storage"]}},"/v1/databases/info":{"get":{"description":"Requires `databases:read`. Prices are µ¢ (R$ 1 = 1 000 000), per hour and per 730-hour month.","operationId":"v1GetDatabasesInfo","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabasesInfoDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Engines, versions and sizes on offer, with prices","tags":["Databases"]}},"/v1/databases/ca-certificate":{"get":{"description":"Requires `databases:read`. Null when the system’s roots verify them.","operationId":"v1GetDatabaseCaCertificate","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseCaDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The CA database certificates chain to","tags":["Databases"]}},"/v1/databases/locations":{"get":{"description":"Requires `databases:read`. Each location’s `id` is the `datacenter_id` a database is created (or restored) in; `deployable` false: temporarily unavailable for new databases; `instances`: how many of your VPS instances run there. A database in a project runs in the project’s location.","operationId":"v1ListDatabaseLocations","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseLocationDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Where a database can run","tags":["Databases"]}},"/v1/databases/instances":{"get":{"description":"Requires `databases:read` and `vm:read`. Each VPS instance of the account with the public addresses it holds now; a database that allows one (`allowed_vms`, by its `id`) admits exactly those and follows them as they change.","operationId":"v1ListDatabaseInstances","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseInstanceDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Your VPS instances, to allow by picking them","tags":["Databases"]}},"/v1/databases":{"get":{"description":"Requires `databases:read`. Deleted ones whose backups are still kept included.","operationId":"v1ListDatabases","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List databases","tags":["Databases"]},"post":{"description":"Requires `databases:write`. Ready in a few minutes (poll `status`). Protected from deletion unless said otherwise; needs credit in the wallet. The owner’s password is in this answer.","operationId":"v1CreateDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDatabaseV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedDatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Create a database","tags":["Databases"]}},"/v1/databases/{name}":{"get":{"description":"Requires `databases:read`.","operationId":"v1GetDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a database","tags":["Databases"]},"patch":{"description":"Requires `databases:write`. Allowed sources (addresses typed, `allowed_cidrs`; your VPS instances picked by id, `allowed_vms`), extensions (only ever added), the Redis eviction policy, backups, deletion protection, project. `changes_pending` is true until the database runs them.","operationId":"v1UpdateDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDatabaseV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change a database’s settings","tags":["Databases"]},"delete":{"description":"Requires `databases:delete`, an `Idempotency-Key`, deletion protection off, no service still bound, and `?confirm=<database name>`. Backups are kept for a few days (info.retention_days).","operationId":"v1DeleteDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"confirm","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a database","tags":["Databases"]}},"/v1/databases/{name}/resize":{"post":{"description":"Requires `databases:write`. Billed at the new size from now on; applied with a short restart (`changes_pending` until then). A disk only ever grows.","operationId":"v1ResizeDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeDatabaseV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change a database’s size, or grow its disk","tags":["Databases"]}},"/v1/databases/{name}/reset-password":{"post":{"description":"Requires `databases:delete` (rotating a credential is destructive: whatever uses the old password stops) and an `Idempotency-Key` (a retry must not rotate twice). The old one stops working within a minute; bound services are not affected.","operationId":"v1ResetDatabasePassword","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabasePasswordDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Give the owner a new password","tags":["Databases"]}},"/v1/databases/{name}/reveal-password":{"post":{"description":"Requires `databases:write`. Recorded in the activity log.","operationId":"v1RevealDatabasePassword","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabasePasswordDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The owner’s current password","tags":["Databases"]}},"/v1/databases/{name}/tunnel":{"post":{"description":"Requires `databases:write`. A WebSocket (`url`, once, before `expires_at`) carrying one TCP connection to the database from the platform, as binary messages: what `mw db connect` and `mw db tunnel` use. The database still asks for its password, and TLS stays end to end — verify the certificate against `hostname`. Recorded in the activity log.","operationId":"v1OpenDatabaseTunnel","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenDatabaseTunnelV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseTunnelDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A tunnel to the database, whatever its allowed addresses","tags":["Databases"]}},"/v1/databases/{name}/restore":{"post":{"description":"Requires `databases:write`. To `latest`, a `time` inside the backups’ window, or a restore `point`; never over the database itself (which may be a deleted one whose backups are kept). The new database has its own name, address and owner password (in this answer) and is billed from when it runs.","operationId":"v1RestoreDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreDatabaseV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedDatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Restore a database into a new one","tags":["Databases"]}},"/v1/databases/{name}/restore-points":{"get":{"description":"Requires `databases:read`. Before each release of a bound service, before deletion, and the ones made by hand; newest first.","operationId":"v1ListDatabaseRestorePoints","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseRestorePointDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Restore points a restore can stop at","tags":["Databases"]},"post":{"description":"Requires `databases:write`. Before a risky change: a restore can then stop exactly here.","operationId":"v1CreateDatabaseRestorePoint","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseRestorePointDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Mark this instant, to restore to it later","tags":["Databases"]}},"/v1/databases/{name}/retry":{"post":{"description":"Requires `databases:write`. For a database whose creation failed.","operationId":"v1RetryDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Try creating a database again","tags":["Databases"]}},"/v1/databases/{name}/hibernate":{"post":{"description":"Requires `databases:write`. Closed to connections, a last full backup and a restore point at its end, then its machine released: billed only for what its backups keep until it wakes. Bound services cannot reach it meanwhile.","operationId":"v1HibernateDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Put a database to sleep","tags":["Databases"]}},"/v1/databases/{name}/wake":{"post":{"description":"Requires `databases:write`. Its backups restored on a new machine under the same name, address and password; billed for its machine again once it runs.","operationId":"v1WakeDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Wake a hibernated database","tags":["Databases"]}},"/v1/databases/{name}/jobs":{"get":{"description":"Requires `databases:read`. Newest first.","operationId":"v1ListDatabaseJobs","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseJobDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A database’s exports and imports","tags":["Databases"]}},"/v1/databases/{name}/exports":{"post":{"description":"Requires `databases:write` (a dump holds all the data). PostgreSQL: custom format (pg_restore); MySQL and MariaDB: gzipped SQL; SQL Server: a full backup (.bak, COPY_ONLY) of its first database, or of the one `database` names. Kept 7 days; asking again for the same while one is being made returns it.","operationId":"v1ExportDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportDatabaseV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseJobDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Make a dump to download","tags":["Databases"]}},"/v1/databases/{name}/exports/{job}/link":{"post":{"description":"Requires `databases:write`. Works for 15 minutes, with no credential (curl -o).","operationId":"v1DatabaseExportLink","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"job","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseExportLinkDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A link to download a dump","tags":["Databases"]}},"/v1/databases/{name}/import":{"post":{"description":"Requires `databases:write`, and `databases:delete` to replace tables (`replace`). From its URL (postgres://, mysql://, mariadb://), straight into this database as its owner; a restore point is marked before it starts.","operationId":"v1ImportDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportDatabaseV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseJobDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Copy another database in","tags":["Databases"]}},"/v1/databases/{name}/imports/uploads":{"post":{"description":"Requires `databases:write`, and `databases:delete` to `replace` what the database holds. The file says what it is by its name: PostgreSQL takes a dump (.sql, .sql.gz, or pg_dump’s custom format .dump); MySQL and MariaDB a dump (.sql, .sql.gz) from mysqldump, mariadb-dump or another provider’s export; SQL Server a backup (.bak). Its bytes decide the rest: a zip, a tar, another compression than gzip, UTF-16 text or anything that is not a dump is refused, with what to send instead. The upload goes where the backups are, so they must be on (`DATABASE_JOB_UNAVAILABLE`, reason `backups_off`), and the database’s server must take files (`DATABASE_IMPORT_UPLOAD`, reason `agent_update`: it does after its next maintenance window). A dump goes into an empty database unless it `replace`s what it holds: one its server last counted tables in is refused before the upload (`DATABASE_JOB_UNAVAILABLE`, reason `not_empty`, `tables`). Returns where each part goes (`part_urls`: `PUT …/parts/{n}` on this API, with the same token, which streams it to the database’s backup store) — `part_bytes` each (16 MiB; more only for a file past 156 GiB, up to 64 MiB), the last one less: PUT each part’s bytes to its URL (any order, several at once), then `…/complete`. A dump is imported into the database’s own database, as its owner, after a restore point; a .bak is restored as `database` (the first one when left out; a new name joins its databases). `…/parts` lists the parts still missing; an upload no part reached for a day (`expires_at`) is abandoned and its parts removed.","operationId":"v1StartDatabaseImportUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDatabaseImportUploadV1Dto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseImportUploadDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Import a file — a dump, or a SQL Server backup: start its upload","tags":["Databases"]}},"/v1/databases/{name}/imports/uploads/{job}/parts/{part}":{"put":{"description":"Requires `databases:write`. The body is the part’s bytes (`Content-Type: application/octet-stream`), `Content-Length` exactly its size — the ticket’s `part_bytes`, the last one less — or the part is refused (411 without a length). Streamed to the database’s store as it arrives; a part sent again replaces the one before; several may go at once.","operationId":"v1UploadDatabaseImportPart","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"job","required":true,"in":"path","schema":{"type":"string"}},{"name":"part","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseImportPartDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Send one part of an import file","tags":["Databases"]}},"/v1/databases/{name}/imports/uploads/{job}/parts":{"post":{"description":"Requires `databases:write`. The store says what arrived: `part_numbers` (and their `part_urls`) are the parts still missing, `uploaded_bytes` what it holds.","operationId":"v1ResumeDatabaseImportUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"job","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseImportUploadDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The parts of an upload still missing, and where to send them","tags":["Databases"]}},"/v1/databases/{name}/imports/uploads/{job}/complete":{"post":{"description":"Requires `databases:write`. Refused while the store does not hold every part (`DATABASE_IMPORT_UPLOAD`, reason `incomplete`, `missing_parts`: send them, then complete again); a store that did not seal the file answers 503 (reason `store`): complete again. Follow the import in the jobs.","operationId":"v1CompleteDatabaseImportUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"job","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseJobDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The file is uploaded: import it","tags":["Databases"]}},"/v1/databases/{name}/imports/uploads/{job}":{"delete":{"description":"Requires `databases:write`. Its parts are removed from the store; nothing is imported.","operationId":"v1CancelDatabaseImportUpload","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"job","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseJobDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Give up an upload","tags":["Databases"]}},"/v1/databases/{name}/metrics":{"get":{"description":"Requires `databases:read`. One [time, value] per step for CPU, memory, connections, throughput, cache hit ratio and the engine’s own.","operationId":"v1GetDatabaseMetrics","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"range","required":false,"in":"query","schema":{"enum":["1h","6h","24h","7d","30d"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseMetricsDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A database’s metrics over a range","tags":["Databases"]}},"/v1/databases/{name}/queries":{"get":{"description":"Requires `databases:read`.","operationId":"v1GetDatabaseQueries","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseQueriesDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A database’s costliest and slow statements","tags":["Databases"]}},"/v1/databases/{name}/users":{"get":{"description":"Requires `databases:read`. Never a password.","operationId":"v1ListDatabaseUsers","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseUserDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The users made on a SQL database","tags":["Databases"]},"post":{"description":"Requires `databases:write` and an `Idempotency-Key`. admin acts as the owner in every database; readwrite and readonly reach the tables of `databases`. The password is in the answer.","operationId":"v1CreateDatabaseUser","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDatabaseUserV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedDatabaseUserDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Make a user on a SQL database","tags":["Databases"]}},"/v1/databases/{name}/users/{user}":{"patch":{"description":"Requires `databases:write`.","operationId":"v1UpdateDatabaseUser","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"user","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDatabaseUserV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseUserDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change what a user may do","tags":["Databases"]},"delete":{"description":"Requires `databases:delete`. Its sessions end; what it owned becomes the owner’s.","operationId":"v1DeleteDatabaseUser","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"user","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete a user","tags":["Databases"]}},"/v1/databases/{name}/users/{user}/reset-password":{"post":{"description":"Requires `databases:delete` (whatever uses the old one stops) and an `Idempotency-Key`.","operationId":"v1ResetDatabaseUserPassword","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"user","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabasePasswordDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Give a user a new password","tags":["Databases"]}},"/v1/databases/{name}/users/{user}/reveal-password":{"post":{"description":"Requires `databases:write`. Recorded in the activity log.","operationId":"v1RevealDatabaseUserPassword","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"user","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabasePasswordDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A user’s current password","tags":["Databases"]}},"/v1/databases/{name}/databases":{"post":{"description":"Requires `databases:write`. Owned by the owner, with the same extensions and address.","operationId":"v1CreateExtraDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExtraDatabaseV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Make another database on a SQL server","tags":["Databases"]}},"/v1/databases/{name}/databases/{db}/delete":{"post":{"description":"Requires `databases:delete` and the name typed in `confirm_name`. A restore point is marked first when the server keeps backups.","operationId":"v1DeleteExtraDatabase","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"db","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteExtraDatabaseV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Delete one of the server’s other databases, with its data","tags":["Databases"]}},"/v1/webhooks":{"get":{"description":"Requires `account:read`.","operationId":"v1ListWebhooks","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The account's webhooks","tags":["Webhooks"]},"post":{"description":"Requires `webhooks:write`. `kind` GENERIC (default: your https:// address, signed JSON), SLACK or DISCORD. The secret is in this answer only.","operationId":"v1CreateWebhook","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedWebhookDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Add a webhook","tags":["Webhooks"]}},"/v1/webhooks/events":{"get":{"description":"Requires `account:read`.","operationId":"v1ListWebhookEventTypes","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEventTypesDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The events a webhook can get","tags":["Webhooks"]}},"/v1/webhooks/{id}":{"get":{"description":"Requires `account:read`. 404 for a webhook of another account.","operationId":"v1GetWebhook","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A webhook","tags":["Webhooks"]},"patch":{"description":"Requires `webhooks:write`.","operationId":"v1UpdateWebhook","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change what a webhook gets, or switch it off and on","tags":["Webhooks"]},"delete":{"description":"Requires `webhooks:delete`. Deliveries stop at once.","operationId":"v1DeleteWebhook","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Remove a webhook","tags":["Webhooks"]}},"/v1/webhooks/{id}/rotate-secret":{"post":{"description":"Requires `webhooks:delete`: the receiver rejects every delivery until it has the new secret.","operationId":"v1RotateWebhookSecret","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A new signing secret, in this answer only","tags":["Webhooks"]}},"/v1/webhooks/{id}/test":{"post":{"description":"Requires `webhooks:write`.","operationId":"v1TestWebhook","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestDto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Send a `webhook.test` event now","tags":["Webhooks"]}},"/v1/webhooks/{id}/deliveries":{"get":{"description":"Requires `account:read`.","operationId":"v1ListWebhookDeliveries","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryDto"}}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A webhook's last 50 deliveries","tags":["Webhooks"]}},"/v1/security/overview":{"get":{"description":"The score (0–100, null before the first check), open findings by severity, the engines behind the score, coverage and the worst resources. Requires `security:read`.","operationId":"v1GetSecurityOverview","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityOverviewV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The account’s security score and what it is made of","tags":["Security"]}},"/v1/security/findings":{"get":{"description":"Across every kind of resource, filterable by severity, status, resource and category; by default only what still counts (not resolved, not excepted). Texts in the request’s language. Requires `security:read`.","operationId":"v1ListSecurityFindings","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}},{"name":"severity","required":false,"in":"query","schema":{"type":"string","enum":["critical","high","medium","low","info"]}},{"name":"status","required":false,"in":"query","description":"Default: what still counts — everything but `resolved` and `excepted`.","schema":{"type":"string","enum":["open","resolved","excepted","false_positive"]}},{"name":"resource_type","required":false,"in":"query","schema":{"type":"string","enum":["instance","serverless_service","database","bucket","storage_key","account"]}},{"name":"resource_id","required":false,"in":"query","description":"With `resource_type` (not `instance`): that resource only.","schema":{"type":"string"}},{"name":"instance_id","required":false,"in":"query","description":"An instance id: its findings only.","schema":{"type":"string"}},{"name":"category","required":false,"in":"query","schema":{"type":"string","enum":["EXPOSED_SERVICE","AMPLIFICATION_VECTOR","VULNERABLE_SOFTWARE","WEAK_ENCRYPTION","CERTIFICATE","MISCONFIGURATION","INFORMATION_DISCLOSURE","DEFAULT_CREDENTIALS","ACCESS_CONTROL","NETWORK_POLICY"]}},{"name":"search","required":false,"in":"query","description":"In the title, check id, address or resource name.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SecurityFindingV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Findings, riskiest first","tags":["Security"]}},"/v1/security/findings/{id}":{"get":{"description":"Requires `security:read`.","operationId":"v1GetSecurityFinding","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityFindingDetailV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A finding, with its references and timeline","tags":["Security"]}},"/v1/security/exceptions":{"get":{"description":"The active ones; `include_inactive=true` adds the expired and revoked. Requires `security:read`.","operationId":"v1ListSecurityExceptions","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"include_inactive","required":false,"in":"query","description":"Also the expired and revoked ones.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SecurityExceptionV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The risks accepted on the account","tags":["Security"]},"post":{"description":"For one finding, a check (everywhere or on one instance) or a port, with a justification and an end date — capped by the platform’s maximum (the response has the date that applies). Its findings stop lowering the score at once, until it lapses or is revoked. Requires `security:write` and an `Idempotency-Key`.","operationId":"v1CreateSecurityException","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSecurityExceptionV1Dto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityExceptionV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Accept a risk","tags":["Security"]}},"/v1/security/exceptions/{id}":{"get":{"description":"Whatever its status: active, expired or revoked. Requires `security:read`.","operationId":"v1GetSecurityException","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityExceptionV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An accepted risk","tags":["Security"]},"delete":{"description":"Its findings count again at once. Revoking one that already ended is a no-op. Requires `security:write`.","operationId":"v1RevokeSecurityException","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Revoke an accepted risk","tags":["Security"]}},"/v1/security/settings":{"get":{"description":"Requires `security:read`.","operationId":"v1GetSecuritySettings","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecuritySettingsV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Scanning and notifications for the account","tags":["Security"]},"patch":{"description":"A new `default_frequency` applies to every instance at once. Requires `security:write`.","operationId":"v1UpdateSecuritySettings","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSecuritySettingsV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecuritySettingsV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Turn scanning on or off, or change how often and who is told","tags":["Security"]}},"/v1/instances/{id}/security":{"get":{"description":"Its score, open findings by severity, the engines behind the score and when it is next checked. `state` says why there is no score yet, when there is none. Requires `security:read`.","operationId":"v1GetInstanceSecurity","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceSecurityV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An instance’s security posture","tags":["Security"]},"patch":{"description":"Requires `security:write`.","operationId":"v1UpdateInstanceSecurity","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInstanceSecurityV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceSecurityV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Turn an instance’s scanning off or on, or change its cadence","tags":["Security"]}},"/v1/instances/{id}/security/scans":{"get":{"description":"The last 20, or `limit` up to 100. Requires `security:read`.","operationId":"v1ListInstanceSecurityScans","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"1–100, default 20.","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SecurityScanV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"An instance’s scans, newest first","tags":["Security"]},"post":{"description":"Starts a scan from outside, as an attacker would see it; the instance must be running. One at a time, a few a day (the problem says when the limit is reached). Follow it with `GET /v1/instances/{id}/security/scans`. Requires `security:write`.","operationId":"v1StartInstanceSecurityScan","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Instance id","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityScanV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Check an instance now","tags":["Security"]}},"/v1/vpn-gateways":{"get":{"description":"Newest first. Requires `network:read`.","operationId":"v1ListVpnGateways","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VpnGatewayV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"List VPN gateways","tags":["VPN"]}},"/v1/vpn-gateways/{id}":{"get":{"description":"Requires `network:read`.","operationId":"v1GetVpnGateway","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnGatewayV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a VPN gateway","tags":["VPN"]},"patch":{"description":"Renaming takes effect at once; the rest marks the gateway `pending_changes` until `POST /v1/vpn-gateways/{id}/apply`. Requires `network:write`.","operationId":"v1UpdateVpnGateway","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVpnGatewayV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnGatewayV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change a VPN gateway’s settings","tags":["VPN"]}},"/v1/vpn-gateways/{id}/apply":{"post":{"description":"Reconfigures the running gateway in seconds, connected people stay connected where they can. When the changes need a rebuild (`apply_mode: rebuild` — a few minutes offline, everyone disconnected) this answers 409 with `reason: VPN_GATEWAY_REBUILD_REQUIRED` unless `rebuild: true` confirms it.\n\nFollow `operation_id` at `GET /v1/operations/{id}`. Requires `network:write`.","operationId":"v1ApplyVpnGateway","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyVpnGatewayV1Dto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnGatewayApplyV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Put a VPN gateway’s pending changes in place","tags":["VPN"]}},"/v1/vpn-gateways/{id}/profile":{"get":{"description":"An OpenVPN profile; each person then signs in with their own username and password. It carries the gateway’s shared client certificate, so reading it requires `network:write`.","operationId":"v1GetVpnGatewayProfile","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnProfileV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The connection profile people import in the VPN app","tags":["VPN"]}},"/v1/vpn-gateways/{id}/users":{"get":{"description":"By username. Passwords are never returned. Requires `network:read`.","operationId":"v1ListVpnUsers","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VpnUserV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The people who can connect","tags":["VPN"]},"post":{"description":"Without a `password` one is generated and returned this once. They can connect after the next apply (`pending_changes`). `send_credentials` emails them how. Requires `network:write` and an `Idempotency-Key`.","operationId":"v1CreateVpnUser","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVpnUserV1Dto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedVpnUserV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Let someone connect","tags":["VPN"]}},"/v1/vpn-gateways/{id}/users/{user_id}":{"get":{"description":"Requires `network:read`.","operationId":"v1GetVpnUser","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}},{"name":"user_id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnUserV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Get a VPN user","tags":["VPN"]},"patch":{"description":"A new password, email or username, or `status: inactive` to refuse the login while keeping it. Takes effect on the next apply. Requires `network:write`.","operationId":"v1UpdateVpnUser","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}},{"name":"user_id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVpnUserV1Dto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnUserV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Change a VPN user","tags":["VPN"]},"delete":{"description":"They can no longer connect after the next apply. Requires `network:write`.","operationId":"v1DeleteVpnUser","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}},{"name":"user_id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"Remove a VPN user","tags":["VPN"]}},"/v1/vpn-gateways/{id}/site-connections":{"get":{"description":"Offices and other clouds joined by IPsec or WireGuard. Pre-shared keys and private keys are never returned. Requires `network:read`.","operationId":"v1ListVpnSiteConnections","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1–100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `next_cursor`. Do not construct or parse it.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageDto"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VpnSiteConnectionV1Dto"}}}}]}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"The sites connected to a gateway, with their tunnel state","tags":["VPN"]}},"/v1/vpn-gateways/{id}/site-connections/{connection_id}":{"get":{"description":"Requires `network:read`.","operationId":"v1GetVpnSiteConnection","parameters":[{"name":"X-Request-Id","in":"header","description":"Optional correlation id. Echoed on the response and included in error bodies; generated if omitted.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}},{"name":"connection_id","required":true,"in":"path","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnSiteConnectionV1Dto"}}}},"401":{"description":"Missing, malformed, revoked or expired API token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"403":{"description":"The token is valid but lacks a scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"404":{"description":"No such resource in the authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"422":{"description":"The request body or query failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"429":{"description":"Rate limit exceeded. See the RateLimit-* response headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}},"500":{"description":"Unexpected error. Quote the request_id when contacting support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetailsDto"}}}}},"security":[{"ApiToken":[]}],"summary":"A site connection and its tunnel state","tags":["VPN"]}}},"info":{"title":"Master da Web Cloud API","description":"Build integrations against your Master da Web cloud account: list and manage\ninstances, read billing, manage DNS, and order new instances programmatically.\n\n## Authentication\n\nEvery request needs a **personal access token** in the `Authorization` header:\n\n```\nAuthorization: Bearer mwk_live_xxxxxxxxxxxxxxxxxxxx\n```\n\nCreate one in the console under **Settings → API tokens**. The secret is shown\nonce, at creation. Call `GET /v1/me` to confirm a token works and see which\nscopes it carries.\n\nConsole session tokens are **not** accepted here, and API tokens do not work on\nthe console's own endpoints. The two surfaces are separate on purpose.\n\n## Scopes\n\nA token carries only the scopes you grant it. Every operation below documents\nthe scope it needs.\n\n**Scopes do not nest.** `vm:write` does *not* imply `vm:read` — grant both if\nyour integration needs to read and write. This is deliberate least privilege:\na token that only reboots instances should not also be able to enumerate them.\n\nMissing a scope returns **403** with `code: \"insufficient_scope\"` and names the\nscope in `detail`, so the fix is always in the error.\n\n## Ordering an instance\n\nFour calls, and the third is the only one that spends anything:\n\n1. `GET /v1/regions` and `GET /v1/catalog/offerings` — find a region that is\n   `available` and an offering code.\n2. `POST /v1/orders/quote` — price it. Check `purchasable`; if it is false,\n   `violations` says which image minimum you missed and how to fix it.\n3. `POST /v1/orders` with an `Idempotency-Key`.\n4. `GET /v1/orders/{id}` until `status` is terminal, then\n   `GET /v1/instances/{id}` for the machine.\n\nChoose how it is funded with `payment`:\n\n- **`balance`** — spend the subscription's existing credit and **never raise an\n  invoice**. If the balance is short you get **402** with `shortfall_cents` and\n  nothing is created. This is the mode to use for unattended automation: a\n  scheduled job that scales out can never surprise your customer with a bill.\n  Cover a shortfall with `POST /v1/subscriptions/{id}/top-ups` (which does\n  invoice), then retry with a **new** idempotency key.\n- **`invoice`** — always bill the full term, even when the balance would cover it.\n- **`auto`** (default) — balance first, invoice if it is short.\n\n## Idempotency\n\nSend an `Idempotency-Key` header — a unique string per logical request, a UUID\nis ideal — on anything that mutates. Retrying with the same key returns the\nfirst response instead of doing the work twice, so a timeout is safe to retry.\n\nIt is **required** on ordering, top-ups, instance deletion and firewall commits,\nand honoured everywhere else. Reusing a key with a *different* body is an error\n(**409 `idempotency_key_reuse`**), because replaying the old answer would tell\nyou a new request succeeded when it never ran. Keys are remembered for 24 hours.\n\n## Asynchronous work\n\nAnything that cannot finish inside a request returns **202** and an operation or\ntask id. Poll `GET /v1/operations/{id}` and stop when `status` is `completed`,\n`failed` or `cancelled`.\n\nFirewalls are staged: rule changes land immediately but do not filter any\ntraffic until `POST /v1/firewalls/{id}/commit`. Until then the firewall reports\n`has_pending_changes: true`.\n\n## Rate limits\n\nEvery response carries `RateLimit-Limit`, `RateLimit-Remaining` and\n`RateLimit-Reset` (seconds). Pace yourself by `RateLimit-Remaining` rather than\nwaiting for a **429**, which also returns `Retry-After`.\n\nReads are generous; ordering and top-ups are deliberately strict. Limits apply\nper token **and** per account, so splitting work across more tokens does not buy\nmore quota.\n\n## Errors\n\nErrors are [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem documents\nserved as `application/problem+json`:\n\n```json\n{\n  \"type\": \"https://api.masterdaweb.com/v1/errors/insufficient_scope\",\n  \"title\": \"Insufficient token scope\",\n  \"status\": 403,\n  \"detail\": \"Token missing required scope(s): vm:power\",\n  \"code\": \"insufficient_scope\",\n  \"request_id\": \"5f6b6a1e-2c4a-4c8f-9a3d-1f0b2c3d4e5f\"\n}\n```\n\nBranch on `code`, never on `title` or `detail` — those are prose and may be\nreworded. Some errors carry extra top-level fields; an insufficient balance, for\nexample, also returns `shortfall_cents`.\n\nEvery response carries an `X-Request-Id`. Quote it in support requests and we\ncan find your exact call.\n\n## IDs\n\n**Every `id` is a JSON string**, including instance ids that happen to be\nnumeric today. Do not parse them as numbers — the underlying types will change\nand your client should not break when they do. Inputs accept either form.\n\n## Money\n\nAmounts are **integer cents in a string**, always alongside a `currency`, e.g.\n`{ \"amount_cents\": \"4990\", \"currency\": \"BRL\" }`. Hourly rates keep sub-cent\nprecision as `rate_micro_cents_per_hour` (1 cent = 10,000 micro-cents), because\nrounding an hourly rate to cents would round most of them to zero.\n\nNever parse money as a float.\n\n## Timestamps\n\nRFC 3339 in UTC, always suffixed `Z`, always on a field ending in `_at`.\n\n## Pagination\n\nList endpoints return:\n\n```json\n{ \"object\": \"list\", \"data\": [], \"has_more\": true, \"next_cursor\": \"b3JkZXI6...\" }\n```\n\nPass `next_cursor` back as `cursor` for the following page, and `limit`\n(1–100) to size it. Cursors are opaque — do not construct or parse them. Stop\nwhen `has_more` is false rather than when a page comes back short.\n\n## Server-side use only\n\nThis API is intentionally **not reachable from browser JavaScript**: no\ncross-origin headers are served. A personal access token is a long-lived secret\nwith real spending power, and anything a browser can send, a visitor can read.\nCall it from your backend.","version":"1.0.0","contact":{"name":"Master da Web","url":"https://masterdaweb.com","email":"suporte@masterdaweb.com"}},"tags":[{"name":"Account","description":"Who the token belongs to and what it may do."},{"name":"Regions","description":"Where instances can be placed."},{"name":"Catalog","description":"Offerings, images and addons you can order."},{"name":"Instances","description":"Cloud instances (VMs)."},{"name":"Billing","description":"Subscriptions, balances, ledger and invoices."},{"name":"DNS","description":"Zones and records."},{"name":"Firewalls","description":"Cloud firewalls and their rules."},{"name":"VPCs","description":"Private networks."},{"name":"Serverless","description":"Projects, services, deployments, variables, domains and bindings."},{"name":"Object Storage","description":"S3-compatible buckets, their files and access keys."},{"name":"Databases","description":"Managed PostgreSQL and Redis databases."}],"servers":[{"url":"https://apiv2.masterdaweb.com","description":"Production"}],"components":{"securitySchemes":{"ApiToken":{"scheme":"bearer","bearerFormat":"mwk","type":"http","description":"Personal access token, e.g. `mwk_live_…`. Create one in the console under Settings → API tokens, and grant it only the scopes your integration needs."}},"schemas":{"ProblemDetailsDto":{"type":"object","properties":{"type":{"type":"string","description":"Stable URL identifying the error class. Also the docs anchor.","example":"https://api.masterdaweb.com/v1/errors/insufficient_scope"},"title":{"type":"string","description":"Short human-readable summary.","example":"Insufficient token scope"},"status":{"type":"number","description":"HTTP status code, repeated for convenience.","example":403},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence.","example":"Token missing required scope(s): vm:power"},"instance":{"type":"string","description":"Path of the request that failed.","example":"/v1/instances/42/power"},"code":{"type":"string","description":"Stable machine-readable error code. Branch on this, not on `title`.","enum":["unauthorized","invalid_token","insufficient_scope","forbidden","validation_failed","invalid_request","not_found","conflict","unsupported_media_type","idempotency_key_required","idempotency_key_reuse","idempotent_request_in_flight","insufficient_balance","not_purchasable","account_not_found","payment_mode_unavailable","rate_limited","service_unavailable","internal_error"]},"request_id":{"type":"string","description":"Correlation id for this request. Quote it in support requests.","example":"5f6b6a1e-2c4a-4c8f-9a3d-1f0b2c3d4e5f"},"reason":{"type":"string","description":"A finer, stable reason under `code` — the service's own error code, e.g. `VM_OPERATION_IN_PROGRESS` on a 409 while another operation holds an instance, `INSTANCE_IN_RESCUE`. Branch on it to retry the right thing.","example":"VM_OPERATION_IN_PROGRESS"},"errors":{"type":"array","description":"`validation_failed`, and a service's refusal of one field: which fields, and why.","items":{"type":"object","properties":{"field":{"type":"string"},"issues":{"type":"array","items":{"type":"string"}},"code":{"type":"string"}}}},"shortfall_cents":{"type":"string","description":"`insufficient_balance` (402): what is missing, in cents, as a decimal string.","example":"4500"},"subscription_id":{"type":"string","description":"`insufficient_balance` (402): the subscription to top up."},"currency":{"type":"string","description":"`insufficient_balance` (402): ISO 4217 currency of the amounts.","example":"BRL"},"next":{"type":"object","description":"`insufficient_balance` (402): what to call next.","properties":{"top_up":{"type":"string","example":"POST /v1/subscriptions/{id}/top-ups"}}}},"required":["type","title","status","code"]},"MeDto":{"type":"object","properties":{"object":{"type":"string","example":"identity"},"account_id":{"type":"string","description":"Your account id.","example":"15650"},"scopes":{"type":"array","description":"Scopes granted to the token making this request.","items":{"type":"string","enum":["vm:read","vm:write","vm:power","billing:read","dns:read","dns:write","network:read","network:write","assistant:read","account:read","image:read","image:write","order:write","billing:write","vm:delete","serverless:read","serverless:write","serverless:delete","serverless:run","storage:read","storage:write","storage:delete","databases:read","databases:write","databases:delete","webhooks:write","webhooks:delete","security:read","security:write","admin:clients:read","admin:services:read","admin:services:write","admin:billing:read","admin:billing:write","admin:dns:read","admin:dns:write","admin:operations:read","admin:alerts:read","admin:infrastructure:read","admin:audit:read"]}},"token_id":{"type":"string","description":"Id of the token making this request. Quote it to support when asking about a specific credential; it is not the secret and cannot be used to authenticate."}},"required":["object","account_id","scopes","token_id"]},"PageDto":{"type":"object","properties":{"object":{"type":"string","example":"list","description":"Always \"list\"."},"has_more":{"type":"boolean","description":"True when another page is available."},"next_cursor":{"type":"string","nullable":true,"description":"Pass as `cursor` to fetch the next page. Null on the last page."}},"required":["object","has_more"]},"RegionDto":{"type":"object","properties":{"object":{"type":"string","example":"region"},"id":{"type":"string","example":"3"},"name":{"type":"string","example":"São Paulo"},"region_name":{"type":"string","nullable":true,"example":"br-sp"},"available":{"type":"boolean","description":"Whether new instances can be placed here right now. A region with no deployable capacity is reported false rather than hidden, so an integration can tell \"gone\" from \"temporarily full\"."},"ipv4_available":{"type":"boolean","description":"Whether a public IPv4 address can be allocated here."},"ipv6_available":{"type":"boolean","description":"Whether an IPv6 address can be allocated here."}},"required":["object","id","name","available","ipv4_available","ipv6_available"]},"TermRateDto":{"type":"object","properties":{"term":{"type":"string","example":"MONTHLY"},"rate_micro_cents_per_hour":{"type":"string","nullable":true,"description":"Hourly rate in micro-cents. Null when the term is not offered.","example":"1388888"}},"required":["term"]},"OfferingDto":{"type":"object","properties":{"object":{"type":"string","example":"offering"},"code":{"type":"string","description":"Pass this as `offering_code` when ordering.","example":"c4m8"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"kind":{"type":"string","description":"What kind of resource this offering provisions.","example":"VM"},"vcpus":{"type":"number","example":4},"ram_mb":{"type":"number","example":8192},"base_disk_gb":{"type":"number","description":"Disk included before any expansion.","example":80},"rates":{"type":"array","items":{"$ref":"#/components/schemas/TermRateDto"}},"currency":{"type":"string","example":"BRL"}},"required":["object","code","name","kind","vcpus","ram_mb","base_disk_gb","rates","currency"]},"AppInputOptionFallbackDto":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"}},"required":["label"]},"AppInputOptionDto":{"type":"object","properties":{"value":{"type":"string","example":"trial"},"recommended":{"type":"boolean","description":"The option a customer who has no preference should take; also the default."},"fallback":{"$ref":"#/components/schemas/AppInputOptionFallbackDto"}},"required":["value","fallback"]},"AppInputConditionDto":{"type":"object","properties":{"key":{"type":"string","description":"A select or toggle declared earlier in the list."},"equals":{"oneOf":[{"type":"string"},{"type":"boolean"}]}},"required":["key","equals"]},"AppInputFallbackDto":{"type":"object","properties":{"label":{"type":"string"},"help":{"type":"string"},"placeholder":{"type":"string"},"later":{"type":"string","description":"What happens when a `recommended` field is left for later."},"steps":{"description":"\"Where do I get this?\", in order.","type":"array","items":{"type":"string"}}},"required":["label","help"]},"AppInputDefinitionDto":{"type":"object","properties":{"key":{"type":"string","example":"licence_key","pattern":"^[a-z][a-z0-9_]{1,39}$"},"type":{"type":"string","enum":["text","secret","select","toggle","number","email"]},"need":{"type":"string","enum":["required","recommended","optional"],"description":"`required`: the order is refused without it. `recommended`: the app installs and waits for it. `optional`: its default applies, or nothing."},"default":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"description":"`$account_email` means the account holder's address."},"options":{"type":"array","items":{"$ref":"#/components/schemas/AppInputOptionDto"}},"pattern":{"type":"string","description":"Anchored regular expression (Unicode) the value must match."},"min_length":{"type":"number"},"max_length":{"type":"number"},"min":{"type":"number"},"max":{"type":"number"},"when":{"$ref":"#/components/schemas/AppInputConditionDto"},"obtain_url":{"type":"string","description":"The vendor's page where the value is obtained."},"after_install":{"type":"boolean","description":"Asked only once the server exists, on its page."},"editable":{"type":"boolean","description":"May be changed after the install; applied to the running server."},"advanced":{"type":"boolean"},"must_accept":{"type":"boolean","description":"A toggle that must be switched on to order (terms the customer accepts)."},"fallback":{"$ref":"#/components/schemas/AppInputFallbackDto"}},"required":["key","type","need","fallback"]},"ImageDto":{"type":"object","properties":{"object":{"type":"string","example":"image"},"code":{"type":"string","description":"Pass this as `image.code` when ordering.","example":"ubuntu-24-04"},"name":{"type":"string"},"os_family":{"type":"string","enum":["linux","windows","other"]},"type":{"type":"string","enum":["OPERATING_SYSTEM","MARKETPLACE_APP"]},"category":{"type":"string"},"description":{"type":"string","nullable":true},"supports_password":{"type":"boolean","description":"True when you may set your own root/administrator password at order time."},"min_disk_gb":{"type":"number","nullable":true,"description":"Minimum disk this image needs. An order below it is rejected."},"min_ram_mb":{"type":"number","nullable":true},"min_vcpu":{"type":"number","nullable":true},"inputs":{"nullable":true,"description":"What the app asks before it can run — a licence key, the edition, a game server token — or null when it asks nothing. Answer them in the order body as `app_inputs`, keyed by `key`; `fallback` is the English wording and `need` says whether an order is refused without the answer.","type":"array","items":{"$ref":"#/components/schemas/AppInputDefinitionDto"}}},"required":["object","code","name","os_family","type","category","supports_password"]},"AddonDto":{"type":"object","properties":{"object":{"type":"string","example":"addon"},"code":{"type":"string","example":"backup-slot"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"type":{"type":"string"},"quantity_enabled":{"type":"boolean","description":"False when the addon is a simple on/off."},"min_quantity":{"type":"number"},"max_quantity":{"type":"number","nullable":true},"quantity_step":{"type":"number"},"rates":{"type":"array","items":{"$ref":"#/components/schemas/TermRateDto"}},"currency":{"type":"string","example":"BRL"}},"required":["object","code","name","type","quantity_enabled","min_quantity","quantity_step","rates","currency"]},"InstanceRegionDto":{"type":"object","properties":{"id":{"type":"string","example":"3"},"name":{"type":"string","example":"São Paulo"},"region_name":{"type":"string","nullable":true,"example":"br-sp"}},"required":["id","name"]},"InstanceSpecsDto":{"type":"object","properties":{"vcpus":{"type":"number","nullable":true,"example":4},"ram_mb":{"type":"number","nullable":true,"example":8192},"disk_gb":{"type":"number","nullable":true,"example":160}}},"InstanceIpDto":{"type":"object","properties":{"address":{"type":"string","example":"203.0.113.10"},"version":{"type":"string","enum":["ipv4","ipv6"]},"primary":{"type":"boolean","description":"True for the instance's primary address."}},"required":["address","version","primary"]},"InstanceDto":{"type":"object","properties":{"object":{"type":"string","example":"instance","description":"Always \"instance\"."},"id":{"type":"string","example":"24377","description":"Instance id. Always a string — see the \"IDs\" guide."},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"power_state_cached":{"type":"string","enum":["running","stopped"],"description":"Last known power state from our records. It can lag the hypervisor — call GET /v1/instances/{id}/status for the live value."},"suspended":{"type":"boolean","description":"True while the instance is suspended for non-payment."},"region":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/InstanceRegionDto"}]},"specs":{"$ref":"#/components/schemas/InstanceSpecsDto"},"hostname":{"type":"string","nullable":true},"ip_addresses":{"type":"array","items":{"$ref":"#/components/schemas/InstanceIpDto"}},"vpc_id":{"type":"string","nullable":true,"description":"VPC this instance is attached to, if any."},"offering_code":{"type":"string","nullable":true,"description":"Catalog offering code backing this instance."},"image":{"type":"string","nullable":true,"description":"Catalog image (`GET /v1/catalog/images` → `code`) it was built or last reinstalled from; null for a custom image.","example":"ubuntu-24-04"},"custom_image_id":{"type":"string","nullable":true,"description":"Your custom image it was built from, when it was."},"project_id":{"type":"string","nullable":true,"description":"The project it belongs to, if any."},"subscription_id":{"type":"string","nullable":true,"description":"The subscription it is billed on (top-ups go there)."},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","power_state_cached","suspended","specs","ip_addresses"]},"InstanceUsageDto":{"type":"object","properties":{"cpu":{"type":"number","nullable":true,"description":"CPU load, 0–1."},"memory_used_bytes":{"type":"number","nullable":true,"description":"Memory in use, bytes."},"memory_total_bytes":{"type":"number","nullable":true,"description":"Memory allocated, bytes."},"disk_used_bytes":{"type":"number","nullable":true,"description":"In-guest disk used, bytes. Null unless the guest agent answered — see `disk_state`."},"disk_total_bytes":{"type":"number","nullable":true,"description":"In-guest disk total, bytes."},"disk_state":{"type":"string","nullable":true,"enum":["ok","stopped","agent_unavailable"],"description":"Whether real in-guest disk figures could be read."}}},"InstanceStatusDto":{"type":"object","properties":{"object":{"type":"string","example":"instance_status"},"instance_id":{"type":"string","example":"24377"},"power_state":{"type":"string","description":"Live power state read from the hypervisor.","example":"running"},"suspended":{"type":"boolean","description":"True while suspended for non-payment."},"uptime_seconds":{"type":"number","nullable":true,"description":"Seconds since boot, when reported."},"usage":{"$ref":"#/components/schemas/InstanceUsageDto"},"busy":{"type":"boolean","description":"True while a deploy, backup or restore is running on this instance."},"deployment_progress":{"type":"number","nullable":true,"description":"Deployment progress (0–100) while the instance is being provisioned."},"cached":{"type":"boolean","description":"True when served from our short-lived cache. Pass `?fresh=true` to force a hypervisor read."}},"required":["object","instance_id","power_state","suspended","usage","busy","cached"]},"UpdateInstanceV1Dto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"maxLength":120,"description":"Display name. Send null or an empty string to clear it."},"description":{"type":"string","nullable":true,"maxLength":500,"description":"Free-text note. Send null or an empty string to clear it."}}},"InstancePowerV1Dto":{"type":"object","properties":{"action":{"type":"string","enum":["start","stop","reboot"],"description":"- `start` — boot a stopped instance.\n- `stop` — graceful shutdown, falling back to power-off.\n- `reboot` — restart in place."}},"required":["action"]},"TaskAcceptedDto":{"type":"object","properties":{"object":{"type":"string","example":"task"},"instance_id":{"type":"string","description":"Instance the action was requested on."},"action":{"type":"string","description":"What was requested.","example":"reboot"},"task_id":{"type":"string","nullable":true,"description":"An opaque name for the accepted action (`task_…`), or `immediate` when nothing was left running. It identifies the request in your own logs and in a support conversation; it carries no meaning of its own. Poll `GET /v1/instances/{id}/status` for the resulting power state.","example":"task_0190a3c4-5b6d-7e8f-9a0b-1c2d3e4f5a6b"}},"required":["object","instance_id","action"]},"InstanceDeletedDto":{"type":"object","properties":{"object":{"type":"string","example":"instance_deletion"},"instance_id":{"type":"string"},"deleted":{"type":"boolean","description":"True once the instance is destroyed and billing has stopped."},"message":{"type":"string","description":"Human-readable outcome."}},"required":["object","instance_id","deleted","message"]},"RescueMediaOptionDto":{"type":"object","properties":{"code":{"type":"string","enum":["rescue-linux","rescue-windows"]},"kind":{"type":"string","enum":["linux","windows"]},"recommended":{"type":"boolean","description":"The default choice for this instance."},"available":{"type":"boolean"},"unavailable_reason":{"type":"string","nullable":true,"enum":["insufficient_memory","media_unavailable"]},"supports_ssh":{"type":"boolean","description":"SSH/SFTP access (Linux rescue) or console only (Windows PE)."},"min_ram_mb":{"type":"number"}},"required":["code","kind","recommended","available","unavailable_reason","supports_ssh","min_ram_mb"]},"RescueSnapshotOfferDto":{"type":"object","properties":{"offered":{"type":"boolean","description":"Whether a snapshot can be taken before entering."},"free_slots":{"type":"number"},"max_slots":{"type":"number"}},"required":["offered","free_slots","max_slots"]},"RescueMediaRefDto":{"type":"object","properties":{"code":{"type":"string","enum":["rescue-linux","rescue-windows"]},"kind":{"type":"string","enum":["linux","windows"]},"version":{"type":"string","description":"Build of the rescue system (CalVer), e.g. `2026.10.1`."}},"required":["code","kind","version"]},"RescueHostKeyDto":{"type":"object","properties":{"type":{"type":"string","example":"ED25519"},"sha256":{"type":"string","example":"SHA256:3f9aZt0K…"}},"required":["type","sha256"]},"RescueAccessDto":{"type":"object","properties":{"host":{"type":"string","nullable":true,"description":"Address to connect to (the instance’s primary public IPv4, else IPv6). Null when it has none."},"username":{"type":"string","nullable":true,"description":"`root` when the rescue system accepts SSH; null when it is console-only."},"ssh":{"type":"boolean","description":"Whether this rescue system accepts SSH at all (Windows PE does not)."},"password_auth":{"type":"boolean","description":"Whether SSH accepts the root password (false: keys only)."},"ssh_keys":{"type":"number","description":"How many of the customer’s public keys are installed."},"host_keys":{"description":"The rescue system’s SSH host keys. They differ from the instance’s own, so an SSH client warns that the host key changed — compare against these.","type":"array","items":{"$ref":"#/components/schemas/RescueHostKeyDto"}}},"required":["host","username","ssh","password_auth","ssh_keys","host_keys"]},"RescueSummaryDto":{"type":"object","properties":{"session_id":{"type":"string"},"state":{"type":"string","enum":["entering","active","exiting"]},"since":{"type":"string","description":"When the instance entered (or started entering) rescue mode."},"media":{"$ref":"#/components/schemas/RescueMediaRefDto"},"ready":{"type":"boolean","description":"Whether the rescue system answered and its access is applied. False while it boots — and after a boot that never answered (see `error_code`); the console still works."},"access":{"$ref":"#/components/schemas/RescueAccessDto"},"auto_exit_at":{"type":"string","nullable":true,"description":"When the platform takes the instance out of rescue mode by itself. Null: never."},"error_code":{"type":"string","nullable":true,"enum":["RESCUE_SNAPSHOT_FAILED","RESCUE_SHUTDOWN_FAILED","RESCUE_NO_FREE_SLOT","RESCUE_CONFIG_FAILED","RESCUE_START_FAILED","RESCUE_BOOT_REFUSED","RESCUE_AGENT_TIMEOUT","RESCUE_ACCESS_FAILED","RESCUE_RESTORE_FAILED","RESCUE_INTERRUPTED","RESCUE_SUSPENDED"],"description":"The last problem with this session, if any."},"snapshot_name":{"type":"string","nullable":true,"description":"The snapshot taken before entering, when one was asked for."}},"required":["session_id","state","since","media","ready","access","auto_exit_at","error_code","snapshot_name"]},"RescueOptionsDto":{"type":"object","properties":{"available":{"type":"boolean"},"reason":{"type":"string","nullable":true,"enum":["disabled","deleted","managed_service","suspended","deploying","media_unavailable","insufficient_memory","hardware_incompatible"]},"hidden":{"type":"boolean","description":"True when the console should not offer rescue mode at all (managed services, feature off)."},"media":{"type":"array","items":{"$ref":"#/components/schemas/RescueMediaOptionDto"}},"power_state":{"type":"string","enum":["running","stopped","unknown"],"description":"Decides “Restart into rescue mode” or “Start in rescue mode”."},"ssh_reachable":{"type":"string","enum":["yes","restricted","blocked"],"description":"Whether the instance’s firewall lets SSH (TCP 22) reach the rescue system."},"snapshot":{"$ref":"#/components/schemas/RescueSnapshotOfferDto"},"auto_exit_after_hours":{"type":"number","description":"Hours after which rescue mode ends by itself (0: never)."},"shutdown_timeout_seconds":{"type":"number","description":"How long the running system is given to shut down before it is forced off."},"session":{"nullable":true,"description":"The open session, when there is one.","type":"object","allOf":[{"$ref":"#/components/schemas/RescueSummaryDto"}]}},"required":["available","reason","hidden","media","power_state","ssh_reachable","snapshot","auto_exit_after_hours","shutdown_timeout_seconds","session"]},"EnterRescueV1Dto":{"type":"object","properties":{"media_code":{"type":"string","enum":["rescue-linux","rescue-windows"],"description":"Rescue system to boot. Defaults to the recommended one (`rescue-linux`)."},"ssh_public_keys":{"maxItems":10,"description":"Public keys allowed to sign in as root (`ssh-ed25519 AAAA… comment`).","type":"array","items":{"type":"string"}},"password_auth":{"type":"boolean","default":true,"description":"Accept the generated root password over SSH. Always true when no key is given."},"take_snapshot":{"type":"boolean","default":false,"description":"Take a snapshot first (needs a free snapshot slot)."}}},"EnterRescueResponseDto":{"type":"object","properties":{"session_id":{"type":"string"},"state":{"type":"string","enum":["entering","active","exiting"]},"root_password":{"type":"string","nullable":true,"description":"The rescue system’s root password — shown ONCE, never stored or returned again. Null for a console-only rescue system."},"job_id":{"type":"string","description":"The job tracking the transition (pushed as `jobStatus`)."}},"required":["session_id","state","root_password","job_id"]},"RescueTransitionResponseDto":{"type":"object","properties":{"session_id":{"type":"string"},"state":{"type":"string","enum":["entering","active","exiting"]},"job_id":{"type":"string"}},"required":["session_id","state","job_id"]},"RescuePasswordResponseDto":{"type":"object","properties":{"root_password":{"type":"string","description":"The new root password — shown ONCE, never stored or returned again. Asking for one also turns password sign-in back on for a session that was keys-only."}},"required":["root_password"]},"OperationAcceptedDto":{"type":"object","properties":{"object":{"type":"string","example":"operation_accepted"},"action":{"type":"string","example":"reinstall","description":"What was accepted: reinstall, resize, backup, backup_restore, snapshot_restore, vpc_attach, vpc_detach."},"resource_type":{"type":"string","enum":["instance","snapshot","backup","vpc"]},"resource_id":{"type":"string"},"instance_id":{"type":"string","description":"The instance the work acts on — the one to poll (`GET /v1/instances/{id}/status`) when there is no operation."},"operation_id":{"type":"string","nullable":true,"description":"Poll `GET /v1/operations/{id}` until a terminal status. Null when the work is not tracked as an operation: poll the resource instead."}},"required":["object","action","resource_type","resource_id","instance_id"]},"ReinstallInstanceV1Dto":{"type":"object","properties":{"image":{"type":"string","description":"Catalog image code (`GET /v1/catalog/images` → `code`). Give this or `custom_image_id`.","example":"ubuntu-24-04"},"custom_image_id":{"type":"string","description":"One of your custom images instead of a catalog one.","format":"uuid"},"password":{"type":"string","description":"New root/Administrator password. Letters, digits and !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ only. Left out, the instance keeps its current one."},"ssh_key_ids":{"description":"SSH keys of your account for root (Linux catalog images). Replaces the keys the instance had; left out, it keeps them; an empty list removes them.","type":"array","items":{"type":"string"}},"user_data":{"type":"string","maxLength":16384,"description":"User data for the first boot after the reinstall (`#cloud-config` or a `#!` script). Replaces what the instance had; left out, it keeps it; empty removes it."},"app_inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Answers to the image's setup questions (`GET /v1/catalog/images` → `inputs`)."}}},"ResetPasswordV1Dto":{"type":"object","properties":{"username":{"type":"string","description":"The account to reset. Defaults to `root` (Linux) or `Administrator` (Windows).","example":"root"},"password":{"type":"string","description":"The new password (8+ characters; letters, digits and !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~). Left out, a strong one is generated and returned once."}}},"PasswordResetV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"password_reset"},"instance_id":{"type":"string"},"username":{"type":"string","example":"root"},"password":{"type":"string","nullable":true,"description":"The generated password — only when you did not send one. Shown once; never stored in the clear."}},"required":["object","instance_id","username"]},"InstanceMetricsPointV1Dto":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"cpu_pct":{"type":"number","nullable":true,"description":"CPU use, 0–100."},"mem_bytes":{"type":"number","nullable":true},"mem_max_bytes":{"type":"number","nullable":true},"disk_read_bps":{"type":"number","nullable":true},"disk_write_bps":{"type":"number","nullable":true},"net_in_bps":{"type":"number","nullable":true},"net_out_bps":{"type":"number","nullable":true}},"required":["time"]},"InstanceMetricsV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"instance_metrics"},"instance_id":{"type":"string"},"timeframe":{"type":"string","enum":["hour","day","week","month","year"]},"points":{"type":"array","items":{"$ref":"#/components/schemas/InstanceMetricsPointV1Dto"}}},"required":["object","instance_id","timeframe","points"]},"InstanceBandwidthPointV1Dto":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"inbound_bytes":{"type":"number"},"outbound_bytes":{"type":"number"}},"required":["time","inbound_bytes","outbound_bytes"]},"InstanceBandwidthCycleV1Dto":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"included_gb":{"type":"number","description":"Public outbound transfer the plan includes in this window, in GB."},"public_outbound_bytes":{"type":"number","description":"Public outbound bytes transferred in this window."}},"required":["starts_at","ends_at","included_gb","public_outbound_bytes"]},"InstanceBandwidthV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"instance_bandwidth"},"instance_id":{"type":"string"},"period":{"type":"string","enum":["current_cycle","day","week","month","year"]},"bucket":{"type":"string","enum":["hour","day","month"]},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"series":{"type":"array","items":{"$ref":"#/components/schemas/InstanceBandwidthPointV1Dto"}},"total_inbound_bytes":{"type":"number"},"total_outbound_bytes":{"type":"number"},"cycle":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/InstanceBandwidthCycleV1Dto"}]}},"required":["object","instance_id","period","bucket","starts_at","ends_at","series","total_inbound_bytes","total_outbound_bytes"]},"SnapshotV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"snapshot"},"id":{"type":"string","format":"uuid"},"instance_id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"include_ram":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time","description":"Snapshots expire 30 days after they are taken."}},"required":["object","id","instance_id","name","include_ram","created_at","expires_at"]},"SnapshotListV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SnapshotV1Dto"}},"max_snapshots":{"type":"number"},"remaining":{"type":"number"}},"required":["object","data","max_snapshots","remaining"]},"CreateSnapshotV1Dto":{"type":"object","properties":{"name":{"type":"string","description":"Letters, digits, `-` and `_`; unique per instance.","example":"before-upgrade"},"description":{"type":"string","maxLength":255},"include_ram":{"type":"boolean","description":"Include the memory: restores to the running state.","default":false}},"required":["name"]},"ReverseDnsV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"reverse_dns"},"ip":{"type":"string","example":"203.0.113.10"},"version":{"type":"number","enum":[4,6]},"hostname":{"type":"string","nullable":true,"example":"mail.example.com","description":"The PTR this address answers with."},"default_hostname":{"type":"string","description":"What a reset puts back."},"instance_id":{"type":"string"},"editable":{"type":"boolean","description":"Whether the PTR may be changed now (a new address may have to be held a few days first)."},"editable_at":{"type":"string","nullable":true,"format":"date-time","description":"When it becomes editable, when it is not yet."}},"required":["object","ip","version","default_hostname","instance_id","editable"]},"ReverseDnsListV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ReverseDnsV1Dto"}}},"required":["object","data"]},"SetReverseDnsV1Dto":{"type":"object","properties":{"hostname":{"type":"string","example":"mail.example.com","description":"The fully-qualified hostname. It must resolve to this address (forward-confirmed reverse DNS), or mail servers would distrust it anyway; otherwise a 400 says so."}},"required":["hostname"]},"BackupV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"backup"},"id":{"type":"string"},"instance_id":{"type":"string"},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","instance_id"]},"BackupListV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"description":"Completed backups, newest first.","type":"array","items":{"$ref":"#/components/schemas/BackupV1Dto"}},"eligible":{"type":"boolean","description":"Whether the instance can be backed up now (it needs the backup add-on)."},"reason":{"type":"string","nullable":true,"description":"Why not, when it cannot."},"slots":{"type":"number","description":"Backups the add-on keeps."},"available_slots":{"type":"number"},"running":{"type":"boolean","description":"A backup is running now."}},"required":["object","data","eligible","slots","available_slots","running"]},"BackupScheduleV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"backup_schedule"},"id":{"type":"string"},"instance_id":{"type":"string"},"days":{"type":"array","example":["mon","thu"],"items":{"type":"string","enum":["sun","mon","tue","wed","thu","fri","sat"]}},"time":{"type":"string","example":"03:30","description":"Time of day, in `timezone` (UTC when null)."},"timezone":{"type":"string","nullable":true,"example":"America/Sao_Paulo"},"last_run_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","instance_id","days","time"]},"SetBackupScheduleV1Dto":{"type":"object","properties":{"days":{"type":"array","example":["mon","thu"],"items":{"type":"string","enum":["sun","mon","tue","wed","thu","fri","sat"]}},"time":{"type":"string","example":"03:30","description":"HH:MM (24h)."},"timezone":{"type":"string","example":"America/Sao_Paulo","description":"IANA time zone; UTC when left out."}},"required":["days","time"]},"ResizeCurrentV1Dto":{"type":"object","properties":{"offering_code":{"type":"string","example":"c2m4"},"offering_on_sale":{"type":"boolean","description":"False for a plan no longer sold: it can be kept, not picked again."},"vcpu":{"type":"number"},"ram_mb":{"type":"number"},"main_disk_gb":{"type":"number"},"extra_ipv4":{"type":"number"},"extra_ipv6":{"type":"number"},"hourly_rate_micro_cents":{"type":"string","example":"1369863"},"rate_is_grandfathered":{"type":"boolean","description":"The contracted rate differs from today’s price list; a plan change re-quotes at the list."}},"required":["offering_code","offering_on_sale","vcpu","ram_mb","main_disk_gb","extra_ipv4","extra_ipv6","hourly_rate_micro_cents","rate_is_grandfathered"]},"ResizeCapabilitiesV1Dto":{"type":"object","properties":{"addons":{"type":"boolean","description":"Add-ons can be changed."},"extra_ips":{"type":"boolean","description":"Public addresses can be added or released."},"storage":{"type":"boolean","description":"The main disk can grow and extra disks can change."}},"required":["addons","extra_ips","storage"]},"ResizeOfferingV1Dto":{"type":"object","properties":{"code":{"type":"string","example":"c4m8"},"name":{"type":"string"},"vcpu":{"type":"number"},"ram_mb":{"type":"number"},"main_disk_base_gb":{"type":"number"},"included_ipv4":{"type":"number"},"included_ipv6":{"type":"number"},"hourly_rate_micro_cents":{"type":"string","example":"2739726"},"current":{"type":"boolean"}},"required":["code","name","vcpu","ram_mb","main_disk_base_gb","included_ipv4","included_ipv6","hourly_rate_micro_cents","current"]},"ResizeAddonOptionV1Dto":{"type":"object","properties":{"code":{"type":"string","example":"backup-slot"},"name":{"type":"string"},"type":{"type":"string","example":"backup"},"current_quantity":{"type":"number"},"min_quantity":{"type":"number"},"max_quantity":{"type":"number","nullable":true},"quantity_step":{"type":"number"},"quantity_follows_vcpu":{"type":"boolean","description":"Its quantity is the plan’s vCPU count (a per-vCPU licence): on or off, never a number."},"removable":{"type":"boolean","description":"False when it may only be raised, never lowered or removed."},"hourly_rate_micro_cents":{"type":"string"}},"required":["code","name","type","current_quantity","min_quantity","max_quantity","quantity_step","quantity_follows_vcpu","removable","hourly_rate_micro_cents"]},"ResizeIpAssignmentV1Dto":{"type":"object","properties":{"assignment_id":{"type":"string"},"version":{"type":"number","enum":[4,6]},"address":{"type":"string","nullable":true},"primary":{"type":"boolean"},"assigned_at":{"type":"string","nullable":true,"format":"date-time","description":"When it was assigned: newest last."}},"required":["assignment_id","version","address","primary","assigned_at"]},"ResizeDiskV1Dto":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"]},"ResizeLimitsV1Dto":{"type":"object","properties":{"max_ipv4":{"type":"number"},"max_ipv6":{"type":"number"},"can_add_ipv4":{"type":"boolean","description":"At least one more IPv4 can be added on this instance’s host."},"can_add_ipv6":{"type":"boolean"}},"required":["max_ipv4","max_ipv6","can_add_ipv4","can_add_ipv6"]},"ResizeOptionsV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"resize_options"},"instance_id":{"type":"string"},"resizable":{"type":"boolean","description":"False when this instance cannot be resized now; `reason` says why."},"reason":{"type":"string","nullable":true},"commitment_type":{"type":"string","enum":["ON_DEMAND","COMMITTED"]},"term":{"type":"string","nullable":true},"cycle_ends_at":{"type":"string","nullable":true,"format":"date-time"},"current":{"$ref":"#/components/schemas/ResizeCurrentV1Dto"},"capabilities":{"$ref":"#/components/schemas/ResizeCapabilitiesV1Dto"},"offerings":{"type":"array","items":{"$ref":"#/components/schemas/ResizeOfferingV1Dto"}},"addons":{"type":"array","items":{"$ref":"#/components/schemas/ResizeAddonOptionV1Dto"}},"ip_assignments":{"type":"array","items":{"$ref":"#/components/schemas/ResizeIpAssignmentV1Dto"}},"extra_disks":{"type":"array","items":{"$ref":"#/components/schemas/ResizeDiskV1Dto"}},"limits":{"$ref":"#/components/schemas/ResizeLimitsV1Dto"},"currency":{"type":"string","example":"BRL"}},"required":["object","instance_id","resizable","reason","commitment_type","term","cycle_ends_at","current","capabilities","offerings","addons","ip_assignments","extra_disks","limits","currency"]},"ResizeRemovedV1Dto":{"type":"object","properties":{"type":{"type":"string","enum":["ipv4","ipv6","extra_disk"]},"label":{"type":"string"},"warning":{"type":"string"}},"required":["type","label","warning"]},"ResizeNoticeV1Dto":{"type":"object","properties":{"code":{"type":"string","description":"Stable identifier."},"message":{"type":"string","description":"English sentence."}},"required":["code","message"]},"ResizeQuoteV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"resize_quote"},"instance_id":{"type":"string"},"subscription_id":{"type":"string","nullable":true,"description":"The subscription it is billed on: top up there when `shortfall_cents` is set."},"has_changes":{"type":"boolean","description":"False when the target is the configuration it already has."},"can_apply":{"type":"boolean","description":"True when it can be applied now: no violations and enough balance."},"current_hourly_rate_micro_cents":{"type":"string"},"new_hourly_rate_micro_cents":{"type":"string"},"new_cycle_cents":{"type":"string","nullable":true,"description":"The new price per cycle, on a commitment."},"charge_now_cents":{"type":"string","description":"Charged now, for the rest of the cycle (0 when it costs less or on demand)."},"credit_cents":{"type":"string","description":"Credit a downgrade on a commitment gives back for the rest of the cycle."},"shortfall_cents":{"type":"string","nullable":true,"description":"What to top up before applying."},"requires_restart":{"type":"boolean","description":"Applying powers it off and on again (CPU, memory or disk change)."},"removes":{"description":"Addresses and disks the change removes.","type":"array","items":{"$ref":"#/components/schemas/ResizeRemovedV1Dto"}},"violations":{"description":"Why it cannot be applied as asked.","type":"array","items":{"$ref":"#/components/schemas/ResizeNoticeV1Dto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ResizeNoticeV1Dto"}},"currency":{"type":"string","example":"BRL"}},"required":["object","instance_id","subscription_id","has_changes","can_apply","current_hourly_rate_micro_cents","new_hourly_rate_micro_cents","new_cycle_cents","charge_now_cents","credit_cents","shortfall_cents","requires_restart","removes","violations","warnings","currency"]},"ResizePlannedV1Dto":{"type":"object","properties":{"requires_restart":{"type":"boolean"},"main_disk_grow_gb":{"type":"number","description":"GB the main disk grows; grow the partition inside the guest afterwards."},"disks_added":{"type":"number"},"disks_removed":{"type":"number"},"ipv4_added":{"type":"number"},"ipv4_removed":{"type":"number"},"ipv6_added":{"type":"number"},"ipv6_removed":{"type":"number"},"reboot_required":{"type":"boolean","description":"Reboot (or renew DHCP) for the guest to pick up a changed main IPv4."}},"required":["requires_restart","main_disk_grow_gb","disks_added","disks_removed","ipv4_added","ipv4_removed","ipv6_added","ipv6_removed","reboot_required"]},"ResizeAcceptedV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"operation_accepted"},"action":{"type":"string","example":"reinstall","description":"What was accepted: reinstall, resize, backup, backup_restore, snapshot_restore, vpc_attach, vpc_detach."},"resource_type":{"type":"string","enum":["instance","snapshot","backup","vpc"]},"resource_id":{"type":"string"},"instance_id":{"type":"string","description":"The instance the work acts on — the one to poll (`GET /v1/instances/{id}/status`) when there is no operation."},"operation_id":{"type":"string","nullable":true,"description":"Poll `GET /v1/operations/{id}` until a terminal status. Null when the work is not tracked as an operation: poll the resource instead."},"new_hourly_rate_micro_cents":{"type":"string","nullable":true},"credit_cents":{"type":"string","description":"Credit a downgrade on a commitment gave back."},"planned":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ResizePlannedV1Dto"}]}},"required":["object","action","resource_type","resource_id","instance_id","new_hourly_rate_micro_cents","credit_cents","planned"]},"RemovalCreditV1Dto":{"type":"object","properties":{"amount_cents":{"type":"string","description":"Credit returned to the subscription."},"expires_at":{"type":"string","nullable":true,"format":"date-time","description":"When unspent credit expires."},"none_reason":{"type":"string","nullable":true,"enum":["cap_reached","cycle_ended","unfunded","trial"],"description":"Why nothing comes back; null when credit does."}},"required":["amount_cents","expires_at","none_reason"]},"RemovalPreviewV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"removal_preview"},"instance_id":{"type":"string"},"summary":{"type":"string","description":"One sentence a person can read before confirming."},"billing":{"type":"string","enum":["committed","on_demand","unbilled"]},"subscription_id":{"type":"string","nullable":true},"hourly_rate_micro_cents":{"type":"string","nullable":true},"credit":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/RemovalCreditV1Dto"}]},"usable_after_cents":{"type":"string","nullable":true,"description":"Usable balance once it is gone."},"last_service":{"type":"boolean","description":"The last service on its subscription: the subscription is parked, its balance kept."},"blockers":{"description":"Why deleting would be refused now (`pending_move`, `pending_transfer`, `pending_conversion`).","type":"array","items":{"type":"string"}},"currency":{"type":"string","example":"BRL"}},"required":["object","instance_id","summary","billing","subscription_id","hourly_rate_micro_cents","credit","usable_after_cents","last_service","blockers","currency"]},"ResizeExtraDiskV1Dto":{"type":"object","properties":{"size_gb":{"type":"number","description":"Disk size in GB (a multiple of the disk add-on step).","example":100}},"required":["size_gb"]},"ResizeAddonV1Dto":{"type":"object","properties":{"code":{"type":"string","description":"Add-on code (`GET /v1/instances/{id}/resize-options` → `addons[].code`).","example":"backup-slot"},"quantity":{"type":"number","description":"The quantity it should have; 0 removes it where it may be removed.","example":2}},"required":["code","quantity"]},"ResizeInstanceV1Dto":{"type":"object","properties":{"offering_code":{"type":"string","description":"The plan (`offerings[].code` in resize-options). Send the current one to change only disks, addresses or add-ons.","example":"c4m8"},"main_disk_extra_gb":{"type":"number","description":"GB on the main disk beyond the plan base. The main disk only grows: the result must not be smaller than today.","example":50},"extra_disks":{"description":"**The full set of extra data disks it should have.** Leave it out to keep the disks as they are; a disk it has today and the list leaves out is removed, with its data.","type":"array","items":{"$ref":"#/components/schemas/ResizeExtraDiskV1Dto"}},"addons":{"description":"Add-ons to set; those left out stay as they are.","type":"array","items":{"$ref":"#/components/schemas/ResizeAddonV1Dto"}},"ipv4_add_count":{"type":"number","description":"New public IPv4 addresses to add.","example":0},"ipv4_remove_assignment_ids":{"description":"IPv4 addresses to release, by `ip_assignments[].assignment_id`. Released addresses are gone for good.","type":"array","items":{"type":"string"}},"ipv4_primary_assignment_id":{"type":"string","description":"The kept IPv4 that becomes the main address."},"ipv6_add_count":{"type":"number","description":"New public IPv6 addresses to add.","example":0},"ipv6_remove_assignment_ids":{"description":"IPv6 addresses to release, by assignment id.","type":"array","items":{"type":"string"}}},"required":["offering_code"]},"CustomImageRegionV1Dto":{"type":"object","properties":{"region_id":{"type":"string","nullable":true},"state":{"type":"string","enum":["absent","copying","verifying","ready","failed"]}},"required":["state"]},"CustomImageV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"custom_image"},"id":{"type":"string"},"name":{"type":"string"},"filename":{"type":"string","description":"The file it was uploaded as."},"kind":{"type":"string","enum":["disk_image","iso"]},"status":{"type":"string","example":"ready"},"size_bytes":{"type":"string","nullable":true,"description":"Bytes stored; null while uploading."},"virtual_size_bytes":{"type":"string","nullable":true,"description":"What the instance’s disk sees, in bytes (disk images)."},"min_disk_gb":{"type":"number","nullable":true,"description":"The smallest plan disk it fits on, in GB."},"format":{"type":"string","nullable":true,"example":"qcow2"},"sha256":{"type":"string","nullable":true},"requires_efi":{"type":"boolean"},"requires_tpm":{"type":"boolean"},"has_cloud_init":{"type":"boolean","description":"It runs cloud-init, so SSH keys, user data and the password reach it."},"default_username":{"type":"string","nullable":true},"expires_at":{"type":"string","nullable":true,"format":"date-time","description":"When it is removed unless renewed."},"failure_reason":{"type":"string","nullable":true},"progress":{"type":"number","nullable":true,"description":"Upload or processing progress, 0–100."},"instance_count":{"type":"number","description":"Instances built from it."},"regions":{"description":"Where it is ready to build from.","type":"array","items":{"$ref":"#/components/schemas/CustomImageRegionV1Dto"}},"created_at":{"type":"string","format":"date-time"}},"required":["object","id","name","filename","kind","status","requires_efi","requires_tpm","has_cloud_init","instance_count","regions","created_at"]},"CustomImageListV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomImageV1Dto"}}},"required":["object","data"]},"CustomImagePartV1Dto":{"type":"object","properties":{"part_number":{"type":"number","description":"1-based."},"url":{"type":"string","description":"PUT the part’s bytes here, as they are; no headers needed."}},"required":["part_number","url"]},"CustomImageUploadV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"custom_image_upload"},"image_id":{"type":"string"},"part_size_bytes":{"type":"number","description":"Every part is this size except the last."},"part_count":{"type":"number"},"uploaded_bytes":{"type":"number","description":"Bytes the store already holds (resuming)."},"parts":{"description":"The parts still to upload, each with its own presigned URL.","type":"array","items":{"$ref":"#/components/schemas/CustomImagePartV1Dto"}}},"required":["object","image_id","part_size_bytes","part_count","uploaded_bytes","parts"]},"CustomImageQuotaV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"custom_image_quota"},"images":{"type":"number"},"max_images":{"type":"number"},"total_bytes":{"type":"string"},"max_total_bytes":{"type":"string"},"max_file_bytes":{"type":"string"},"retention_days":{"type":"number","description":"Days an image is kept unless renewed."},"uploads_enabled":{"type":"boolean"},"accepted_extensions":{"example":[".qcow2",".img",".raw",".vmdk",".iso"],"type":"array","items":{"type":"string"}}},"required":["object","images","max_images","total_bytes","max_total_bytes","max_file_bytes","retention_days","uploads_enabled","accepted_extensions"]},"StartCustomImageUploadV1Dto":{"type":"object","properties":{"filename":{"type":"string","description":"The file’s name, with its extension (it says the format).","example":"debian-12.qcow2"},"size_bytes":{"type":"number","description":"Its exact size in bytes.","example":2147483648},"name":{"type":"string","description":"What to call it (default: the file name)."}},"required":["filename","size_bytes"]},"CustomImageImportV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"operation_accepted"},"action":{"type":"string","example":"image_import"},"resource_type":{"type":"string","example":"custom_image"},"resource_id":{"type":"string"},"operation_id":{"type":"string","nullable":true,"description":"Poll `GET /v1/operations/{id}`, or the image’s `status`."}},"required":["object","action","resource_type","resource_id"]},"UpdateCustomImageV1Dto":{"type":"object","properties":{"name":{"type":"string"},"default_username":{"type":"string","nullable":true},"has_cloud_init":{"type":"boolean"},"requires_efi":{"type":"boolean"},"requires_tpm":{"type":"boolean"}}},"ActivityActorV1Dto":{"type":"object","properties":{"kind":{"type":"string","enum":["CONSOLE","API_TOKEN","MCP","SUPPORT","SYSTEM","SUPPORT_BOT"],"description":"Who acted: a person in the console, an API token, an AI assistant, support, the platform."},"label":{"type":"string","example":"ana@example.com"}},"required":["kind","label"]},"ActivityTargetV1Dto":{"type":"object","properties":{"type":{"type":"string","nullable":true,"example":"instance"},"id":{"type":"string","nullable":true},"label":{"type":"string","nullable":true}}},"ActivityEntryV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"activity"},"id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"action":{"type":"string","example":"instance.power.reboot","description":"Stable action key."},"category":{"type":"string","example":"instance"},"significant":{"type":"boolean","description":"One a person would want to know about (a deletion, a new token)."},"actor":{"$ref":"#/components/schemas/ActivityActorV1Dto"},"ip":{"type":"string","nullable":true},"user_agent":{"type":"string","nullable":true},"target":{"$ref":"#/components/schemas/ActivityTargetV1Dto"},"outcome":{"type":"string","enum":["success","failure","denied"]},"status_code":{"type":"number","nullable":true},"error_message":{"type":"string","nullable":true},"request_id":{"type":"string","nullable":true}},"required":["object","id","created_at","action","category","significant","actor","target","outcome"]},"CloneDiskChangesV1Dto":{"type":"object","properties":{"main_disk_before_gb":{"type":"number"},"main_disk_after_gb":{"type":"number"},"extra_disks_before_gb":{"description":"The destination’s data disks that are destroyed.","type":"array","items":{"type":"number"}},"extra_disks_after_gb":{"description":"The data disks it has afterwards (the origin’s).","type":"array","items":{"type":"number"}}},"required":["main_disk_before_gb","main_disk_after_gb","extra_disks_before_gb","extra_disks_after_gb"]},"CloneBillingV1Dto":{"type":"object","properties":{"commitment_type":{"type":"string","enum":["COMMITTED","ON_DEMAND"]},"subscription_id":{"type":"string"},"current_hourly_rate_micro_cents":{"type":"string"},"new_hourly_rate_micro_cents":{"type":"string"},"charge_now_cents":{"type":"string","description":"Charged now for the rest of the cycle (0 when it costs less or on demand)."},"credit_cents":{"type":"string"},"shortfall_cents":{"type":"string","nullable":true,"description":"What to top up first."}},"required":["commitment_type","subscription_id","current_hourly_rate_micro_cents","new_hourly_rate_micro_cents","charge_now_cents","credit_cents"]},"CloneViolationV1Dto":{"type":"object","properties":{"code":{"type":"string","example":"os_min_ram_mb"},"message":{"type":"string"}},"required":["code","message"]},"CloneCheckV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"clone_check"},"origin_instance_id":{"type":"string"},"destination_instance_id":{"type":"string"},"can_clone":{"type":"boolean","description":"It can be cloned now, as asked."},"reason":{"type":"string","nullable":true},"origin_disk_gb":{"type":"number","nullable":true},"destination_disk_gb":{"type":"number","nullable":true},"disk_changes":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CloneDiskChangesV1Dto"}]},"billing":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CloneBillingV1Dto"}]},"warnings":{"type":"array","items":{"type":"string"}},"violations":{"type":"array","items":{"$ref":"#/components/schemas/CloneViolationV1Dto"}}},"required":["object","origin_instance_id","destination_instance_id","can_clone","warnings","violations"]},"CloneInstanceV1Dto":{"type":"object","properties":{"destination_instance_id":{"type":"string","description":"The instance to copy onto. **Its disks are replaced by this instance’s**; its addresses and plan stay.","example":"1235"},"source":{"type":"string","enum":["current","backup"],"description":"`current`: as it is now. `backup`: one of its backups."},"backup_id":{"type":"string","description":"With `source: backup`: which (`GET /v1/instances/{id}/backups`)."},"confirm":{"type":"string","description":"To clone (not to check): the destination’s id again — the machine-readable form of typing its name to confirm."}},"required":["destination_instance_id","source"]},"IsoAttachmentV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"iso_attachment"},"instance_id":{"type":"string"},"attached":{"type":"boolean","description":"An ISO is in the instance’s CD-ROM drive."},"image_id":{"type":"string","nullable":true},"image_name":{"type":"string","nullable":true},"attached_at":{"type":"string","nullable":true,"format":"date-time"},"ejects_at":{"type":"string","nullable":true,"format":"date-time","description":"When it is ejected on its own, so a forgotten ISO does not boot again."}},"required":["object","instance_id","attached"]},"AttachIsoV1Dto":{"type":"object","properties":{"image_id":{"type":"string","format":"uuid","description":"One of your ISOs (`GET /v1/images?kind=iso`), ready."}},"required":["image_id"]},"OrderImageDto":{"type":"object","properties":{"type":{"type":"string","enum":["template","byo_iso","client_image"],"description":"What to install: a catalog image, one of your own uploaded disk images, or nothing (`byo_iso` provisions a blank instance you install yourself)."},"code":{"type":"string","description":"Image code from GET /v1/catalog/images. Required when type is `template`.","example":"ubuntu-24-04"},"image_id":{"type":"string","description":"Id of one of your own images. Required when type is `client_image`. The image must belong to the authenticated account and be `ready`.","example":"0191e2f3-a4b5-7c8d-9e0f-1a2b3c4d5e6f"}},"required":["type"]},"OrderExtraDiskDto":{"type":"object","properties":{"size_gb":{"type":"number","description":"Disk size in GB. Snapped to the catalog step server-side.","example":200}},"required":["size_gb"]},"OrderAddonDto":{"type":"object","properties":{"code":{"type":"string","description":"Addon code from GET /v1/catalog/addons.","example":"backup-slot"},"quantity":{"type":"number","description":"Defaults to the addon minimum.","example":2}},"required":["code"]},"SimulatePriceV1Dto":{"type":"object","properties":{"offering_code":{"type":"string","example":"c4m8"},"term":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMI_ANNUAL","ANNUAL","ON_DEMAND"]},"image":{"$ref":"#/components/schemas/OrderImageDto"},"main_disk_extra_gb":{"type":"number","example":50},"extra_disks":{"type":"array","items":{"$ref":"#/components/schemas/OrderExtraDiskDto"}},"addons":{"type":"array","items":{"$ref":"#/components/schemas/OrderAddonDto"}},"region_id":{"type":"number","description":"Region id — some configurations are region-dependent."}},"required":["offering_code","term","image"]},"QuoteViolationDto":{"type":"object","properties":{"kind":{"type":"string","enum":["min_disk_gb","min_ram_mb","min_vcpu"],"description":"Which image minimum is unmet."},"required":{"type":"number","description":"What the image requires.","example":40},"actual":{"type":"number","description":"What the configuration provides.","example":20},"remedy":{"type":"string","enum":["increase_disk","choose_larger_plan"],"description":"How to resolve it."}},"required":["kind","required","actual","remedy"]},"QuoteLineItemDto":{"type":"object","properties":{"label":{"type":"string","description":"What this line charges for.","example":"Plan c4m8"},"kind":{"type":"string","enum":["compute","main_disk_expansion","extra_disk","extra_ipv4","extra_ipv6","addon"]},"quantity":{"type":"number","example":1},"unit_rate_micro_cents_per_hour":{"type":"string","description":"Rate for ONE unit of this line, in micro-cents per hour.","example":"1388888"},"rate_micro_cents_per_hour":{"type":"string","description":"Rate for the whole line (unit rate × billable quantity), in micro-cents per hour.","example":"1388888"},"cycle_cents":{"type":"string","nullable":true,"description":"What this line costs for the whole term, in cents. Null on on-demand."},"free_quantity_applied":{"type":"number","nullable":true,"description":"How many units were covered by the offering's free allowance. Explains a line that prices at zero."},"rejected_reason":{"type":"string","nullable":true,"description":"Set when the item was dropped rather than priced — e.g. a Windows licence on a Linux image."}},"required":["label","kind","quantity","unit_rate_micro_cents_per_hour","rate_micro_cents_per_hour"]},"QuoteDto":{"type":"object","properties":{"object":{"type":"string","example":"quote"},"offering_code":{"type":"string","example":"c4m8"},"term":{"type":"string","example":"MONTHLY"},"purchasable":{"type":"boolean","description":"False when the configuration breaks an image minimum. Ordering it returns 400 — check `violations`."},"violations":{"type":"array","items":{"$ref":"#/components/schemas/QuoteViolationDto"}},"hourly_rate_micro_cents":{"type":"string","description":"Combined hourly rate in micro-cents (1 cent = 10,000 micro-cents).","example":"1388888"},"term_total_cents":{"type":"string","nullable":true,"description":"What a full term costs, in cents. Null for on-demand, which is billed hourly.","example":"9900"},"currency":{"type":"string","example":"BRL"},"effective":{"type":"object","description":"Resources the configured instance will have."},"line_items":{"type":"array","items":{"$ref":"#/components/schemas/QuoteLineItemDto"}},"warnings":{"description":"Non-fatal notes about the configuration.","type":"array","items":{"type":"string"}}},"required":["object","offering_code","term","purchasable","violations","hourly_rate_micro_cents","currency","effective","line_items","warnings"]},"OrderNetworkingDto":{"type":"object","properties":{"mode":{"type":"string","enum":["public","private"],"description":"`public` assigns public addresses directly. `private` gives the instance no public IP and requires `vpc_id`."},"vpc_id":{"type":"number","description":"VPC to attach to. Required when mode is `private`."}},"required":["mode"]},"CreateOrderV1Dto":{"type":"object","properties":{"trial_code":{"type":"string","description":"Redeem a single-use trial offer. Excludes payment, subscription, coupon and initial credit options."},"payment":{"type":"string","enum":["auto","balance","invoice"],"default":"auto","description":"How to fund the order.\n\nNew subscriptions always require an invoice: a committed subscription bills its first term; an ON_DEMAND subscription collects initial prepaid credit (`initial_credit_cents`) and meters usage hourly against that credit.\n\nWhen adding to an existing subscription:\n\n- `auto` — draw from the subscription balance when it covers the cost (the prorata to the end of the current cycle); otherwise raise an invoice for the prorata MINUS the balance (`payment.balance_applied_cents`), drawn when the invoice is paid. The invoice is never below the subscription's minimum recharge: the difference (`payment.minimum_recharge_credit_cents`) stays as available credit.\n- `balance` — **never** raise an invoice. If the balance is short you get 402 with the shortfall and nothing is created. Requires `subscription_id`. Use this for unattended automation; a top-up must be at least the minimum recharge (public `GET /billing/catalog` → `recharge_minimums`).\n- `invoice` — always raise an invoice for the prorata, without touching the balance (never below the minimum recharge either).\n\nThe two balance-drawing modes spend **temporary credit first**, then available credit. That matters for `invoice`: temporary credit expires at the end of the billing cycle, and an order funded by invoice does not touch it — so an integration that always sends `invoice` can watch credit it was given (for example from removing an instance mid-cycle) expire unused. `GET /v1/subscriptions/{id}/balance` reports the two separately."},"subscription_id":{"type":"string","description":"Add to this existing subscription. Omit to start a new committed or ON_DEMAND subscription. New subscriptions invoice the first committed term or the initial prepaid credit, respectively."},"initial_credit_cents":{"type":"string","description":"Initial prepaid credit in cents, as a positive integer string. Only valid for a NEW ON_DEMAND subscription. Defaults to public GET /billing/catalog → recharge_minimums.on_demand_initial_cents (the applicable platform/tier minimum recharge); an explicit amount must meet that minimum. Once paid, the full amount becomes available credit and hourly usage draws it down.","example":"5000","maxLength":14,"pattern":"^[1-9][0-9]{0,13}$"},"region_id":{"type":"number","description":"Region id from GET /v1/regions.","example":3},"offering_code":{"type":"string","description":"Offering code from GET /v1/catalog/offerings.","example":"c4m8"},"term":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMI_ANNUAL","ANNUAL","ON_DEMAND"],"description":"Billing term. ON_DEMAND has no commitment or renewal cycle: recharge credit and use it until it runs out. Forced to the target subscription's term when `subscription_id` is given."},"image":{"$ref":"#/components/schemas/OrderImageDto"},"main_disk_extra_gb":{"type":"number","description":"Extra GB on the main disk beyond the offering base.","example":50},"extra_disks":{"type":"array","items":{"$ref":"#/components/schemas/OrderExtraDiskDto"}},"addons":{"type":"array","items":{"$ref":"#/components/schemas/OrderAddonDto"}},"networking":{"description":"Defaults to public connectivity.","allOf":[{"$ref":"#/components/schemas/OrderNetworkingDto"}]},"name":{"type":"string","description":"Display name for the instance.","maxLength":120},"password":{"type":"string","description":"Root/administrator password, for images where `supports_password` is true. Letters, digits and these symbols only: !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ (no spaces or accents). Never stored in cleartext and redacted from audit logs."},"coupon_code":{"type":"string","description":"Discount coupon. Only valid when starting a NEW committed subscription: it is bound to the service this order creates and discounts that service on every renewal. Not applicable to initial prepaid credit for ON_DEMAND."},"app_inputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"example":{"licence_key":"A1B2C3-D4E5F6-G7H8I9-J1K2L3-M4N5O6"},"description":"Answers to the image's setup questions, keyed by the field's `key` in `GET /v1/catalog/images` → `inputs` (a licence key, the edition, a game server token…). Only for `image.type = template`. A field marked `required` must be answered; one that can be given later may be left out and set on the instance afterwards. Refused answers come back as `validation_failed` with one entry per field in `errors` (`field` = `app_inputs.<key>`, plus a machine `code`). Never stored in the clear, redacted from audit logs, and a secret is never returned."},"ssh_key_ids":{"description":"SSH keys of your account (`GET /v1/ssh-keys`) that root accepts on the new instance. Linux catalog images only (`image.type = template`); at most 20.","type":"array","items":{"type":"string"}},"user_data":{"type":"string","maxLength":16384,"description":"User data for the first boot: a `#cloud-config` document or a `#!` script (up to 16 KiB), merged into the image's own cloud-init. Linux catalog images only. Settings the platform manages — the root password, the hostname, disk growth — are refused with `validation_failed` naming them. Never stored in the clear."},"project_id":{"type":"string","format":"uuid","description":"A project (`GET /v1/projects`) the new instance joins once it exists. Changes nothing about price or network."}},"required":["region_id","offering_code","term","image"]},"OrderPaymentDto":{"type":"object","properties":{"invoice_id":{"type":"string","description":"Invoice id in the billing provider."},"amount_cents":{"type":"string","example":"9900"},"currency":{"type":"string","example":"BRL"},"status":{"type":"string","nullable":true,"enum":["OPEN","PAID","CANCELLED","REFUNDED"],"description":"Invoice state. Poll this to know when provisioning will start."},"pay_url":{"type":"string","nullable":true,"description":"One-time link where the customer pays.\n\n**Returned only when the order is created.** It is a single-use, time-limited sign-in link, so it cannot be handed out again — `GET /v1/orders/{id}` returns null here. Capture it from the create response, or send the customer to the billing area of the console."},"due_at":{"type":"string","nullable":true,"format":"date-time"},"paid_at":{"type":"string","nullable":true,"format":"date-time"},"balance_applied_cents":{"type":"string","nullable":true,"example":"4968","description":"Subscription balance netted against this invoice, in cents — only on a full-term order onto an existing subscription whose balance was short of the cost. `amount_cents` is the term price minus this; the balance itself is drawn when the invoice is paid. Null when nothing was netted: a new subscription, `payment: \"invoice\"`, or no balance to apply."},"minimum_recharge_credit_cents":{"type":"string","nullable":true,"example":"1978","description":"What the minimum recharge added to `amount_cents` above the net charge (the prorata minus `balance_applied_cents`), in cents. Every recharge is at least the subscription's minimum (`GET /v1/catalog` → `recharge_minimums`), and this invoice is one; the addition is paid with the rest and stays on the subscription as available credit, which nets the next renewal. Null when the net charge already met the minimum."}},"required":["invoice_id","amount_cents","currency"]},"OrderDto":{"type":"object","properties":{"object":{"type":"string","example":"order"},"id":{"type":"string","nullable":true,"description":"Null when no order was created (insufficient balance)."},"status":{"type":"string","enum":["pending_payment","paid","provisioning","provisioned","failed","cancelled"],"description":"- `pending_payment` — an invoice was raised; provisioning starts when it is paid.\n- `paid` — payment seen, fulfilment about to run.\n- `provisioning` — resources are being created.\n- `provisioned` — done. `instance_ids` is populated.\n- `failed` — fulfilment failed after payment; support has been alerted and the money is not lost.\n- `cancelled` — the order expired unpaid, or was cancelled."},"subscription_id":{"type":"string","nullable":true},"instance_ids":{"description":"Instances created by this order. Empty until it is provisioned.","type":"array","items":{"type":"string"}},"payment":{"nullable":true,"description":"Present when payment is required.","type":"object","allOf":[{"$ref":"#/components/schemas/OrderPaymentDto"}]},"quote":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/QuoteDto"}]},"expires_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","status","instance_ids"]},"OperationDto":{"type":"object","properties":{"object":{"type":"string","example":"operation"},"id":{"type":"string"},"type":{"type":"string","description":"What kind of work this is, e.g. `vm_deploy`, `firewall_commit`.","example":"vm_deploy"},"status":{"type":"string","enum":["pending","in_progress","completed","failed","cancelled"],"description":"Terminal states are `completed`, `failed` and `cancelled`. Stop polling when you reach one."},"resource_type":{"type":"string","nullable":true,"enum":["instance","firewall","vpc","snapshot","backup","order","vpn_gateway"],"description":"What the operation acts on."},"resource_id":{"type":"string","nullable":true,"description":"Id of the resource acted on."},"progress":{"type":"number","nullable":true,"minimum":0,"maximum":100,"description":"Completion percentage, when the job reports one."},"error":{"type":"string","nullable":true,"description":"Why it failed, when it did. Safe to surface to your users — infrastructure detail is stripped."},"started_at":{"type":"string","nullable":true,"format":"date-time"},"completed_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["object","id","type","status","created_at"]},"TrialSubscriptionDto":{"type":"object","properties":{"offer_id":{"type":"string"},"trial_ends_at":{"type":"string","nullable":true},"converted_at":{"type":"string","nullable":true},"ended":{"type":"boolean"},"renewal_due_at":{"type":"string","nullable":true},"scheduled_switch_off_at":{"type":"string","nullable":true},"scheduled_deletion_at":{"type":"string","nullable":true}},"required":["offer_id","trial_ends_at","converted_at","ended","renewal_due_at","scheduled_switch_off_at","scheduled_deletion_at"]},"SubscriptionBalanceDto":{"type":"object","properties":{"object":{"type":"string","example":"balance"},"subscription_id":{"type":"string"},"available_cents":{"type":"string","description":"Free credit: recharges, top-ups and refunds. Funds new purchases.","example":"12500"},"committed_cents":{"type":"string","description":"Reserved for the current commitment cycle. Not spendable on new purchases.","example":"48000"},"temporary_cents":{"type":"string","description":"Credit from removed or downgraded committed resources. Spendable, but expires at the end of the cycle.","example":"0"},"debt_cents":{"type":"string","description":"Debt owed, as a positive number.","example":"0"},"usable_cents":{"type":"string","description":"What a balance-funded order can actually draw on. Compare it against an order quote before calling POST /v1/orders with `payment: \"balance\"` — it is computed exactly the way the order endpoint computes it, which differs by commitment type: `available + temporary` on a COMMITTED subscription (debt is not deducted there), `available + temporary − debt` on ON_DEMAND.","example":"12500"},"currency":{"type":"string","example":"BRL"}},"required":["object","subscription_id","available_cents","committed_cents","temporary_cents","debt_cents","usable_cents","currency"]},"SubscriptionDto":{"type":"object","properties":{"trial":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/TrialSubscriptionDto"}]},"object":{"type":"string","example":"subscription"},"id":{"type":"string","example":"018f3c2a-..."},"name":{"type":"string","nullable":true},"status":{"type":"string","description":"Lifecycle state.","example":"active","enum":["active","inactive","suspended","cancelled"]},"commitment_type":{"type":"string","description":"COMMITTED bills a fixed term up front; ON_DEMAND draws down a balance hourly.","enum":["COMMITTED","ON_DEMAND"]},"term":{"type":"string","nullable":true,"description":"Billing term, e.g. MONTHLY.","example":"MONTHLY"},"current_cycle_starts_at":{"type":"string","nullable":true,"format":"date-time"},"current_cycle_ends_at":{"type":"string","nullable":true,"format":"date-time","description":"When the current cycle closes and renewal is invoiced."},"balance":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/SubscriptionBalanceDto"}]},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["trial","object","id","status","commitment_type"]},"LedgerEntryDto":{"type":"object","properties":{"object":{"type":"string","example":"ledger_entry"},"id":{"type":"string"},"amount_cents":{"type":"string","description":"Signed amount in cents, negative when the entry consumed funds. **Rounded** — a single hourly usage entry is normally a fraction of a cent, so summing this field will not reconcile against the balance. Use `amount_micro_cents` for arithmetic and this one for display.","example":"-11"},"amount_micro_cents":{"type":"string","description":"Signed exact amount in micro-cents (1 cent = 10,000 micro-cents). This is the value the billing engine actually moved; the balance is the sum of these, so this is the field to reconcile with.","example":"-113705"},"is_credit":{"type":"boolean","description":"True when the entry added funds, false when it consumed them."},"bucket":{"type":"string","description":"Which balance bucket moved.","enum":["AVAILABLE","COMMITTED","TEMPORARY","NEGATIVE"]},"reason":{"type":"string","description":"Why the entry exists, e.g. METERING, RECHARGE, RENEWAL."},"reference_id":{"type":"string","nullable":true,"description":"What this entry refers to (an invoice, an order, a resource)."},"occurred_at":{"type":"string","format":"date-time"},"currency":{"type":"string","example":"BRL"}},"required":["object","id","amount_cents","amount_micro_cents","is_credit","bucket","reason","occurred_at","currency"]},"CreateTopUpV1Dto":{"type":"object","properties":{"amount_cents":{"type":"number","description":"How much credit to add, in cents. Subject to a per-plan minimum — a value below it is rejected with the minimum in the message.","example":5000,"minimum":1},"coupon_code":{"type":"string","description":"Optional promotional coupon."}},"required":["amount_cents"]},"TopUpDto":{"type":"object","properties":{"object":{"type":"string","example":"top_up"},"subscription_id":{"type":"string","description":"Subscription the credit will land on."},"invoice_id":{"type":"string","description":"Invoice raised for this top-up. Credit lands when it is paid, not now."},"amount_cents":{"type":"string","example":"5000"},"currency":{"type":"string","example":"BRL"},"pay_url":{"type":"string","nullable":true,"description":"Where the customer pays."},"due_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","subscription_id","invoice_id","amount_cents","currency"]},"InvoiceDto":{"type":"object","properties":{"object":{"type":"string","example":"invoice"},"id":{"type":"string"},"external_id":{"type":"string","nullable":true,"description":"Id of this invoice in the billing provider, for cross-referencing."},"amount_cents":{"type":"string","example":"4990"},"currency":{"type":"string","example":"BRL"},"status":{"type":"string","enum":["OPEN","PAID","CANCELLED","REFUNDED"]},"purpose":{"type":"string","nullable":true,"description":"Why the invoice was raised, e.g. CHECKOUT_NEW, RENEWAL, TOPUP, DEBT."},"overdue":{"type":"boolean","description":"True for an unpaid invoice past its due date."},"due_at":{"type":"string","nullable":true,"format":"date-time"},"paid_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","nullable":true,"format":"date-time"},"subscription_id":{"type":"string","nullable":true,"description":"Subscription this invoice belongs to."}},"required":["object","id","amount_cents","currency","status","overdue"]},"DnsZoneDto":{"type":"object","properties":{"object":{"type":"string","example":"dns_zone"},"id":{"type":"string"},"name":{"type":"string","example":"example.com"},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","name"]},"DnsRecordDto":{"type":"object","properties":{"object":{"type":"string","example":"dns_record"},"name":{"type":"string","description":"Fully-qualified record name as PowerDNS stores it.","example":"www.example.com."},"type":{"type":"string","example":"A"},"ttl":{"type":"number","example":3600},"values":{"description":"Every ENABLED value in the record set. An RRset can hold more than one.","example":["203.0.113.10"],"type":"array","items":{"type":"string"}},"disabled_values":{"description":"Values present but disabled — they exist in the zone and do NOT resolve. Surfaced rather than hidden, so a record that is not answering is visible instead of looking absent.","type":"array","items":{"type":"string"}}},"required":["object","name","type","ttl","values","disabled_values"]},"CreateDnsZoneV1Dto":{"type":"object","properties":{"name":{"type":"string","description":"Root domain to host, e.g. `example.com`. No scheme, no trailing dot.","example":"example.com"}},"required":["name"]},"UpsertDnsRecordV1Dto":{"type":"object","properties":{"name":{"type":"string","description":"Record name relative to the zone (`www`), or `@` for the apex. A fully-qualified name inside the zone is also accepted.","example":"www"},"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]},"content":{"type":"string","description":"Record value: an address for A/AAAA, a hostname for CNAME/NS, `<priority> <host>` for MX, the text for TXT.","example":"203.0.113.10"},"ttl":{"type":"number","default":3600,"minimum":60,"maximum":604800,"description":"Seconds resolvers may cache this record."},"comment":{"type":"string","description":"Free-text note stored alongside the record."}},"required":["name","type","content"]},"SetDnsRecordSetV1Dto":{"type":"object","properties":{"name":{"type":"string","description":"Record name relative to the zone (`www`), or `@` for the apex.","example":"www"},"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]},"records":{"minItems":1,"maxItems":100,"description":"Every value the record set holds afterwards — several for a round-robin A, several MX (`<priority> <host>`), each TXT. One for a CNAME.","example":["203.0.113.10","203.0.113.11"],"type":"array","items":{"type":"string"}},"ttl":{"type":"number","default":3600,"minimum":60,"maximum":604800},"comment":{"type":"string","description":"Free-text note stored alongside the record set."}},"required":["name","type","records"]},"DeleteDnsRecordV1Dto":{"type":"object","properties":{"name":{"type":"string","description":"Record name, relative to the zone or fully-qualified."},"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]}},"required":["name","type"]},"FirewallRuleDto":{"type":"object","properties":{"object":{"type":"string","example":"firewall_rule"},"id":{"type":"string"},"position":{"type":"number","description":"Evaluation order, lowest first."},"direction":{"type":"string","enum":["in","out"],"description":"Traffic direction the rule applies to."},"action":{"type":"string","enum":["ACCEPT","DROP","REJECT"]},"macro":{"type":"string","nullable":true,"description":"Named service preset, e.g. HTTP or SSH."},"protocol":{"type":"string","nullable":true,"example":"tcp"},"dest_port":{"type":"string","nullable":true,"description":"Destination port or range."},"source_port":{"type":"string","nullable":true,"description":"Source port or range."},"source":{"type":"string","nullable":true},"destination":{"type":"string","nullable":true},"enabled":{"type":"boolean"},"comment":{"type":"string","nullable":true}},"required":["object","id","position","direction","action","enabled"]},"FirewallDto":{"type":"object","properties":{"object":{"type":"string","example":"firewall"},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"enabled":{"type":"boolean"},"has_pending_changes":{"type":"boolean","description":"True when rules have been edited but not yet pushed to the hypervisor. Edits are staged and applied by an explicit commit."},"policy_in":{"type":"string","enum":["ACCEPT","DROP","REJECT"],"description":"Default for inbound traffic."},"policy_out":{"type":"string","enum":["ACCEPT","DROP","REJECT"],"description":"Default for outbound traffic."},"rules":{"type":"array","items":{"$ref":"#/components/schemas/FirewallRuleDto"}},"instance_ids":{"description":"Instances this firewall is attached to.","type":"array","items":{"type":"string"}},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","name","enabled","has_pending_changes","policy_in","policy_out","rules","instance_ids"]},"FirewallMacroDto":{"type":"object","properties":{"name":{"type":"string","example":"HTTPS"},"description":{"type":"string","example":"Secure web traffic (TCP 443)"}},"required":["name","description"]},"CreateFirewallV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"example":"web-tier"},"description":{"type":"string","maxLength":500}},"required":["name"]},"UpdateFirewallV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":255},"description":{"type":"string","maxLength":500},"enabled":{"type":"boolean","description":"Whether the firewall filters at all."},"policy_in":{"type":"string","enum":["ACCEPT","DROP","REJECT"],"description":"Default for inbound traffic that matches no rule."},"policy_out":{"type":"string","enum":["ACCEPT","DROP","REJECT"],"description":"Default for outbound traffic that matches no rule."}}},"CreateFirewallRuleV1Dto":{"type":"object","properties":{"direction":{"type":"string","enum":["in","out"],"description":"Traffic direction the rule matches."},"action":{"type":"string","enum":["ACCEPT","DROP","REJECT"]},"macro":{"type":"string","description":"Named service preset from GET /v1/firewalls/macros (HTTP, HTTPS, SSH …). Sets the protocol and ports for you; omit `protocol`/`dest_port` when using one.","example":"HTTPS"},"protocol":{"type":"string","example":"tcp","description":"Lower-case protocol name as in /etc/protocols. Only tcp, udp, sctp, dccp and udplite carry ports — note `rdp` here is IP protocol 27, not Remote Desktop.","enum":["tcp","udp","icmp","igmp","ggp","ipencap","st","egp","igp","pup","hmp","xns-idp","rdp","iso-tp4","dccp","xtp","ddp","idpr-cmtp","ipv6","ipv6-route","ipv6-frag","idrp","rsvp","gre","esp","ah","skip","ipv6-icmp","icmpv6","ipv6-nonxt","ipv6-opts","vmtp","eigrp","ospf","ax.25","ipip","etherip","encap","pim","ipcomp","vrrp","l2tp","isis","sctp","fc","mobility-header","udplite","mpls-in-ip","hip","shim6","wesp","rohc"]},"source":{"type":"string","description":"Source address, CIDR, `FROM-TO` range, or a comma-separated list of addresses and CIDRs. One address family per rule; a range cannot appear in a list.","example":"203.0.113.0/24","maxLength":512},"destination":{"type":"string","description":"Destination address, CIDR, `FROM-TO` range, or a comma-separated list. One address family per rule; a range cannot appear in a list.","maxLength":512},"source_port":{"type":"string","description":"Source port, colon range or comma-separated list, e.g. `1024:65535`. `FROM-TO` is accepted and stored as `FROM:TO`. Requires `protocol`; at most 15 entries, where a range counts as two."},"dest_port":{"type":"string","description":"Destination port, colon range or comma-separated list, e.g. `443` or `8000:8100`. `FROM-TO` is accepted and stored as `FROM:TO`. Requires `protocol`; at most 15 entries, where a range counts as two. On an ICMP protocol this carries the ICMP type instead (`echo-request`)."},"enabled":{"type":"boolean","default":true,"description":"A disabled rule is stored but not applied."},"comment":{"type":"string","maxLength":500}},"required":["direction","action"]},"UpdateFirewallRuleV1Dto":{"type":"object","properties":{"direction":{"type":"string","enum":["in","out"],"description":"Traffic direction the rule matches."},"action":{"type":"string","enum":["ACCEPT","DROP","REJECT"]},"macro":{"type":"string","description":"Named service preset from GET /v1/firewalls/macros (HTTP, HTTPS, SSH …). Sets the protocol and ports for you; omit `protocol`/`dest_port` when using one.","example":"HTTPS"},"protocol":{"type":"string","example":"tcp","description":"Lower-case protocol name as in /etc/protocols. Only tcp, udp, sctp, dccp and udplite carry ports — note `rdp` here is IP protocol 27, not Remote Desktop.","enum":["tcp","udp","icmp","igmp","ggp","ipencap","st","egp","igp","pup","hmp","xns-idp","rdp","iso-tp4","dccp","xtp","ddp","idpr-cmtp","ipv6","ipv6-route","ipv6-frag","idrp","rsvp","gre","esp","ah","skip","ipv6-icmp","icmpv6","ipv6-nonxt","ipv6-opts","vmtp","eigrp","ospf","ax.25","ipip","etherip","encap","pim","ipcomp","vrrp","l2tp","isis","sctp","fc","mobility-header","udplite","mpls-in-ip","hip","shim6","wesp","rohc"]},"source":{"type":"string","description":"Source address, CIDR, `FROM-TO` range, or a comma-separated list of addresses and CIDRs. One address family per rule; a range cannot appear in a list.","example":"203.0.113.0/24","maxLength":512},"destination":{"type":"string","description":"Destination address, CIDR, `FROM-TO` range, or a comma-separated list. One address family per rule; a range cannot appear in a list.","maxLength":512},"source_port":{"type":"string","description":"Source port, colon range or comma-separated list, e.g. `1024:65535`. `FROM-TO` is accepted and stored as `FROM:TO`. Requires `protocol`; at most 15 entries, where a range counts as two."},"dest_port":{"type":"string","description":"Destination port, colon range or comma-separated list, e.g. `443` or `8000:8100`. `FROM-TO` is accepted and stored as `FROM:TO`. Requires `protocol`; at most 15 entries, where a range counts as two. On an ICMP protocol this carries the ICMP type instead (`echo-request`)."},"enabled":{"type":"boolean","default":true,"description":"A disabled rule is stored but not applied."},"comment":{"type":"string","maxLength":500}}},"CommitFirewallV1Dto":{"type":"object","properties":{"instance_ids":{"description":"Instances this firewall should protect after the commit. This is the FULL set — an instance not listed is detached from the firewall.","example":["24377"],"type":"array","items":{"type":"string"}}},"required":["instance_ids"]},"FirewallCommitDto":{"type":"object","properties":{"object":{"type":"string","example":"firewall_commit"},"firewall_id":{"type":"string"},"operation_id":{"type":"string","description":"Poll this with GET /v1/operations/{id} until it reaches a terminal state."}},"required":["object","firewall_id","operation_id"]},"VpcMemberDto":{"type":"object","properties":{"instance_id":{"type":"string"},"private_ip":{"type":"string","nullable":true,"description":"Its address in the VPC; null until the private NIC is set up.","example":"10.200.0.10"},"status":{"type":"string","description":"The private NIC as last seen.","example":"online"}},"required":["instance_id","status"]},"VpcDto":{"type":"object","properties":{"object":{"type":"string","example":"vpc"},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"subnet":{"type":"string","nullable":true,"description":"Private subnet handed out inside this VPC.","example":"10.20.0.0/24"},"default":{"type":"boolean","description":"True for the account's default VPC."},"region_id":{"type":"string","nullable":true,"description":"The region it is in (`GET /v1/regions`); instances join it from there only."},"instance_ids":{"description":"Instances attached to this VPC.","type":"array","items":{"type":"string"}},"members":{"description":"The instances in it, with their private addresses.","type":"array","items":{"$ref":"#/components/schemas/VpcMemberDto"}},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","name","default","instance_ids","members"]},"CreateVpcV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"example":"backend"},"description":{"type":"string","maxLength":500},"region":{"type":"number","description":"Region id (`GET /v1/regions`). Instances join only a VPC of their own region.","example":"1"},"subnet":{"type":"string","description":"The private subnet handed out inside the VPC (CIDR), within 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16. Defaults to 10.200.0.0/24.","example":"10.20.0.0/24"}},"required":["name","region"]},"UpdateVpcV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"description":{"type":"string","maxLength":500,"nullable":true}}},"AttachVpcInstanceV1Dto":{"type":"object","properties":{"instance_id":{"type":"string","description":"Instance id","example":"1234"},"restart":{"type":"boolean","default":false,"description":"Restart the instance so its private NIC comes up at once; otherwise it appears on the next restart or hot-plug."},"private_ip":{"type":"string","description":"The private address it should get, inside the VPC subnet and free (409 when taken). DHCP picks one otherwise.","example":"10.200.0.10"}},"required":["instance_id"]},"ProjectPreviewDto":{"type":"object","properties":{"of_project_id":{"type":"string","format":"uuid","description":"The project it copies."},"number":{"type":"number","description":"The pull request (merge request) number."},"title":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"branch":{"type":"string","description":"The branch it builds."}},"required":["of_project_id","number","branch"]},"ProjectDto":{"type":"object","properties":{"object":{"type":"string","example":"project"},"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"region":{"type":"string","example":"bh","description":"Its location's short code, as its apps see it (MW_REGION)."},"datacenter_id":{"type":"number","nullable":true,"description":"Where its services run: a location of GET /serverless/locations. Null: made before locations."},"deletion_protection":{"type":"boolean"},"deploys_frozen":{"type":"boolean"},"frozen_reason":{"type":"string","nullable":true},"paused":{"type":"boolean"},"deleting":{"type":"boolean"},"template_id":{"type":"string","nullable":true,"description":"The gallery template it was made from (GET /serverless/templates/{id})"},"previews_enabled":{"type":"boolean","description":"Pull requests against a branch it deploys get a preview environment."},"preview":{"nullable":true,"description":"This project is a preview environment: of which project, for which pull request. Removed when the request closes.","type":"object","allOf":[{"$ref":"#/components/schemas/ProjectPreviewDto"}]},"service_count":{"type":"number"},"live_count":{"type":"number"},"failed_count":{"type":"number"},"database_count":{"type":"number","description":"Its databases: made for it, or bound to its services. In lists."},"bucket_count":{"type":"number","description":"Its buckets: put in it, or bound to its services. In lists."},"instance_count":{"type":"number","description":"The instances (VPS) put in it. In lists."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","name","region","deletion_protection","deploys_frozen","paused","deleting","previews_enabled","created_at","updated_at"]},"GitSourceViewDto":{"type":"object","properties":{"provider":{"type":"string","enum":["GITHUB","GITLAB","BITBUCKET","PUBLIC_URL"]},"connection_id":{"type":"string","nullable":true},"repo_full_name":{"type":"string","nullable":true},"repo_url":{"type":"string","nullable":true},"branch":{"type":"string","nullable":true},"tag_pattern":{"type":"string","nullable":true}},"required":["provider"]},"ImageSourceViewDto":{"type":"object","properties":{"ref":{"type":"string"},"registry_credential_id":{"type":"string","nullable":true}},"required":["ref"]},"ServiceSourceViewDto":{"type":"object","properties":{"kind":{"type":"string","enum":["GIT","IMAGE","UPLOAD"]},"git":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/GitSourceViewDto"}]},"image":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ImageSourceViewDto"}]}},"required":["kind"]},"ServiceSettingsViewDto":{"type":"object","properties":{"size":{"type":"string","nullable":true},"vcpu_millis":{"type":"number"},"memory_mib":{"type":"number"},"build_command":{"type":"string","nullable":true},"start_command":{"type":"string","nullable":true},"release_command":{"type":"string","nullable":true},"root_dir":{"type":"string"},"dockerfile_path":{"type":"string","nullable":true},"watch_paths":{"type":"array","items":{"type":"string"}},"php_version":{"type":"string","nullable":true,"description":"Null: detected at build"},"php_server":{"type":"string","nullable":true,"enum":["frankenphp","apache"],"description":"Null: detected at build"},"php_extensions":{"type":"array","items":{"type":"string"}},"document_root":{"type":"string","nullable":true,"description":"Null: detected at build"},"node_version":{"type":"string","nullable":true},"system_packages":{"type":"array","items":{"type":"string"}},"port":{"type":"number"},"health_check_path":{"type":"string","nullable":true},"startup_timeout_seconds":{"type":"number"},"min_instances":{"type":"number"},"max_instances":{"type":"number"},"concurrency":{"type":"number"},"idle_timeout_seconds":{"type":"number"},"request_timeout_seconds":{"type":"number"},"graceful_shutdown_seconds":{"type":"number"},"rollout_percent":{"type":"number","nullable":true,"description":"A new version's first share of the requests; null: all at once."},"rollout_minutes":{"type":"number"},"instances":{"type":"number"},"cron_schedule":{"type":"string","nullable":true},"cron_timezone":{"type":"string"},"cron_timeout_seconds":{"type":"number"},"volume_mount_path":{"type":"string","nullable":true,"description":"Where the persistent volume is mounted; null: no volume."},"volume_size_gb":{"type":"number","nullable":true,"description":"The volume's size in GB; null: no volume."}},"required":["vcpu_millis","memory_mib","root_dir","watch_paths","php_extensions","system_packages","port","startup_timeout_seconds","min_instances","max_instances","concurrency","idle_timeout_seconds","request_timeout_seconds","graceful_shutdown_seconds","rollout_minutes","instances","cron_timezone","cron_timeout_seconds"]},"DeploymentSummaryDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"number"},"status":{"type":"string"},"trigger":{"type":"string"},"commit_sha":{"type":"string","nullable":true},"commit_message":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"finished_at":{"type":"string","format":"date-time","nullable":true}},"required":["id","number","status","trigger","created_at"]},"PendingChangesDto":{"type":"object","properties":{"variables":{"type":"boolean","description":"Variables saved since the live revision."},"settings":{"type":"boolean","description":"Runtime settings (size, scaling, port…) saved since then."}},"required":["variables","settings"]},"VolumeUsageDto":{"type":"object","properties":{"used_bytes":{"type":"string","description":"Bytes used, decimal string."},"capacity_bytes":{"type":"string","description":"The file system's size, bytes, decimal string."},"measured_at":{"type":"string","format":"date-time"}},"required":["used_bytes","capacity_bytes","measured_at"]},"ServiceDto":{"type":"object","properties":{"object":{"type":"string","example":"service"},"id":{"type":"string","format":"uuid"},"project_id":{"type":"string","format":"uuid"},"project_name":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["WEB","PRIVATE","WORKER","CRON"]},"status":{"type":"string","enum":["NEW","DEPLOYING","LIVE","SLEEPING","FAILED","SUSPENDED","PAUSED","DELETING"]},"status_reason":{"type":"string","nullable":true,"description":"Why, as a stable code (e.g. CRASH_LOOP)."},"source":{"$ref":"#/components/schemas/ServiceSourceViewDto"},"settings":{"$ref":"#/components/schemas/ServiceSettingsViewDto"},"file_managed_fields":{"description":"Settings defined by the repository's mw.toml (read-only here).","type":"array","items":{"type":"string"}},"auto_deploy":{"type":"boolean"},"wait_for_ci":{"type":"boolean"},"deletion_protection":{"type":"boolean"},"url":{"type":"string","nullable":true,"description":"Public address (web services)."},"internal_url":{"type":"string","nullable":true,"description":"Address inside the project (private services)."},"custom_domains":{"type":"number","description":"How many domains of its own it has (not the default address). In lists."},"live_revision_id":{"type":"string","nullable":true,"format":"uuid"},"ready_instances":{"type":"number"},"deploy_hook_enabled":{"type":"boolean"},"last_deployment":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/DeploymentSummaryDto"}]},"pending_changes":{"nullable":true,"description":"Only when reading one service: saved changes the live revision does not have yet.","type":"object","allOf":[{"$ref":"#/components/schemas/PendingChangesDto"}]},"volumes_offered":{"type":"boolean","description":"On a service's own page: whether it may get a new volume now — its project's location takes volumes. One it has keeps running either way."},"volume_usage":{"nullable":true,"description":"How full the volume is, at its last observation (kept while the service sleeps); null: no volume, or not measured yet.","type":"object","allOf":[{"$ref":"#/components/schemas/VolumeUsageDto"}]},"image_volumes":{"description":"Image sources: the paths the image declares as volumes (its VOLUME instructions). Without a volume there, what the app writes is lost when it restarts or sleeps.","type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","project_id","name","kind","status","source","settings","file_managed_fields","auto_deploy","wait_for_ci","deletion_protection","ready_instances","deploy_hook_enabled","image_volumes","created_at","updated_at"]},"DeploymentActorDto":{"type":"object","properties":{"kind":{"type":"string","enum":["user","support","api_token","mcp","git","deploy_hook","system"]},"label":{"type":"string","nullable":true,"description":"A person, a token name, a pusher."}},"required":["kind"]},"DeploymentFailureDto":{"type":"object","properties":{"code":{"type":"string","description":"Stable diagnosis code, e.g. PORT_NOT_LISTENING."},"message":{"type":"string"},"hint":{"type":"string","nullable":true,"description":"The next step."},"log_tail":{"type":"string","nullable":true,"description":"Last lines of the failing step."},"params":{"type":"object","additionalProperties":true,"description":"Parameters of the diagnosis (port, memory_mib, line…), for wording it."}},"required":["code","message","params"]},"DeploymentRolloutDto":{"type":"object","properties":{"percent":{"type":"number","description":"The share of the requests the new version took."},"started_at":{"type":"string","format":"date-time"},"until":{"type":"string","format":"date-time","description":"When it takes all of them, if it stays healthy."},"pending_action":{"type":"string","nullable":true,"enum":["promote","abort"],"description":"Asked and about to happen."}},"required":["percent","started_at","until"]},"DeploymentStepDto":{"type":"object","properties":{"kind":{"type":"string","enum":["SOURCE","BUILD","RELEASE","HEALTH_CHECK","TRAFFIC"]},"status":{"type":"string","enum":["PENDING","RUNNING","SUCCEEDED","FAILED","SKIPPED","CANCELLED"]},"message":{"type":"string","nullable":true},"message_code":{"type":"string","nullable":true,"description":"What the message says (WAITING_FOR_DATABASE, RELEASE_ALREADY_RUN), with `message_params`"},"message_params":{"type":"object","nullable":true,"additionalProperties":{"type":"string"}},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"duration_ms":{"type":"number","nullable":true}},"required":["kind","status"]},"DeploymentDto":{"type":"object","properties":{"object":{"type":"string","example":"deployment"},"id":{"type":"string","format":"uuid"},"number":{"type":"number"},"service_id":{"type":"string","format":"uuid"},"project_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["WAITING_FOR_CI","QUEUED","BUILDING","RELEASING","DEPLOYING","LIVE","REPLACED","FAILED","CANCELLED","SUPERSEDED"]},"trigger":{"type":"string"},"triggered_by":{"description":"Who or what started it.","allOf":[{"$ref":"#/components/schemas/DeploymentActorDto"}]},"git_ref":{"type":"string","nullable":true},"commit_sha":{"type":"string","nullable":true},"commit_message":{"type":"string","nullable":true},"commit_author":{"type":"string","nullable":true},"commit_url":{"type":"string","nullable":true},"image_ref":{"type":"string","nullable":true},"image_digest":{"type":"string","nullable":true},"use_build_cache":{"type":"boolean"},"revision_id":{"type":"string","nullable":true,"format":"uuid"},"source_revision_number":{"type":"number","nullable":true,"description":"ROLLBACK and RESTART: the number of the revision run again."},"failure":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/DeploymentFailureDto"}]},"rollout":{"nullable":true,"description":"A gradual rollout: the new version took part of the requests first (still does, while the deployment is DEPLOYING).","type":"object","allOf":[{"$ref":"#/components/schemas/DeploymentRolloutDto"}]},"steps":{"type":"array","items":{"$ref":"#/components/schemas/DeploymentStepDto"}},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true}},"required":["object","id","number","service_id","project_id","status","trigger","triggered_by","use_build_cache","steps","created_at"]},"AlertRuleDto":{"type":"object","properties":{"kind":{"type":"string","enum":["ERROR_RATE","LATENCY_P95","MEMORY","MAX_INSTANCES"]},"enabled":{"type":"boolean"},"threshold":{"type":"number","description":"ERROR_RATE: a share (0.05 = 5%); LATENCY_P95: ms; MEMORY: a share of the limit; MAX_INSTANCES: the service’s maximum"},"window_minutes":{"type":"number","enum":[5,10,15,30,60],"description":"How long it must last, minutes"},"email":{"type":"boolean","description":"Also by e-mail"},"state":{"type":"string","enum":["OK","FIRING"]},"last_value":{"type":"number","nullable":true,"description":"What it measured last, in the threshold’s unit"},"last_evaluated_at":{"type":"string","nullable":true,"format":"date-time"},"since":{"type":"string","nullable":true,"format":"date-time","description":"Since when it is FIRING or OK"}},"required":["kind","enabled","threshold","window_minutes","email","state"]},"UpdateAlertRuleV1Dto":{"type":"object","properties":{"enabled":{"type":"boolean"},"threshold":{"type":"number"},"window_minutes":{"type":"number","enum":[5,10,15,30,60]},"email":{"type":"boolean"}}},"MetricsSizeDto":{"type":"object","properties":{"vcpu":{"type":"number","description":"vCPU an instance has"},"memory_bytes":{"type":"number","description":"Memory an instance has, bytes"}},"required":["vcpu","memory_bytes"]},"MetricsRequestsDto":{"type":"object","properties":{"ok":{"type":"array","items":{"type":"number","nullable":true},"description":"Requests a second answered 1xx–3xx"},"client_errors":{"type":"array","items":{"type":"number","nullable":true},"description":"Requests a second answered 4xx"},"server_errors":{"type":"array","items":{"type":"number","nullable":true},"description":"Requests a second answered 5xx"}},"required":["ok","client_errors","server_errors"]},"MetricsLatencyDto":{"type":"object","properties":{"p50":{"type":"array","items":{"type":"number","nullable":true},"description":"Median response time, ms"},"p95":{"type":"array","items":{"type":"number","nullable":true},"description":"95th percentile response time, ms"}},"required":["p50","p95"]},"MetricsSpreadDto":{"type":"object","properties":{"avg":{"type":"array","items":{"type":"number","nullable":true},"description":"The average instance"},"max":{"type":"array","items":{"type":"number","nullable":true},"description":"The busiest instance"}},"required":["avg","max"]},"MetricsTotalsDto":{"type":"object","properties":{"requests":{"type":"number","nullable":true},"server_errors":{"type":"number","nullable":true},"error_rate":{"type":"number","nullable":true,"description":"5xx of all requests (0–1)"},"restarts":{"type":"number"},"out_of_memory":{"type":"number","description":"Instances that ran out of memory and were restarted"},"cold_starts":{"type":"number","description":"Times it went from no instances to some"},"egress_bytes":{"type":"number","nullable":true,"description":"Response bytes sent to visitors"}},"required":["restarts","out_of_memory","cold_starts"]},"ServiceMetricsDto":{"type":"object","properties":{"range":{"type":"string","enum":["1h","6h","24h","7d"]},"step_seconds":{"type":"number"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"available":{"type":"boolean","description":"False when the metrics could not be read just now"},"kind":{"type":"string","enum":["WEB","PRIVATE","WORKER","CRON"]},"size":{"description":"The size it has, for the charts' reference lines","allOf":[{"$ref":"#/components/schemas/MetricsSizeDto"}]},"times":{"description":"Each point, unix seconds","type":"array","items":{"type":"number"}},"requests":{"nullable":true,"description":"Null for workers and cron jobs","type":"object","allOf":[{"$ref":"#/components/schemas/MetricsRequestsDto"}]},"latency_ms":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/MetricsLatencyDto"}]},"instances":{"type":"array","items":{"type":"number","nullable":true},"description":"Instances ready"},"cpu":{"description":"vCPU an instance uses","allOf":[{"$ref":"#/components/schemas/MetricsSpreadDto"}]},"memory_bytes":{"description":"Memory an instance holds, bytes","allOf":[{"$ref":"#/components/schemas/MetricsSpreadDto"}]},"totals":{"$ref":"#/components/schemas/MetricsTotalsDto"}},"required":["range","step_seconds","from","to","available","kind","size","times","instances","cpu","memory_bytes","totals"]},"SizeRecommendationDto":{"type":"object","properties":{"direction":{"type":"string","enum":["up","down"]},"reason":{"type":"string","enum":["out_of_memory","memory_high","cpu_high","underused"]},"from":{"type":"string","example":"small"},"to":{"type":"string","example":"medium"},"measure":{"type":"number","description":"Instances out of memory, or the share of CPU / memory used (0–1)"},"monthly_delta_micro_cents":{"type":"string","nullable":true,"description":"The change a month, µ¢ (negative: a saving)"},"days":{"type":"number","description":"Days of the past week it rests on"}},"required":["direction","reason","from","to","measure","days"]},"ServiceRecommendationDto":{"type":"object","properties":{"recommendation":{"nullable":true,"description":"Null: the size it has fits","type":"object","allOf":[{"$ref":"#/components/schemas/SizeRecommendationDto"}]}}},"AccessLogLineDto":{"type":"object","properties":{"ts":{"type":"string","format":"date-time"},"instance":{"type":"string"},"revision":{"type":"number","nullable":true},"method":{"type":"string","example":"GET"},"host":{"type":"string","example":"loja.com.br"},"path":{"type":"string","example":"/produtos","description":"Without the query string"},"status":{"type":"number","example":200},"bytes":{"type":"number","description":"Response bytes"},"latency_ms":{"type":"number"},"ip":{"type":"string","nullable":true,"description":"The visitor's address"},"user_agent":{"type":"string","nullable":true}},"required":["ts","instance","method","host","path","status","bytes","latency_ms"]},"AccessLogsDto":{"type":"object","properties":{"lines":{"description":"Oldest first; at most `limit`, the newest","type":"array","items":{"$ref":"#/components/schemas/AccessLogLineDto"}},"truncated":{"type":"boolean","description":"More requests than `limit` in the window: narrow it"}},"required":["lines","truncated"]},"EgressServiceDto":{"type":"object","properties":{"service_id":{"type":"string"},"name":{"type":"string","nullable":true,"description":"Null once the service is gone"},"bytes":{"type":"string","description":"Bytes sent to visitors this period"}},"required":["service_id","bytes"]},"ServerlessEgressDto":{"type":"object","properties":{"period_from":{"type":"string","format":"date-time"},"period_to":{"type":"string","format":"date-time"},"used_bytes":{"type":"string","description":"Response bytes services sent to visitors this period (decimal GB = 10⁹ bytes)"},"allowance_bytes":{"type":"string","description":"What the period includes"},"price_micro_cents_per_gb":{"type":"string","nullable":true,"description":"µ¢ per GB past the allowance; null without a published price"},"charged_micro_cents":{"type":"string","description":"Charged so far for what went past the allowance, µ¢"},"services":{"description":"Most first","type":"array","items":{"$ref":"#/components/schemas/EgressServiceDto"}}},"required":["period_from","period_to","used_bytes","allowance_bytes","charged_micro_cents","services"]},"ServerlessDomainChargesDto":{"type":"object","properties":{"period_from":{"type":"string","format":"date-time"},"period_to":{"type":"string","format":"date-time"},"held":{"type":"number","description":"Custom domains counting now: proved and held, at the edge or by the redirect service. A service’s default address never counts, nor a domain waiting for its DNS or one that failed."},"included":{"type":"number","description":"Domain-months the period includes"},"price_micro_cents_per_month":{"type":"string","nullable":true,"description":"µ¢ per domain-month past what is included; null without a published price"},"used_domain_months":{"type":"number","description":"Domain-months used this period so far, by the second (each domain at most one)"},"cost_micro_cents":{"type":"string","description":"What the period’s domains past what is included come to so far, charged or not yet, µ¢"},"charged_micro_cents":{"type":"string","description":"Charged so far, µ¢"}},"required":["period_from","period_to","held","included","used_domain_months","cost_micro_cents","charged_micro_cents"]},"OutboundAddressesDto":{"type":"object","properties":{"addresses":{"example":["148.224.62.200"],"description":"The IPv4 addresses services reach the internet from right now: the location's egress address, which stays the same when the platform replaces its machines, and — while the platform moves its worker nodes behind it — the addresses of the workers that still have one of their own, which change when a node is replaced.","type":"array","items":{"type":"string"}},"addresses_v6":{"description":"Always empty: services reach the internet over IPv4 only. Kept so the response keeps its shape.","type":"array","items":{"type":"string"}},"stable":{"type":"boolean","example":true,"description":"True when every address is a location's egress address, which stays the same when the platform replaces a node: an allowlist of them needs no update. False while a worker still reaches the internet from an address of its own (it changes when that node is replaced), and when nothing is published yet."}},"required":["addresses","addresses_v6","stable"]},"LogDrainDto":{"type":"object","properties":{"id":{"type":"string"},"project_id":{"type":"string"},"kind":{"type":"string","enum":["HTTPS","DATADOG","BETTERSTACK"]},"url":{"type":"string","example":"https://logs.example.com/…a1b2","description":"The address, as its host and last characters"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["ok","failing","stopped","off"],"description":"ok: sending. failing: retrying after errors (last_error says which). stopped: turned off after too many failed sends in a row. off: turned off."},"has_token":{"type":"boolean","description":"A token is kept (never shown again)"},"last_sent_at":{"format":"date-time","type":"string","nullable":true},"last_error":{"type":"string","nullable":true},"consecutive_failures":{"type":"number"},"lines_sent":{"type":"string","description":"Lines sent since it was made (a decimal string)"},"created_at":{"format":"date-time","type":"string"}},"required":["id","project_id","kind","url","enabled","status","has_token","consecutive_failures","lines_sent","created_at"]},"CreateLogDrainDto":{"type":"object","properties":{"kind":{"type":"string","enum":["HTTPS","DATADOG","BETTERSTACK"],"description":"HTTPS: your endpoint takes NDJSON (Loki, Vector, Fluent Bit…). DATADOG: its log intake. BETTERSTACK: a Better Stack source."},"url":{"type":"string","description":"HTTPS: the endpoint's https:// address. BETTERSTACK: the source's ingesting host (default in.logs.betterstack.com). Unused for Datadog."},"token":{"type":"string","description":"DATADOG: the API key. BETTERSTACK: the source token. HTTPS: the Authorization header to send (optional), like 'Bearer …'. Kept encrypted, never shown again."},"site":{"type":"string","enum":["us1","us3","us5","eu1","ap1","ap2"],"description":"DATADOG: the account's site (default us1)"}},"required":["kind"]},"UpdateLogDrainDto":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Off stops sending; on resumes from where it stopped"}},"required":["enabled"]},"LogDrainTestDto":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"number","nullable":true},"error":{"type":"string","nullable":true}},"required":["ok"]},"ProjectResourceDto":{"type":"object","properties":{"object":{"type":"string","example":"project_resource"},"kind":{"type":"string","enum":["INSTANCE","BUCKET","DATABASE"]},"id":{"type":"string","description":"An instance's number, a bucket's or a database's id."},"name":{"type":"string"},"status":{"type":"string","description":"An instance: RUNNING, STOPPED, SUSPENDED or DEPLOYING. A bucket: ACTIVE. A database: its status."},"detail":{"type":"string","nullable":true,"description":"An instance's public IPv4, a bucket's location, a database's engine and version."},"image":{"type":"string","nullable":true,"description":"An instance's operating system or app."},"added_at":{"type":"string","nullable":true,"format":"date-time","description":"When it was put in the project; null for a database made with it."}},"required":["object","kind","id","name","status"]},"ProjectResourceRefDto":{"type":"object","properties":{"kind":{"type":"string","enum":["INSTANCE","BUCKET","DATABASE"]},"id":{"type":"string","maxLength":64,"description":"An instance's number; a bucket's or a database's id or name.","example":"1234"}},"required":["kind","id"]},"AddProjectResourcesV1Dto":{"type":"object","properties":{"resources":{"maxItems":50,"description":"Moved here from another project if they were in one: a resource is in one project at most.","type":"array","items":{"$ref":"#/components/schemas/ProjectResourceRefDto"}}},"required":["resources"]},"RunDto":{"type":"object","properties":{"id":{"type":"string"},"service_id":{"type":"string"},"command":{"type":"string","nullable":true,"description":"Null: a shell"},"tty":{"type":"boolean"},"status":{"type":"string","enum":["starting","attached","ended","failed"]},"exit_code":{"type":"number","nullable":true,"description":"The command's exit code, once it ended"},"error":{"type":"string","nullable":true,"description":"Why it did not run"},"actor_kind":{"type":"string","example":"user","description":"Who started it: user, support, api_token"},"actor_label":{"type":"string","nullable":true,"example":"Ana Souza"},"created_at":{"type":"string","format":"date-time"},"attached_at":{"type":"string","nullable":true,"format":"date-time"},"ended_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","service_id","tty","status","actor_kind","created_at"]},"StartRunV1Dto":{"type":"object","properties":{"command":{"type":"string","example":"php artisan tinker","description":"What to run, as the service's shell reads it; empty or absent: a shell"},"tty":{"type":"boolean","default":true,"description":"A terminal (interactive programs, colours); false for output piped somewhere"}}},"StartedRunDto":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/RunDto"},"attach_url":{"type":"string","example":"wss://api.mwcloud.com.br/serverless/runs/attach/2kH…","description":"The terminal: a WebSocket, once, before expires_at. Binary messages are input and output; text messages are control — send {\"type\":\"resize\",\"cols\":120,\"rows\":40}, or {\"type\":\"eof\"} once piped input ran out; receive {\"type\":\"exit\",\"code\":0}, or {\"type\":\"error\",\"code\":\"…\",\"message\":\"…\"} (code: expired, no_shell, image, timeout, ended, unknown). Closing it ends the command."},"expires_at":{"type":"string","format":"date-time"}},"required":["run","attach_url","expires_at"]},"BindingDto":{"type":"object","properties":{"id":{"type":"string"},"resource_kind":{"type":"string","enum":["BUCKET","POSTGRES","MYSQL","SQLSERVER","REDIS"],"description":"MYSQL is a MySQL or MariaDB database"},"resource_id":{"type":"string"},"resource_name":{"type":"string","nullable":true,"description":"Null once the resource is gone"},"env_profile":{"type":"string","example":"prefixed","description":"Variable layout: prefixed, framework (AWS_* for buckets, DB_* for databases), url, libpq, dotnet (ConnectionStrings__<name>)"},"env_prefix":{"type":"string","example":"MW_STORAGE_"},"access":{"type":"string","enum":["read_write","read_only"]},"variables":{"description":"The variables it gives the service (names only)","type":"array","items":{"type":"string"}},"credential_rotated_at":{"type":"string","nullable":true,"format":"date-time","description":"When its key was last replaced"},"created_at":{"type":"string","format":"date-time"}},"required":["id","resource_kind","resource_id","env_profile","env_prefix","access","variables","created_at"]},"CreateBindingV1Dto":{"type":"object","properties":{"resource_kind":{"type":"string","enum":["BUCKET","POSTGRES","MYSQL","SQLSERVER","REDIS"],"description":"MYSQL is a MySQL or MariaDB database"},"resource":{"type":"string","example":"loja-uploads","description":"The bucket’s or the database’s name"},"env_profile":{"type":"string","enum":["url","framework","libpq","prefixed","dotnet"],"description":"Bucket: prefixed (default) or framework. PostgreSQL: url (default), framework, libpq, prefixed or dotnet. MySQL and MariaDB: url (default), framework, prefixed or dotnet. Redis: url (default), framework, prefixed or dotnet. dotnet sets ConnectionStrings__<name> in the driver’s own format (Npgsql, MySqlConnector, StackExchange.Redis): DefaultConnection (Redis for Redis), or the prefix as the name (SHOP_DB_ → ShopDb)."},"env_prefix":{"type":"string","example":"MW_STORAGE_","description":"For the prefixed layout; ends in an underscore"},"access":{"type":"string","enum":["read_write","read_only"],"default":"read_write","description":"Buckets only: a database binding has the owner’s rights"},"deploy":{"type":"boolean","default":true,"description":"Apply now with a new deployment"}},"required":["resource_kind","resource"]},"BindingChangeDto":{"type":"object","properties":{"binding":{"nullable":true,"description":"The binding made (null when one was removed)","type":"object","allOf":[{"$ref":"#/components/schemas/BindingDto"}]},"deployment":{"nullable":true,"description":"The deployment applying the change, when one was started.","type":"object","allOf":[{"$ref":"#/components/schemas/DeploymentDto"}]}}},"SwitchDatabaseV1Dto":{"type":"object","properties":{"kind":{"type":"string","enum":["POSTGRES","MYSQL","SQLSERVER"],"description":"MYSQL is a MySQL or MariaDB database"},"from":{"type":"string","example":"loja-db","description":"The database the services use now"},"to":{"type":"string","example":"loja-db-restaurado","description":"The database they should use instead (a restored copy)"}},"required":["kind","from","to"]},"SwitchedServiceDto":{"type":"object","properties":{"service_id":{"type":"string"},"service_name":{"type":"string"},"deployment":{"nullable":true,"description":"The deployment that carries the new address","type":"object","allOf":[{"$ref":"#/components/schemas/DeploymentDto"}]}},"required":["service_id","service_name"]},"SwitchDatabaseResultDto":{"type":"object","properties":{"moved":{"type":"array","items":{"$ref":"#/components/schemas/SwitchedServiceDto"}},"skipped":{"description":"Already bound to both: left as they are","type":"array","items":{"$ref":"#/components/schemas/SwitchedServiceDto"}}},"required":["moved","skipped"]},"ServerlessLimitsDto":{"type":"object","properties":{"vcpu_millis":{"type":"number"},"memory_mib":{"type":"number"},"projects":{"type":"number"},"services":{"type":"number"},"instances_per_service":{"type":"number"},"concurrent_builds":{"type":"number"},"on_request_sizes":{"type":"boolean"},"volume_gb":{"type":"number","description":"All volumes of the account, in GB."},"volumes":{"type":"boolean","description":"Persistent volumes are switched on (web, private, worker services). Where a service may get one now is each location's: `volumes` on the locations."}},"required":["vcpu_millis","memory_mib","projects","services","instances_per_service","concurrent_builds","on_request_sizes","volume_gb","volumes"]},"ServerlessQuotaUsageDto":{"type":"object","properties":{"vcpu_millis":{"type":"number","description":"Reserved: size × the most instances, over every service."},"memory_mib":{"type":"number"},"projects":{"type":"number"},"services":{"type":"number"},"volume_gb":{"type":"number","description":"GB of volumes, over every service."}},"required":["vcpu_millis","memory_mib","projects","services","volume_gb"]},"SizeDto":{"type":"object","properties":{"code":{"type":"string","example":"small"},"vcpu_millis":{"type":"number","example":500},"memory_mib":{"type":"number","example":1024},"on_request":{"type":"boolean","description":"Granted on request through support."}},"required":["code","vcpu_millis","memory_mib","on_request"]},"ServerlessAccessDto":{"type":"object","properties":{"enabled":{"type":"boolean"},"beta":{"type":"boolean"},"reason":{"type":"string","enum":["disabled","not_invited","blocked"],"nullable":true},"limits":{"$ref":"#/components/schemas/ServerlessLimitsDto"},"usage":{"$ref":"#/components/schemas/ServerlessQuotaUsageDto"},"sizes":{"type":"array","items":{"$ref":"#/components/schemas/SizeDto"}},"default_domain":{"type":"string","description":"Domain of default service addresses."},"cname_target":{"type":"string","description":"Where customers point custom-domain CNAMEs."},"git_providers":{"type":"array","description":"Git providers this platform lets customers connect. A public repository URL always works.","items":{"type":"string","enum":["GITHUB","GITLAB","BITBUCKET"]}},"upload_max_bytes":{"type":"number","nullable":true,"description":"The largest folder `mw deploy` may send, compressed, in bytes. Null when deploying from a folder is not offered."}},"required":["enabled","beta","limits","usage","sizes","default_domain","cname_target","git_providers"]},"ServerlessOpenRechargeDto":{"type":"object","properties":{"invoice":{"type":"string","description":"The invoice number"},"amount_micro_cents":{"type":"string","description":"What it charges (µ¢)"},"due_at":{"type":"string","format":"date-time","description":"Its due day, at noon UTC: the billing system charges a saved card on that day"}},"required":["invoice","amount_micro_cents","due_at"]},"ServerlessWalletDto":{"type":"object","properties":{"subscription_id":{"type":"string","description":"The wallet: an on-demand subscription of its own, topped up like any"},"status":{"type":"string","description":"The subscription status (active, suspended…)"},"usable_micro_cents":{"type":"string","description":"Spendable credit (available + temporary − debt); negative in debt"},"minimum_for_new_service_micro_cents":{"type":"string","description":"What the wallet must hold for a new service"},"debt_limit_micro_cents":{"type":"string","description":"How far into debt it may go before serverless is suspended"},"suspended_at":{"type":"string","nullable":true,"format":"date-time","description":"Since when serverless is suspended for lack of credit"},"runway_hours":{"type":"number","nullable":true,"description":"Hours of credit left at the current pace; null when nothing is spending"},"retention_delete_at":{"type":"string","nullable":true,"format":"date-time","description":"While suspended: from when its projects, databases and buckets may be deleted if the credit stays out"},"auto_recharge_enabled":{"type":"boolean","description":"Whether a top-up invoice goes out on its own at five days of credit left (or below what a new service needs), due the next day. The platform only issues it; the billing system charges it on its due date, a saved card automatically."},"auto_recharge_amount_micro_cents":{"type":"string","nullable":true,"description":"What each automatic top-up adds (µ¢)"},"auto_recharge_min_micro_cents":{"type":"string","description":"The least an automatic top-up may add (µ¢, in the billing currency)"},"auto_recharge_max_micro_cents":{"type":"string","description":"The most an automatic top-up may add (µ¢, in the billing currency)"},"open_auto_recharge":{"nullable":true,"description":"The automatic top-up invoice still open, if any: turning the recharge off cancels it","type":"object","allOf":[{"$ref":"#/components/schemas/ServerlessOpenRechargeDto"}]}},"required":["subscription_id","status","usable_micro_cents","minimum_for_new_service_micro_cents","debt_limit_micro_cents","auto_recharge_enabled","auto_recharge_min_micro_cents","auto_recharge_max_micro_cents"]},"SpendCapDto":{"type":"object","properties":{"cap_micro_cents":{"type":"string","nullable":true,"description":"The most serverless may cost a period, micro-cents; null: no cap"},"action":{"type":"string","enum":["WARN","STOP"],"description":"At the cap: tell (WARN), or also stop the services (STOP)"},"spent_micro_cents":{"type":"string","description":"What was charged this period so far, micro-cents"},"period_from":{"type":"string","format":"date-time"},"period_to":{"type":"string","format":"date-time"},"stopped":{"type":"boolean","description":"The services are stopped by the cap now"}},"required":["action","spent_micro_cents","period_from","period_to","stopped"]},"SetSpendCapDto":{"type":"object","properties":{"cap_micro_cents":{"type":"string","nullable":true,"description":"Micro-cents (at least R$ 1); null removes the cap"},"action":{"type":"string","enum":["WARN","STOP"]}},"required":["action"]},"SetAutoRechargeDto":{"type":"object","properties":{"enabled":{"type":"boolean"},"amount_micro_cents":{"type":"string","description":"What each top-up adds, µ¢ (1 unit of the billing currency = 1 000 000), in whole cents, between auto_recharge_min_micro_cents and auto_recharge_max_micro_cents of the wallet. Optional when one was set before.","example":"100000000"}},"required":["enabled"]},"ServerlessServiceUsageDto":{"type":"object","properties":{"service_id":{"type":"string"},"name":{"type":"string","nullable":true,"description":"Null once the service is deleted (its usage is still owed)"},"project_id":{"type":"string","nullable":true},"instance_seconds":{"type":"number"},"job_seconds":{"type":"number"},"build_seconds":{"type":"number"},"cost_micro_cents":{"type":"string","description":"Instances and jobs so far this period"},"last_hour_micro_cents":{"type":"string","description":"What its last complete hour cost: the pace of the forecast"}},"required":["service_id","instance_seconds","job_seconds","build_seconds","cost_micro_cents","last_hour_micro_cents"]},"ServerlessUsageDto":{"type":"object","properties":{"period_from":{"type":"string","format":"date-time"},"period_to":{"type":"string","format":"date-time"},"priced":{"type":"boolean","description":"False while a meter has no published price yet"},"total_micro_cents":{"type":"string","description":"Instances, jobs and builds so far this period"},"forecast_micro_cents":{"type":"string","description":"The period at the pace of its last complete hour"},"build_seconds":{"type":"number"},"build_allowance_minutes":{"type":"number","description":"Build minutes included in the period"},"build_micro_cents":{"type":"string"},"services":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessServiceUsageDto"}}},"required":["period_from","period_to","priced","total_micro_cents","forecast_micro_cents","build_seconds","build_allowance_minutes","build_micro_cents","services"]},"ServerlessSizePriceDto":{"type":"object","properties":{"code":{"type":"string"},"vcpu_millis":{"type":"number"},"memory_mib":{"type":"number"},"hourly_micro_cents":{"type":"string","nullable":true,"description":"One instance for an hour"}},"required":["code","vcpu_millis","memory_mib"]},"ServerlessPricesDto":{"type":"object","properties":{"vcpu_hour_micro_cents":{"type":"string","nullable":true},"gib_hour_micro_cents":{"type":"string","nullable":true},"build_minute_micro_cents":{"type":"string","nullable":true},"build_allowance_minutes":{"type":"number","description":"Build minutes included per period"},"volume_gb_month_micro_cents":{"type":"string","nullable":true,"description":"A persistent volume's GB for a month (730 hours), µ¢."},"volume_backup_gb_month_micro_cents":{"type":"string","nullable":true,"description":"Backup storage past a volume's own size, a GB for a month, µ¢ (up to the volume's size it is included)."},"custom_domain_month_micro_cents":{"type":"string","nullable":true,"description":"A custom domain for a month past those included, µ¢ (by the second while it is held); null without a published price."},"custom_domains_included":{"type":"number","description":"Custom domains included each period"},"sizes":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessSizePriceDto"}}},"required":["build_allowance_minutes","custom_domains_included","sizes"]},"EnvGroupDto":{"type":"object","properties":{"object":{"type":"string","example":"env_group"},"id":{"type":"string","format":"uuid"},"project_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"service_ids":{"type":"array","items":{"type":"string"}},"variable_count":{"type":"number"},"created_at":{"type":"string","format":"date-time"}},"required":["object","id","project_id","name","service_ids","variable_count","created_at"]},"CreateEnvGroupV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":64},"description":{"type":"string","maxLength":500,"nullable":true}},"required":["name"]},"VariableDto":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string","nullable":true,"description":"NULL for secrets: write-only once saved."},"is_secret":{"type":"boolean"},"available_at_build":{"type":"boolean"},"version":{"type":"number"},"updated_at":{"type":"string","format":"date-time"}},"required":["key","is_secret","available_at_build","version","updated_at"]},"VariableInputDto":{"type":"object","properties":{"key":{"type":"string","example":"DATABASE_URL"},"value":{"type":"string","description":"Omit to change only the flags of an existing variable."},"is_secret":{"type":"boolean","description":"Write-only once saved."},"available_at_build":{"type":"boolean","description":"Also given to the build."}},"required":["key"]},"SetVariablesV1Dto":{"type":"object","properties":{"variables":{"type":"array","items":{"$ref":"#/components/schemas/VariableInputDto"}},"replace_all":{"type":"boolean","default":false,"description":"Remove variables not in the list."},"deploy":{"type":"boolean","default":true,"description":"Deploy the change now (services only)."}},"required":["variables"]},"GroupVariableChangeDto":{"type":"object","properties":{"created":{"type":"array","items":{"type":"string"}},"updated":{"type":"array","items":{"type":"string"}},"removed":{"type":"array","items":{"type":"string"}},"unchanged":{"type":"array","items":{"type":"string"}},"deployments":{"description":"One per live service reading the group.","type":"array","items":{"$ref":"#/components/schemas/DeploymentDto"}}},"required":["created","updated","removed","unchanged","deployments"]},"LinkEnvGroupsV1Dto":{"type":"object","properties":{"env_group_ids":{"description":"Groups in precedence order: later ones override earlier ones.","type":"array","items":{"type":"string"}},"deploy":{"type":"boolean","default":true}},"required":["env_group_ids"]},"RegistryCredentialDto":{"type":"object","properties":{"object":{"type":"string","example":"registry_credential"},"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"registry_host":{"type":"string"},"username":{"type":"string"},"last_used_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}},"required":["object","id","name","registry_host","username","created_at"]},"CreateRegistryCredentialV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":64},"registry_host":{"type":"string","example":"ghcr.io"},"username":{"type":"string"},"password":{"type":"string","description":"Token or password. Write-only."}},"required":["name","registry_host","username","password"]},"DeployHookDto":{"type":"object","properties":{"url":{"type":"string","description":"POST to this URL to deploy the latest commit. Shown only now."},"rotated_at":{"type":"string","format":"date-time"}},"required":["url","rotated_at"]},"GitConnectionDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"provider":{"type":"string","enum":["GITHUB","GITLAB","BITBUCKET"]},"account_login":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","NEEDS_REAUTH","REVOKED"]},"status_reason":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"}},"required":["id","provider","account_login","status","created_at"]},"GitRepositoryDto":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string","example":"acme/loja"},"defaultBranch":{"type":"string"},"private":{"type":"boolean"}},"required":["id","fullName","defaultBranch","private"]},"GitRepositoryPageDto":{"type":"object","properties":{"repositories":{"type":"array","items":{"$ref":"#/components/schemas/GitRepositoryDto"}},"has_more":{"type":"boolean"}},"required":["repositories","has_more"]},"GitBranchesDto":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"string"}}},"required":["branches"]},"ServerlessLocalizedTextDto":{"type":"object","properties":{"pt":{"type":"string"},"en":{"type":"string"}},"required":["pt","en"]},"ServerlessTemplateServiceDto":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["WEB","WORKER","CRON","PRIVATE"]},"image":{"type":"string","nullable":true,"description":"Image templates: the pinned image"},"cron_schedule":{"type":"string","nullable":true}},"required":["name","kind"]},"ServerlessTemplateDatabaseDto":{"type":"object","properties":{"key":{"type":"string","example":"db"},"engine":{"type":"string","enum":["postgres","mysql","mariadb","valkey"]},"size":{"type":"string","example":"pg-1-1"}},"required":["key","engine","size"]},"ServerlessTemplateBucketDto":{"type":"object","properties":{"key":{"type":"string","example":"files"},"public":{"type":"boolean","description":"Its files open to anyone at its public address"}},"required":["key","public"]},"ServerlessTemplateQuestionDto":{"type":"object","properties":{"key":{"type":"string"},"label":{"$ref":"#/components/schemas/ServerlessLocalizedTextDto"},"input":{"type":"string","enum":["email","password","text"]}},"required":["key","label","input"]},"ServerlessTemplateDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"summary":{"$ref":"#/components/schemas/ServerlessLocalizedTextDto"},"category":{"type":"string","enum":["framework","app"]},"languages":{"type":"array","items":{"type":"string"}},"icon":{"type":"string"},"services":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateServiceDto"}},"databases":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateDatabaseDto"}},"buckets":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateBucketDto"}},"questions":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateQuestionDto"}},"repo_url":{"type":"string","nullable":true,"description":"Code templates: the starter's repository (the services build it)"},"copy_url":{"type":"string","nullable":true,"description":"GitHub's “use this template” for the starter: the copy that makes the code the customer's"}},"required":["id","name","summary","category","languages","icon","services","databases","buckets","questions","repo_url","copy_url"]},"ServerlessTemplateEstimateDto":{"type":"object","properties":{"databases_monthly_micro_cents":{"type":"string","description":"Its databases a month (µ¢); null while unpriced"},"always_on_monthly_micro_cents":{"type":"string","description":"Its services kept awake a month at their minimum instances (µ¢); 0 when they all sleep when idle"},"sleeps":{"type":"boolean","description":"Whether its services sleep when idle (billed by use)"},"some_sleep":{"type":"boolean","description":"Whether some of them do (a site beside an always-on worker, say)"}},"required":["databases_monthly_micro_cents","always_on_monthly_micro_cents","sleeps","some_sleep"]},"ServerlessTemplateDetailDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"summary":{"$ref":"#/components/schemas/ServerlessLocalizedTextDto"},"category":{"type":"string","enum":["framework","app"]},"languages":{"type":"array","items":{"type":"string"}},"icon":{"type":"string"},"services":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateServiceDto"}},"databases":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateDatabaseDto"}},"buckets":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateBucketDto"}},"questions":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessTemplateQuestionDto"}},"repo_url":{"type":"string","nullable":true,"description":"Code templates: the starter's repository (the services build it)"},"copy_url":{"type":"string","nullable":true,"description":"GitHub's “use this template” for the starter: the copy that makes the code the customer's"},"estimate":{"$ref":"#/components/schemas/ServerlessTemplateEstimateDto"}},"required":["id","name","summary","category","languages","icon","services","databases","buckets","questions","repo_url","copy_url","estimate"]},"DeployServerlessTemplateDto":{"type":"object","properties":{"project_name":{"type":"string","maxLength":40,"example":"loja"},"datacenter_id":{"type":"number","description":"Where the project runs: a location from GET /serverless/locations. Unset: the default location.","example":990002},"answers":{"type":"object","additionalProperties":{"type":"string"},"description":"Answers to the template's questions, by key"}},"required":["project_name"]},"ServerlessTemplateDeployResultDto":{"type":"object","properties":{"project_id":{"type":"string"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"deployment_id":{"type":"string","nullable":true}}}},"databases":{"type":"array","items":{"type":"string"}},"buckets":{"type":"array","items":{"type":"string"}},"skipped_databases":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"engine":{"type":"string"},"reason":{"type":"string","enum":["licence_terms"]},"message":{"type":"string"}}},"description":"A copy’s databases it did not make (their bindings left out too): SQL Server’s, whose licence terms a person accepts for each new database (`licence_terms`) — make one in the copy and bind it"}},"required":["project_id","services","databases","buckets"]},"GitSourceDto":{"type":"object","properties":{"provider":{"type":"string","enum":["GITHUB","GITLAB","BITBUCKET","PUBLIC_URL"]},"connection_id":{"type":"string","format":"uuid","nullable":true},"repo_full_name":{"type":"string","example":"acme/loja","nullable":true},"repo_url":{"type":"string","example":"https://github.com/acme/loja.git","nullable":true},"branch":{"type":"string","example":"main","nullable":true},"tag_pattern":{"type":"string","example":"v*","nullable":true,"description":"Deploy only tags matching this glob."}},"required":["provider"]},"SourceInspectionRequestDto":{"type":"object","properties":{"git":{"$ref":"#/components/schemas/GitSourceDto"}},"required":["git"]},"SourceInspectionServiceDto":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["WEB","WORKER","CRON","PRIVATE"]},"start_command":{"type":"string","nullable":true},"build_command":{"type":"string","nullable":true},"release_command":{"type":"string","nullable":true},"cron_schedule":{"type":"string","nullable":true},"health_check_path":{"type":"string","nullable":true},"binds":{"description":"Keys of the databases and buckets it is bound to","type":"array","items":{"type":"string"}}},"required":["name","kind","binds"]},"SourceInspectionDatabaseDto":{"type":"object","properties":{"key":{"type":"string","example":"db"},"engine":{"type":"string","enum":["postgres","mysql","mariadb","valkey"]},"size":{"type":"string","example":"pg-1-1"}},"required":["key","engine","size"]},"SourceInspectionBucketDto":{"type":"object","properties":{"key":{"type":"string","example":"files"},"public":{"type":"boolean"}},"required":["key","public"]},"SourceInspectionVariableDto":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string","nullable":true,"description":"Its value; null for a secret generated when it is made"},"generated":{"type":"boolean"}},"required":["key","generated"]},"SourceInspectionReasonDto":{"type":"object","properties":{"code":{"type":"string","enum":["FRAMEWORK","PROCFILE","RELEASE","HEALTH","WORKER","SCHEDULER","DATABASE","DATABASE_SQLITE","DATABASE_UNSUPPORTED","REDIS","BUCKET","SECRET","PROJECT","WINDOWS_ONLY"]},"params":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","params"]},"SourceInspectionDto":{"type":"object","properties":{"readable":{"type":"boolean","description":"False when the repository cannot be read from here (a public URL on another host): nothing is proposed"},"framework":{"type":"string","nullable":true,"enum":["laravel","django","rails","nextjs","node","fastapi","flask","go","php","dotnet","dockerfile"]},"template_id":{"type":"string","nullable":true},"branch":{"type":"string","nullable":true,"description":"The branch read, when none was given and the repository's default was resolved here"},"services":{"type":"array","items":{"$ref":"#/components/schemas/SourceInspectionServiceDto"}},"databases":{"type":"array","items":{"$ref":"#/components/schemas/SourceInspectionDatabaseDto"}},"buckets":{"type":"array","items":{"$ref":"#/components/schemas/SourceInspectionBucketDto"}},"variables":{"description":"The project's shared variables (secrets generated, never shown)","type":"array","items":{"$ref":"#/components/schemas/SourceInspectionVariableDto"}},"to_fill":{"description":"Variables the app reads that are left to fill in","type":"array","items":{"type":"string"}},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/SourceInspectionReasonDto"}},"estimate":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ServerlessTemplateEstimateDto"}]}},"required":["readable","services","databases","buckets","variables","to_fill","reasons"]},"SourceKeepDto":{"type":"object","properties":{"services":{"type":"array","items":{"type":"string"}},"databases":{"type":"array","items":{"type":"string"}},"buckets":{"type":"array","items":{"type":"string"}}}},"DeployFromSourceDto":{"type":"object","properties":{"git":{"$ref":"#/components/schemas/GitSourceDto"},"project_name":{"type":"string","maxLength":40,"example":"loja"},"datacenter_id":{"type":"number","description":"Where the project runs: a location from GET /serverless/locations. Unset: the default location.","example":990002},"keep":{"description":"What of the proposal to make (the web service always); everything when left out","allOf":[{"$ref":"#/components/schemas/SourceKeepDto"}]}},"required":["git","project_name"]},"DuplicateServerlessProjectDto":{"type":"object","properties":{"name":{"type":"string","maxLength":40,"example":"loja-staging"}},"required":["name"]},"ServerlessTemplateRepositoryDto":{"type":"object","properties":{"git":{"description":"The repository to build from now: the copy of the starter in the customer’s GitHub (a connection), or any Git URL","allOf":[{"$ref":"#/components/schemas/GitSourceDto"}]}},"required":["git"]},"ServerlessTemplateRepositoryResultDto":{"type":"object","properties":{"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"deployment_id":{"type":"string","nullable":true}}},"description":"The services moved, each deploying from the new repository"}},"required":["services"]},"ServerlessLocationDto":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"region_name":{"type":"string","nullable":true},"image":{"type":"string","nullable":true,"description":"The flag's file, as on the datacenter: the console derives the country from it."},"deployable":{"type":"boolean","description":"A project can be made here now; a location that is not is temporarily unavailable."},"volumes":{"type":"boolean","description":"A service here may get a persistent volume now: the platform has proved this location's storage takes one. A location that does not yet keeps every volume it has."}},"required":["id","name","deployable","volumes"]},"CreateProjectV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"example":"loja"},"description":{"type":"string","maxLength":500,"nullable":true},"deletion_protection":{"type":"boolean","default":true,"description":"Deleting it needs this switched off first."},"datacenter_id":{"type":"number","description":"Where its services run: a location from GET /serverless/locations, as for a VPS. It never changes. Unset: the platform's default location.","example":990002}},"required":["name"]},"UpdateProjectV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":64},"description":{"type":"string","maxLength":500,"nullable":true},"deletion_protection":{"type":"boolean"},"deploys_frozen":{"type":"boolean","description":"Refuse every new deployment until lifted."},"frozen_reason":{"type":"string","maxLength":500,"nullable":true},"previews_enabled":{"type":"boolean","description":"Preview environments: each pull request against a branch the project deploys gets a copy of the project, built from its branch — its variables copied, secrets included; its databases and buckets new and empty — removed when it closes. Never for pull requests from forks."}}},"PreviewServiceDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"url":{"type":"string","nullable":true,"description":"Its address, for a web service."}},"required":["id","name","kind","status"]},"PreviewEnvironmentDto":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/ProjectDto"},"services":{"type":"array","items":{"$ref":"#/components/schemas/PreviewServiceDto"}}},"required":["project","services"]},"ServerlessAppLoginDto":{"type":"object","properties":{"service_id":{"type":"string","format":"uuid"},"service_name":{"type":"string"},"login":{"type":"string","nullable":true,"description":"The app's login: a username, or an e-mail address"},"password":{"type":"string","enum":["generated","changed","removed"],"description":"`generated`: the password made with the app, which can be shown (POST …/reveal); `changed` since, or `removed`: never shown"}},"required":["service_id","service_name","login","password"]},"ServerlessAppLoginSecretDto":{"type":"object","properties":{"login":{"type":"string","nullable":true},"password":{"type":"string","description":"The password made with the app: change it in the app after signing in"}},"required":["login","password"]},"ImageSourceDto":{"type":"object","properties":{"ref":{"type":"string","example":"ghcr.io/acme/api:1.4"},"registry_credential_id":{"type":"string","format":"uuid","nullable":true}},"required":["ref"]},"ServiceSourceDto":{"type":"object","properties":{"kind":{"type":"string","enum":["GIT","IMAGE","UPLOAD"]},"git":{"$ref":"#/components/schemas/GitSourceDto"},"image":{"$ref":"#/components/schemas/ImageSourceDto"}},"required":["kind"]},"ServiceSettingsDto":{"type":"object","properties":{"size":{"type":"string","example":"small","description":"Instance size code (see GET /serverless/sizes)."},"build_command":{"type":"string","nullable":true},"start_command":{"type":"string","nullable":true},"release_command":{"type":"string","nullable":true,"example":"php artisan migrate --force"},"root_dir":{"type":"string"},"dockerfile_path":{"type":"string","nullable":true},"watch_paths":{"type":"array","items":{"type":"string"}},"php_version":{"type":"string","nullable":true,"enum":["8.5","8.4","8.3","8.2","8.1","8.0","7.4"],"description":"Builds without a Dockerfile: the PHP release. Null: the newest the project allows, preferring the platform default (8.4) and `config.platform.php`."},"php_server":{"type":"string","nullable":true,"enum":["frankenphp","apache"],"description":"Builds without a Dockerfile: `apache` honours .htaccess and runs every release; `frankenphp` 8.2 on. Null: Apache for releases before 8.2 and for classic sites with an .htaccess, FrankenPHP otherwise."},"php_extensions":{"example":["gd","intl"],"description":"PHP extensions beyond the database drivers every PHP build has (mysqli, pdo_mysql, pdo_pgsql, pgsql, redis) and those composer.json and its lock ask for. A release may be pinned: `redis-6.1.0`.","type":"array","items":{"type":"string"}},"document_root":{"type":"string","nullable":true,"example":"public","description":"PHP: the folder served, relative to the root directory; `.` for the root itself. Null: public/ for Laravel, else the root when it holds index.php, else the first of public/, web/, public_html/, htdocs/ that does."},"node_version":{"type":"string","nullable":true,"example":"22","description":"Builds without a Dockerfile: the Node.js release (`22`, `20.11`, `lts`). Null: package.json engines, .nvmrc or .node-version, else the current LTS."},"system_packages":{"example":["ffmpeg"],"description":"Builds without a Dockerfile: Debian packages installed in the image and available at build.","type":"array","items":{"type":"string"}},"port":{"type":"number"},"health_check_path":{"type":"string","nullable":true,"example":"/healthz"},"startup_timeout_seconds":{"type":"number"},"min_instances":{"type":"number"},"max_instances":{"type":"number"},"concurrency":{"type":"number"},"idle_timeout_seconds":{"type":"number"},"request_timeout_seconds":{"type":"number"},"graceful_shutdown_seconds":{"type":"number"},"rollout_percent":{"type":"number","nullable":true,"description":"Web and private services, a gradual rollout: the share of the requests (1–50%) a new version takes first, for `rollout_minutes`, before it takes them all — or none, if its error rate climbs. Null or 0: all at once.","example":10},"rollout_minutes":{"type":"number","description":"How long a gradual rollout lasts (1–60 minutes).","example":10},"instances":{"type":"number","description":"Workers: fixed number of instances."},"cron_schedule":{"type":"string","nullable":true,"example":"*/5 * * * *"},"cron_timezone":{"type":"string","example":"America/Sao_Paulo"},"cron_timeout_seconds":{"type":"number"},"volume_mount_path":{"type":"string","nullable":true,"description":"Web, private and worker services: where the persistent volume is mounted, an absolute path such as /data. Set with `volume_size_gb`; both null: no volume. A service with a volume runs one instance, and a new version starts once the last one has stopped.","example":"/data"},"volume_size_gb":{"type":"number","nullable":true,"description":"The volume's size in GB (1–100). It only grows. Null with `volume_mount_path` null takes the volume away and deletes its data (needs `delete_volume`).","example":10}}},"CreateServiceV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":40,"example":"web"},"kind":{"type":"string","enum":["WEB","PRIVATE","WORKER","CRON"]},"source":{"$ref":"#/components/schemas/ServiceSourceDto"},"settings":{"$ref":"#/components/schemas/ServiceSettingsDto"},"auto_deploy":{"type":"boolean","default":true},"wait_for_ci":{"type":"boolean","default":false},"deletion_protection":{"type":"boolean","default":false},"env_group_ids":{"type":"array","items":{"type":"string"}},"variables":{"type":"array","items":{"$ref":"#/components/schemas/VariableInputDto"}},"deploy":{"type":"boolean","default":true,"description":"Start the first deployment right away."}},"required":["name","kind","source"]},"UpdateSettingsV1Dto":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/ServiceSettingsDto"},"deploy":{"type":"boolean","default":true,"description":"Deploy now (no rebuild). Otherwise the next deployment applies it."},"delete_volume":{"type":"boolean","description":"Confirms taking the service's volume away: its data is deleted once the version without it is live."}},"required":["settings"]},"DeletionProtectionV1Dto":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"UpdateSourceV1Dto":{"type":"object","properties":{"git":{"$ref":"#/components/schemas/GitSourceDto"},"image":{"$ref":"#/components/schemas/ImageSourceDto"},"auto_deploy":{"type":"boolean"},"wait_for_ci":{"type":"boolean"}}},"DeployActionV1Dto":{"type":"object","properties":{"action":{"type":"string","enum":["latest","ref","redeploy","apply"],"description":"`latest`: the branch tip or current image digest. `ref`: a commit, branch or tag. `redeploy`: the live commit again. `apply`: saved settings and variables on the live image, without a build."},"ref":{"type":"string","description":"For `ref`: a commit SHA, branch or tag."},"no_cache":{"type":"boolean","default":false,"description":"Build without the build cache."}},"required":["action"]},"RollbackV1Dto":{"type":"object","properties":{"revision_id":{"type":"string","format":"uuid"}},"required":["revision_id"]},"BuildLogDto":{"type":"object","properties":{"object":{"type":"string","example":"build_log"},"deployment_id":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["running","complete","none"],"description":"`running`: the last lines so far (ask again); `complete`: all of it, kept; `none`: no build ran (a rollback, a restart, a settings change) or it is older than what is kept (a service's 50 newest deployments, 30 days)."},"log":{"type":"string","description":"What the build printed: each step, in order."},"truncated":{"type":"boolean","description":"Only its last part (1 MiB) was kept: the output was longer."}},"required":["object","deployment_id","state","log","truncated"]},"EnvManifestEntryDto":{"type":"object","properties":{"key":{"type":"string"},"secret":{"type":"boolean"},"version":{"type":"number"},"source":{"type":"string","enum":["group","service","binding","platform"]}},"required":["key","secret","version","source"]},"RevisionDto":{"type":"object","properties":{"object":{"type":"string","example":"revision"},"id":{"type":"string","format":"uuid"},"number":{"type":"number"},"status":{"type":"string","enum":["PENDING","READY","FAILED","RETIRED"]},"live":{"type":"boolean","description":"True for the revision serving now."},"rollback_available":{"type":"boolean","description":"A rollback can target it."},"commit_sha":{"type":"string","nullable":true},"image":{"type":"string","description":"The image it runs, pinned by digest, as a path in the platform's registry — never the registry's own address, which is the platform's, not the customer's."},"digest":{"type":"string","nullable":true,"description":"The image digest (`sha256:…`) it runs."},"size":{"type":"string","nullable":true},"variables":{"description":"Variable names and versions — never values.","type":"array","items":{"$ref":"#/components/schemas/EnvManifestEntryDto"}},"deployment_id":{"type":"string","nullable":true,"format":"uuid"},"copied_from":{"type":"number","nullable":true,"description":"For a rollback or restart: the number of the revision this one copies."},"created_at":{"type":"string","format":"date-time"},"ready_at":{"type":"string","format":"date-time","nullable":true}},"required":["object","id","number","status","live","rollback_available","image","variables","created_at"]},"LogLineDto":{"type":"object","properties":{"ts":{"type":"string","format":"date-time","description":"When it was written: RFC 3339 UTC, nanoseconds."},"instance":{"type":"string","description":"Short id of the instance (or release/cron run) that wrote it; filter with `instance`."},"revision":{"type":"number","nullable":true},"message":{"type":"string"}},"required":["ts","instance","message"]},"ServiceLogsDto":{"type":"object","properties":{"lines":{"description":"Oldest first.","type":"array","items":{"$ref":"#/components/schemas/LogLineDto"}},"truncated":{"type":"boolean","description":"More lines matched than were returned (the newest are kept): narrow the window or raise `limit`."}},"required":["lines","truncated"]},"CronRunFailureDto":{"type":"object","properties":{"code":{"type":"string","enum":["CRON_FAILED","CRON_TIMED_OUT","CRON_OUT_OF_MEMORY","CRON_COMMAND_NOT_FOUND"]},"params":{"type":"object","additionalProperties":true,"description":"For the wording: `exit_code`, `line`, `timeout_seconds`, `program`, `command`."}},"required":["code","params"]},"CronRunDto":{"type":"object","properties":{"object":{"type":"string","example":"cron_run"},"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["RUNNING","SUCCEEDED","FAILED","TIMED_OUT","SKIPPED"]},"scheduled_at":{"type":"string","format":"date-time","description":"The schedule slot it ran for."},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"duration_ms":{"type":"number","nullable":true},"exit_code":{"type":"number","nullable":true},"failure":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CronRunFailureDto"}]},"revision_number":{"type":"number","nullable":true},"instance":{"type":"string","nullable":true,"description":"Its instance id: filter the service logs with it."}},"required":["object","id","status","scheduled_at"]},"ImportVariablesV1Dto":{"type":"object","properties":{"content":{"type":"string","description":"Contents of a .env file.","maxLength":262144},"secret_keys":{"type":"array","items":{"type":"string"}},"all_secret":{"type":"boolean","default":false},"replace_all":{"type":"boolean","default":false},"deploy":{"type":"boolean","default":true}},"required":["content"]},"DeleteVariablesV1Dto":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"deploy":{"type":"boolean","default":true,"description":"Apply now (a deployment of the live image); false only saves."}},"required":["keys"]},"DnsInstructionDto":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","A","ALIAS"]},"name":{"type":"string"},"value":{"type":"string"},"found":{"type":"boolean","nullable":true},"option":{"type":"string","enum":["alias","redirect"],"nullable":true,"description":"Root domains only: the record belongs to one of two ways to point the name — an ALIAS (served directly) or A records (redirected to www)."}},"required":["type","name","value"]},"DomainErrorDto":{"type":"object","properties":{"code":{"type":"string","enum":["TXT_NOT_FOUND","CNAME_NOT_FOUND","DNS_NOT_FOUND","EDGE_NOT_READY","CERTIFICATE_FAILED"]},"message":{"type":"string","nullable":true}},"required":["code"]},"DomainDto":{"type":"object","properties":{"object":{"type":"string","example":"domain"},"id":{"type":"string","format":"uuid"},"hostname":{"type":"string"},"is_default":{"type":"boolean"},"status":{"type":"string","enum":["PENDING_DNS","PENDING_CERTIFICATE","ACTIVE","FAILED","REMOVING"]},"apex":{"type":"boolean","description":"A root domain (no CNAME possible)."},"redirect_to":{"type":"string","nullable":true,"description":"For a root domain pointed at the redirect service: where visitors are sent."},"via_redirect":{"type":"boolean","description":"Verified on the redirect service: visitors are sent to `redirect_to`."},"instructions":{"type":"array","items":{"$ref":"#/components/schemas/DnsInstructionDto"}},"error":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/DomainErrorDto"}]},"activated_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}},"required":["object","id","hostname","is_default","status","apex","via_redirect","instructions","created_at"]},"AddDomainV1Dto":{"type":"object","properties":{"hostname":{"type":"string","example":"app.loja.com.br"}},"required":["hostname"]},"InspectImageV1Dto":{"type":"object","properties":{"image":{"type":"string","example":"ghost:6"},"registry_credential_id":{"type":"string","format":"uuid","description":"For a private image: the registry credential to read it with."}},"required":["image"]},"ImageInspectionDto":{"type":"object","properties":{"ports":{"description":"TCP ports the image exposes (its EXPOSE): the first is the usual port.","type":"array","items":{"type":"number"}},"volumes":{"description":"Paths the image declares as volumes (its VOLUME): where it keeps its data. Without a volume there, what it writes is lost when it restarts or sleeps.","type":"array","items":{"type":"string"}},"user":{"type":"string","nullable":true,"description":"The user it runs as; null: root."}},"required":["ports","volumes"]},"VolumeBackupDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"service_id":{"type":"string","format":"uuid"},"service_name":{"type":"string","description":"The service as it was named when backed up."},"kind":{"type":"string","enum":["DAILY","MANUAL","BEFORE_RESTORE","FINAL"],"description":"DAILY: the schedule, kept 7 days. MANUAL: asked for, kept until deleted. BEFORE_RESTORE: the data a restore replaced. FINAL: the last, made when the volume went."},"status":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","LOST"],"description":"LOST: it finished, but the backup store no longer holds it, so it cannot be restored (support has been told)."},"mount_path":{"type":"string"},"volume_size_gb":{"type":"number","description":"The volume's size then, GB: a restore's size."},"size_bytes":{"type":"string","nullable":true,"description":"The data it took, bytes, decimal string."},"requested_by":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","nullable":true,"format":"date-time"},"expires_at":{"type":"string","nullable":true,"format":"date-time","description":"Deleted from the store then; null: kept until deleted."},"restorable":{"type":"boolean","description":"It can be restored now."}},"required":["id","service_id","service_name","kind","status","mount_path","volume_size_gb","created_at","restorable"]},"RestoreVolumeV1Dto":{"type":"object","properties":{"backup_id":{"type":"string","format":"uuid","description":"The backup whose data replaces the volume's: one of this service's, or of another service of the project (its volume gone, or to copy its data here)."},"confirm_name":{"type":"string","description":"The service's name, typed back: the volume's current data is replaced (a backup of it is made first, kept 7 days)."}},"required":["backup_id","confirm_name"]},"VolumeEntryDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["file","dir","link","other"]},"size_bytes":{"type":"number"},"modified_at":{"type":"string","format":"date-time"}},"required":["name","type","size_bytes","modified_at"]},"VolumeFilesDto":{"type":"object","properties":{"path":{"type":"string","description":"The folder, from the volume's root ('' is the root)."},"entries":{"type":"array","items":{"$ref":"#/components/schemas/VolumeEntryDto"}},"truncated":{"type":"boolean","description":"More entries than are listed (a folder lists its first 2000)."}},"required":["path","entries","truncated"]},"SshKeyV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"ssh_key"},"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"laptop"},"type":{"type":"string","example":"ssh-ed25519","description":"ssh-ed25519, ssh-rsa, ecdsa-sha2-nistp256/384/521 or a security-key (sk-) type."},"fingerprint":{"type":"string","example":"SHA256:FSYVs4m4UVMgUnOIlcELhLOcVNJoK8Z2HMDs72skqOs","description":"As `ssh-keygen -lf` prints it."},"public_key":{"type":"string","description":"The OpenSSH line, as it goes into authorized_keys."},"created_at":{"type":"string","format":"date-time"}},"required":["object","id","name","type","fingerprint","public_key","created_at"]},"CreateSshKeyV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"example":"laptop"},"public_key":{"type":"string","maxLength":8192,"example":"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI… ana@laptop","description":"One OpenSSH public key line (the .pub file): ssh-ed25519 (recommended), ssh-rsa of 2048 bits or more, ecdsa-sha2-nistp256/384/521, sk-ssh-ed25519@openssh.com or sk-ecdsa-sha2-nistp256@openssh.com. The same key twice in one account is a 409."}},"required":["name","public_key"]},"UpdateSshKeyV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":64}},"required":["name"]},"ObjectStorageInfoDto":{"type":"object","properties":{"available":{"type":"boolean","description":"Whether buckets can be created now"},"endpoint":{"type":"string","example":"https://s3.mwcloud.com.br"},"region":{"type":"string","example":"auto"},"location":{"type":"string","nullable":true,"example":"north-america","description":"Where new buckets keep their data"},"bucket_limit":{"type":"number"},"key_limit":{"type":"number"},"restore_days":{"type":"number","description":"Days a deleted bucket can be restored"}},"required":["available","endpoint","region","bucket_limit","key_limit","restore_days"]},"CorsRuleDto":{"type":"object","properties":{"allowed_origins":{"example":["https://loja.com.br"],"type":"array","items":{"type":"string"}},"allowed_methods":{"example":["GET","PUT"],"type":"array","items":{"type":"string"}},"allowed_headers":{"example":["content-type"],"type":"array","items":{"type":"string"}},"expose_headers":{"example":["ETag"],"type":"array","items":{"type":"string"}},"max_age_seconds":{"type":"number","nullable":true,"example":3600}},"required":["allowed_origins","allowed_methods","allowed_headers","expose_headers"]},"LifecycleRuleDto":{"type":"object","properties":{"id":{"type":"string","example":"temporarios"},"prefix":{"type":"string","example":"tmp/","description":"Objects whose names start with it (\"\" for all)"},"expire_days":{"type":"number","example":7},"enabled":{"type":"boolean"}},"required":["id","prefix","expire_days","enabled"]},"BucketDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","example":"loja-uploads"},"location":{"type":"string","example":"north-america","description":"Where the data is kept"},"public":{"type":"boolean"},"public_url":{"type":"string","nullable":true,"description":"Where a public bucket serves its files"},"deletion_protection":{"type":"boolean"},"quota_bytes":{"type":"string","nullable":true,"description":"Size limit in bytes"},"quota_mode":{"type":"string","enum":["alert","block"]},"size_bytes":{"type":"string","description":"Bytes stored, as last measured (hourly)"},"object_count":{"type":"string"},"size_measured_at":{"type":"string","nullable":true,"format":"date-time"},"cors":{"type":"array","items":{"$ref":"#/components/schemas/CorsRuleDto"}},"lifecycle":{"type":"array","items":{"$ref":"#/components/schemas/LifecycleRuleDto"}},"abort_multipart_days":{"type":"number","nullable":true,"description":"Unfinished uploads are discarded after this many days"},"status":{"type":"string","enum":["active","deleting"]},"settings_pending":{"type":"boolean","description":"A change is still being applied by the storage service"},"deleted_at":{"type":"string","nullable":true,"format":"date-time"},"purge_after":{"type":"string","nullable":true,"format":"date-time","description":"When a deleted bucket is purged for good"},"created_at":{"type":"string","format":"date-time"}},"required":["id","name","location","public","deletion_protection","quota_mode","size_bytes","object_count","cors","lifecycle","status","settings_pending","created_at"]},"CreateBucketV1Dto":{"type":"object","properties":{"name":{"type":"string","example":"loja-uploads","description":"3–63 lowercase letters, digits and hyphens; unique on the platform"},"public":{"type":"boolean","default":false},"deletion_protection":{"type":"boolean","default":true},"quota_bytes":{"type":"string","nullable":true,"example":"50000000000"},"quota_mode":{"type":"string","enum":["alert","block"]},"cors":{"type":"array","items":{"$ref":"#/components/schemas/CorsRuleDto"}},"lifecycle":{"type":"array","items":{"$ref":"#/components/schemas/LifecycleRuleDto"}},"abort_multipart_days":{"type":"number","nullable":true,"default":7}},"required":["name"]},"UpdateBucketV1Dto":{"type":"object","properties":{"public":{"type":"boolean"},"deletion_protection":{"type":"boolean"},"quota_bytes":{"type":"string","nullable":true},"quota_mode":{"type":"string","enum":["alert","block"]},"cors":{"type":"array","items":{"$ref":"#/components/schemas/CorsRuleDto"}},"lifecycle":{"type":"array","items":{"$ref":"#/components/schemas/LifecycleRuleDto"}},"abort_multipart_days":{"type":"number","nullable":true}}},"ObjectEntryDto":{"type":"object","properties":{"key":{"type":"string"},"size":{"type":"number"},"last_modified":{"type":"string","nullable":true,"format":"date-time"},"etag":{"type":"string","nullable":true}},"required":["key","size"]},"ObjectListingDto":{"type":"object","properties":{"prefixes":{"description":"Folders under the prefix","type":"array","items":{"type":"string"}},"objects":{"type":"array","items":{"$ref":"#/components/schemas/ObjectEntryDto"}},"cursor":{"type":"string","nullable":true,"description":"Pass back for the next page"}},"required":["prefixes","objects"]},"DeleteObjectsV1Dto":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"]},"UploadUrlV1Dto":{"type":"object","properties":{"key":{"type":"string","example":"imagens/produto-1.jpg"},"content_type":{"type":"string","example":"image/jpeg"}},"required":["key"]},"SignedUrlDto":{"type":"object","properties":{"url":{"type":"string"},"expires_at":{"type":"string","format":"date-time"}},"required":["url","expires_at"]},"DownloadUrlV1Dto":{"type":"object","properties":{"key":{"type":"string"},"expires_seconds":{"type":"number","default":3600,"description":"60 seconds to 7 days"}},"required":["key"]},"AccessKeyDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"access_key_id":{"type":"string","example":"MWAKQ3VZ6EXAMPLE2345"},"access":{"type":"string","enum":["read_write","read_only"]},"buckets":{"nullable":true,"description":"Null: every bucket of the account, present and future","type":"array","items":{"type":"string"}},"expires_at":{"type":"string","nullable":true,"format":"date-time"},"last_used_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["id","name","access_key_id","access","created_at"]},"CreateAccessKeyV1Dto":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"example":"site da loja"},"access":{"type":"string","enum":["read_write","read_only"],"default":"read_write"},"buckets":{"description":"The buckets it reaches; leave out for all of them","type":"array","items":{"type":"string"}},"expires_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["name"]},"NewAccessKeyDto":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/AccessKeyDto"},"secret_access_key":{"type":"string","description":"Shown this once: it cannot be read again"}},"required":["key","secret_access_key"]},"BucketUsageDto":{"type":"object","properties":{"bucket_id":{"type":"string"},"name":{"type":"string","nullable":true,"description":"Null once the bucket is purged"},"size_bytes":{"type":"string"},"class_a_operations":{"type":"string"},"class_b_operations":{"type":"string"}},"required":["bucket_id","size_bytes","class_a_operations","class_b_operations"]},"StorageUsageDto":{"type":"object","properties":{"period_from":{"type":"string","format":"date-time"},"period_to":{"type":"string","format":"date-time"},"priced":{"type":"boolean","description":"False while a meter has no published price"},"stored_micro_gb_months":{"type":"string","description":"GB-months stored so far, in millionths"},"storage_allowance_micros":{"type":"string"},"storage_price_micro_cents":{"type":"string","nullable":true},"class_a_operations":{"type":"string"},"class_a_allowance":{"type":"string","description":"Included operations (one per micro-unit)"},"class_a_price_micro_cents":{"type":"string","nullable":true,"description":"Per million operations"},"class_b_operations":{"type":"string"},"class_b_allowance":{"type":"string"},"class_b_price_micro_cents":{"type":"string","nullable":true},"cost_micro_cents":{"type":"string","description":"This period so far (settled days and hours)"},"buckets":{"type":"array","items":{"$ref":"#/components/schemas/BucketUsageDto"}}},"required":["period_from","period_to","priced","stored_micro_gb_months","storage_allowance_micros","class_a_operations","class_a_allowance","class_b_operations","class_b_allowance","cost_micro_cents","buckets"]},"DatabaseSizeDto":{"type":"object","properties":{"code":{"type":"string","example":"pg-1-1"},"cpus":{"type":"number","example":1},"memory_mb":{"type":"number","example":1024},"disk_gb":{"type":"number","example":10},"max_connections":{"type":"number","nullable":true,"description":"PostgreSQL, MySQL, MariaDB: the server’s connection limit"},"max_memory_mb":{"type":"number","nullable":true,"description":"Redis: memory for data"},"hourly_micro_cents":{"type":"string","nullable":true,"description":"µ¢ per hour; null while no price is published"},"monthly_micro_cents":{"type":"string","nullable":true,"description":"µ¢ for 730 hours"}},"required":["code","cpus","memory_mb","disk_gb"]},"DatabaseParameterRuleDto":{"type":"object","properties":{"name":{"type":"string","example":"statement_timeout"},"kind":{"type":"string","enum":["integer","decimal","boolean","enum","memory","duration","timezone","offset","sql_mode","keyspace_events"]},"min":{"type":"number","nullable":true,"description":"integer/decimal: the value; memory: kB; duration: ms"},"max":{"type":"number","nullable":true},"values":{"description":"enum, boolean, sql_mode: the values","type":"array","items":{"type":"string"}},"default":{"type":"string","nullable":true,"description":"What runs when the customer sets nothing; null where the platform sizes it from the machine"},"off_value":{"type":"string","nullable":true,"description":"A value that turns the setting off, beside the range"}},"required":["name","kind","values"]},"SqlServerEditionInfoDto":{"type":"object","properties":{"edition":{"type":"string","enum":["express","standard","enterprise"]},"sizes":{"example":["ms-4-8"],"description":"The sizes it runs on: your own licence is licensed per machine, 4 cores at least","type":"array","items":{"type":"string"}},"own_licence":{"type":"boolean","description":"Your own licence (a product key, and your statement that it qualifies); false: Express, free"}},"required":["edition","sizes","own_licence"]},"SqlServerTermsDto":{"type":"object","properties":{"version":{"type":"string","example":"sql-server-2025"},"url":{"type":"string","description":"Microsoft’s licence terms, to read before accepting"}},"required":["version","url"]},"SqlServerAttestationDto":{"type":"object","properties":{"version":{"type":"string","example":"byol-fvb-2026-10-30"},"text":{"type":"string","description":"What licence_attestation: true states (show it beside the box)"}},"required":["version","text"]},"SqlServerInfoDto":{"type":"object","properties":{"editions":{"type":"array","items":{"$ref":"#/components/schemas/SqlServerEditionInfoDto"}},"collations":{"example":["SQL_Latin1_General_CP1_CI_AS","Latin1_General_CI_AS"],"type":"array","items":{"type":"string"}},"default_collation":{"type":"string","example":"SQL_Latin1_General_CP1_CI_AS"},"terms":{"$ref":"#/components/schemas/SqlServerTermsDto"},"attestation":{"$ref":"#/components/schemas/SqlServerAttestationDto"}},"required":["editions","collations","default_collation","terms","attestation"]},"DatabaseEngineInfoDto":{"type":"object","properties":{"engine":{"type":"string","enum":["postgres","mysql","mariadb","sqlserver","valkey"]},"versions":{"example":["18","17"],"description":"Release series on offer, the first the default","type":"array","items":{"type":"string"}},"sizes":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseSizeDto"}},"extensions":{"type":"array","items":{"type":"string"}},"eviction_policies":{"type":"array","items":{"type":"string"}},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseParameterRuleDto"}},"sqlserver":{"nullable":true,"description":"SQL Server: its editions (and the sizes each runs on), collations, and the terms to accept; null for every other engine","type":"object","allOf":[{"$ref":"#/components/schemas/SqlServerInfoDto"}]}},"required":["engine","versions","sizes","extensions","eviction_policies","parameters"]},"DatabasesInfoDto":{"type":"object","properties":{"available":{"type":"boolean","description":"Whether databases can be created now (prices are published)"},"engines":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseEngineInfoDto"}},"backups_available":{"type":"boolean"},"backup_retention_days":{"type":"number","nullable":true,"description":"Days back a point in time can be restored"},"retention_days":{"type":"number","description":"Days a deleted database keeps its backups"},"database_limit":{"type":"number"},"certificate_public":{"type":"boolean","description":"Drivers verify the certificate with the system’s roots (no CA to download)"},"hibernated_gb_month_micro_cents":{"type":"string","nullable":true,"description":"µ¢ per GB-month a hibernated database’s backups cost (all it pays while asleep); null while unpublished"}},"required":["available","engines","backups_available","retention_days","database_limit","certificate_public"]},"DatabaseCaDto":{"type":"object","properties":{"ca_certificate":{"type":"string","nullable":true,"description":"PEM of the CA to verify against; null when the system’s roots verify it"}}},"DatabaseLocationDto":{"type":"object","properties":{"id":{"type":"number","example":1},"name":{"type":"string","example":"Belo Horizonte"},"region_name":{"type":"string","nullable":true},"image":{"type":"string","nullable":true,"description":"The flag's file, as on the datacenter: the console derives the country from it."},"deployable":{"type":"boolean","description":"A database can be made here now; a location that is not is temporarily unavailable."},"instances":{"type":"number","example":2,"description":"How many of your VPS instances run here: a database next to the instances that use it answers in a fraction of a millisecond."}},"required":["id","name","deployable","instances"]},"DatabaseInstanceDto":{"type":"object","properties":{"id":{"type":"string","example":"4211","description":"The instance id, as GET /v1/instances gives it"},"name":{"type":"string","nullable":true,"example":"web-1"},"hostname":{"type":"string","nullable":true,"example":"web-1.example.com"},"datacenter_id":{"type":"number","nullable":true,"description":"Its location, as GET /databases/locations names them"},"addresses":{"example":["203.0.113.7","2001:db8::7"],"description":"Its public addresses now: what a database that allows it admits (IPv4 first, then IPv6).","type":"array","items":{"type":"string"}}},"required":["id","addresses"]},"DatabaseLicenceDto":{"type":"object","properties":{"edition":{"type":"string","enum":["express","standard","enterprise"]},"has_product_key":{"type":"boolean","description":"A product key is recorded: it is never shown, anywhere"},"terms_accepted_at":{"type":"string","nullable":true,"format":"date-time"},"terms_accepted_by":{"type":"string","nullable":true,"description":"Who accepted Microsoft’s licence terms"},"terms_version":{"type":"string","nullable":true},"attested_at":{"type":"string","nullable":true,"format":"date-time","description":"Your own licence: when you stated it qualifies"},"attested_by":{"type":"string","nullable":true},"attestation_version":{"type":"string","nullable":true},"running_edition":{"type":"string","nullable":true,"description":"The edition the server reports running; null before it reported"},"key_applied":{"type":"boolean","nullable":true,"description":"The recorded key is in force; null for Express or before the server reported"},"problem":{"type":"string","nullable":true,"description":"Why the edition is not the one asked for, in SQL Server’s words"}},"required":["edition","has_product_key"]},"DatabaseWarningDto":{"type":"object","properties":{"code":{"type":"string","enum":["express_database_size","licence_key_refused","log_chain_broken"]},"severity":{"type":"string","enum":["warning","critical"]},"params":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"What the sentence names: database, data_bytes, limit_bytes, percent; edition, problem; recovery_model"},"message":{"type":"string","description":"English, to fall back on"}},"required":["code","severity","params","message"]},"DatabaseServiceRefDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"project_id":{"type":"string"}},"required":["id","name","project_id"]},"DatabaseConnectionDto":{"type":"object","properties":{"host":{"type":"string","example":"0193f0e2-….db.mwapp.com.br"},"port":{"type":"number","description":"PostgreSQL: the direct port; MySQL, MariaDB, Redis: their port"},"pooler_port":{"type":"number","nullable":true,"description":"PostgreSQL: the pooler (use it from apps)"},"database":{"type":"string","nullable":true},"username":{"type":"string"},"uri":{"type":"string","description":"Without the password, the certificate VERIFIED: PostgreSQL `sslmode=verify-full&sslrootcert=system` (libpq 16+; older clients name their system CA bundle instead, e.g. /etc/ssl/certs/ca-certificates.crt), MySQL and MariaDB `ssl-mode=VERIFY_IDENTITY`, SQL Server `trustServerCertificate=false`, Redis `rediss://`."},"direct_uri":{"type":"string","nullable":true,"description":"PostgreSQL: the direct port, verified like `uri` — for migrations, and for apps that keep their own pool or use LISTEN, advisory locks, temporary tables or session settings"},"ipv6":{"type":"string","nullable":true,"description":"The public IPv6 address the name also answers for (an AAAA record), or null: only while the database admits some IPv6 source"}},"required":["host","port","username","uri"]},"DatabaseHealthDto":{"type":"object","properties":{"state":{"type":"string","enum":["ok","degraded","down","unknown"]},"reporting":{"type":"boolean","description":"The database reported in the last few minutes"},"observed_at":{"type":"string","nullable":true,"format":"date-time"},"server_version":{"type":"string","nullable":true},"pooler_up":{"type":"boolean","nullable":true},"backups_ok":{"type":"boolean","nullable":true},"connections":{"type":"number","nullable":true},"max_connections":{"type":"number","nullable":true},"disk_used_bytes":{"type":"string","nullable":true},"disk_total_bytes":{"type":"string","nullable":true},"data_bytes":{"type":"string","nullable":true},"memory_used_bytes":{"type":"string","nullable":true},"memory_max_bytes":{"type":"string","nullable":true}},"required":["state","reporting"]},"DatabaseBackupSetDto":{"type":"object","properties":{"type":{"type":"string","enum":["full","diff","incr"]},"started_at":{"type":"string","format":"date-time"},"stopped_at":{"type":"string","format":"date-time"},"size_bytes":{"type":"string"}},"required":["type","started_at","stopped_at","size_bytes"]},"DatabaseRestorePointDto":{"type":"object","properties":{"name":{"type":"string","example":"deploy-web-12"},"reason":{"type":"string","enum":["release","deleted","hibernated","import","customer"]},"service_name":{"type":"string","nullable":true,"description":"release: the service whose release it was made before"},"deployment_number":{"type":"number","nullable":true,"description":"release: the deployment"},"created_at":{"type":"string","format":"date-time"}},"required":["name","reason","created_at"]},"DatabaseBackupsDto":{"type":"object","properties":{"last_backup_at":{"type":"string","nullable":true,"format":"date-time"},"earliest_restore_at":{"type":"string","nullable":true,"format":"date-time","description":"Any point in time from here to now can be restored"},"sets":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseBackupSetDto"}},"restore_points":{"description":"Newest first, within the backups’ window","type":"array","items":{"$ref":"#/components/schemas/DatabaseRestorePointDto"}}},"required":["sets","restore_points"]},"DatabaseRestoreInfoDto":{"type":"object","properties":{"source_name":{"type":"string","nullable":true,"description":"Null once the source is purged"},"target":{"type":"string","enum":["latest","time","point"]},"time":{"type":"string","nullable":true,"format":"date-time"},"point":{"type":"string","nullable":true},"restored_at":{"type":"string","nullable":true,"format":"date-time","description":"Null while it is being restored"}},"required":["target"]},"DatabaseHibernationDto":{"type":"object","properties":{"since":{"type":"string","nullable":true,"format":"date-time","description":"When it fell asleep; null while it is going to sleep"},"backup_bytes":{"type":"string","description":"What its backups keep (bytes, a digit string): what it is billed for while asleep"},"monthly_micro_cents":{"type":"string","nullable":true,"description":"µ¢ a month for those backups, at the published rate"},"waking":{"type":"boolean","description":"It is waking: restoring its backups on a new machine"}},"required":["backup_bytes","waking"]},"DatabaseMaintenanceDto":{"type":"object","properties":{"day":{"type":"number","nullable":true,"description":"0 = Sunday … 6 = Saturday; null: every day"},"hour_utc":{"type":"number","minimum":0,"maximum":23},"next_at":{"type":"string","format":"date-time","description":"When the window next opens"},"scheduled_size":{"type":"string","nullable":true,"description":"A size waiting for the window"},"scheduled_disk_gb":{"type":"number","nullable":true,"description":"A disk waiting for the window, in GB"},"pending_update":{"type":"string","nullable":true,"description":"A minor update waiting for the window (a short restart)"}},"required":["hour_utc","next_at"]},"DatabaseDiskDto":{"type":"object","properties":{"size_gb":{"type":"number"},"used_bytes":{"type":"string","nullable":true,"description":"Used, as the database last said (bytes)"},"total_bytes":{"type":"string","nullable":true},"autogrow_max_gb":{"type":"number","nullable":true,"description":"It grows by itself past 85% used, up to this; null: off"}},"required":["size_gb"]},"DatabaseCostDto":{"type":"object","properties":{"month_to_date_micro_cents":{"type":"string"}},"required":["month_to_date_micro_cents"]},"DatabaseDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","example":"loja-prod"},"engine":{"type":"string","enum":["postgres","mysql","mariadb","sqlserver","valkey"]},"version":{"type":"string","example":"18","description":"The release series: \"18\", \"8.4\", \"11.8\""},"size":{"$ref":"#/components/schemas/DatabaseSizeDto"},"status":{"type":"string","enum":["provisioning","running","updating","failed","deleted","hibernating","hibernated"]},"notice":{"type":"string","nullable":true,"enum":["hibernate_failed"],"description":"hibernate_failed: it was asked to sleep, and stays running (its last backup failed)"},"failure":{"type":"string","nullable":true,"enum":["provisioning","configuration"],"description":"configuration: the last change failed and the database still serves the one before"},"changes_pending":{"type":"boolean","description":"A change saved that the database does not run yet"},"project_id":{"type":"string","nullable":true},"collation":{"type":"string","nullable":true,"description":"SQL Server: the server collation, chosen at creation; null for every other engine"},"licence":{"nullable":true,"description":"SQL Server: its edition and licence; null for every other engine","type":"object","allOf":[{"$ref":"#/components/schemas/DatabaseLicenceDto"}]},"warnings":{"description":"What to act on before it bites (empty: nothing)","type":"array","items":{"$ref":"#/components/schemas/DatabaseWarningDto"}},"datacenter_id":{"type":"number","nullable":true,"description":"Where it runs, for good: a location of GET /databases/locations (its project’s when it is in one). Null: no location is configured."},"services":{"description":"The services bound to it","type":"array","items":{"$ref":"#/components/schemas/DatabaseServiceRefDto"}},"connection":{"$ref":"#/components/schemas/DatabaseConnectionDto"},"allowed_cidrs":{"description":"Addresses and networks allowed besides the serverless services, as typed: each stays until removed, whoever holds it later","type":"array","items":{"type":"string"}},"allowed_vms":{"description":"Your VPS instances allowed by picking them: the database admits the public addresses each holds now, and an address the instance gives up (or the instance deleted) is admitted no longer","type":"array","items":{"$ref":"#/components/schemas/DatabaseInstanceDto"}},"extensions":{"type":"array","items":{"type":"string"}},"eviction_policy":{"type":"string","nullable":true},"parameters":{"type":"object","additionalProperties":{"type":"string"},"description":"The customer’s server settings; {} for the platform’s"},"extra_databases":{"description":"SQL: the customer’s other databases on the server","type":"array","items":{"type":"string"}},"backups_enabled":{"type":"boolean"},"deletion_protection":{"type":"boolean"},"health":{"$ref":"#/components/schemas/DatabaseHealthDto"},"backups":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/DatabaseBackupsDto"}]},"password_rotated_at":{"type":"string","format":"date-time"},"restore":{"nullable":true,"description":"What it was restored from","type":"object","allOf":[{"$ref":"#/components/schemas/DatabaseRestoreInfoDto"}]},"hibernation":{"nullable":true,"description":"While it sleeps, goes to sleep or wakes","type":"object","allOf":[{"$ref":"#/components/schemas/DatabaseHibernationDto"}]},"maintenance":{"$ref":"#/components/schemas/DatabaseMaintenanceDto"},"disk":{"$ref":"#/components/schemas/DatabaseDiskDto"},"cost":{"$ref":"#/components/schemas/DatabaseCostDto"},"created_at":{"type":"string","format":"date-time"},"deleted_at":{"type":"string","nullable":true,"format":"date-time"},"purge_after":{"type":"string","nullable":true,"format":"date-time","description":"When a deleted database’s backups are purged"}},"required":["id","name","engine","version","size","status","changes_pending","warnings","services","connection","allowed_cidrs","allowed_vms","extensions","parameters","extra_databases","backups_enabled","deletion_protection","health","password_rotated_at","maintenance","disk","cost","created_at"]},"CreateDatabaseV1Dto":{"type":"object","properties":{"name":{"type":"string","example":"loja-prod","description":"3–63 lowercase letters, digits and hyphens; unique in the account"},"engine":{"type":"string","enum":["postgres","mysql","mariadb","sqlserver","valkey"]},"version":{"type":"string","example":"18","description":"A release series from info (\"18\", \"8.4\", \"11.8\"); the newest when left out"},"size":{"type":"string","example":"pg-1-1"},"project_id":{"type":"string","nullable":true},"datacenter_id":{"type":"number","nullable":true,"example":1,"description":"Where it runs, for good: a location from GET /databases/locations, as for a VPS. In a project it is the project’s (leave it out). Left out on its own: the platform’s default location."},"allowed_cidrs":{"example":["203.0.113.7"],"type":"array","items":{"type":"string"}},"allowed_vms":{"example":["4211"],"description":"Your VPS instances (ids from GET /v1/instances) allowed by picking them: the database follows their public addresses as they change.","type":"array","items":{"type":"string"}},"extensions":{"example":["vector"],"type":"array","items":{"type":"string"}},"eviction_policy":{"type":"string","example":"noeviction"},"backups":{"type":"boolean","default":true,"description":"PostgreSQL, MySQL, MariaDB: continuous backups"},"deletion_protection":{"type":"boolean","default":true},"edition":{"type":"string","enum":["express","standard","enterprise"],"default":"express","description":"SQL Server: Express (free) or your own licence, standard or enterprise (a product key and licence_attestation; sizes of 4 vCPUs or more)."},"product_key":{"type":"string","example":"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX","description":"SQL Server standard or enterprise: your product key (25 letters and digits). Kept encrypted; never shown again, by any API."},"accept_terms":{"type":"boolean","description":"SQL Server: true to accept Microsoft’s licence terms (GET /databases/info: engines[].sqlserver.terms) — required; who and when are recorded."},"licence_attestation":{"type":"boolean","description":"SQL Server standard or enterprise: true to state your licence qualifies — Software Assurance or a subscription, under Microsoft’s Flexible Virtualization Benefit (engines[].sqlserver.attestation.text). Required for your own licence; who and when are recorded."},"collation":{"type":"string","example":"SQL_Latin1_General_CP1_CI_AS","description":"SQL Server: the server collation (engines[].sqlserver.collations; SQL_Latin1_General_CP1_CI_AS when left out). It never changes afterwards."}},"required":["name","engine","size"]},"CreatedDatabaseDto":{"type":"object","properties":{"database":{"$ref":"#/components/schemas/DatabaseDto"},"password":{"type":"string","nullable":true,"description":"The owner’s password, shown this once (it can be revealed again, audited). Null for a developer: an administrator reveals it."}},"required":["database","password"]},"UpdateDatabaseV1Dto":{"type":"object","properties":{"allowed_cidrs":{"description":"The whole list of addresses and networks allowed (a typed address stays until removed, whoever holds it later: pick your own VPS instances with allowed_vms instead)","type":"array","items":{"type":"string"}},"allowed_vms":{"example":["4211"],"description":"The whole list of your VPS instances allowed by picking them (ids from GET /v1/instances); [] removes them all.","type":"array","items":{"type":"string"}},"extensions":{"description":"Extensions are only ever added from here","type":"array","items":{"type":"string"}},"eviction_policy":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"type":"string"},"description":"The whole map of server settings (GET /databases/info lists them per engine); {} goes back to the platform’s. Applied without a restart."},"backups":{"type":"boolean"},"deletion_protection":{"type":"boolean"},"project_id":{"type":"string","nullable":true},"maintenance_day":{"type":"number","nullable":true,"minimum":0,"maximum":6,"description":"The maintenance window’s day (0 = Sunday); null: every day"},"maintenance_hour_utc":{"type":"number","minimum":0,"maximum":23,"description":"The maintenance window’s hour, UTC"},"disk_autogrow_max_gb":{"type":"number","nullable":true,"description":"Grow the disk by itself past 85% used, up to this many GB; null: off"},"edition":{"type":"string","enum":["standard","enterprise"],"description":"SQL Server: move up to your own licence (express → standard → enterprise), with product_key and licence_attestation; or a new product_key for the edition it runs. It never goes down: restore into a new database instead."},"product_key":{"type":"string","example":"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX","description":"SQL Server: the product key of the edition asked for. Kept encrypted; never shown again."},"licence_attestation":{"type":"boolean","description":"SQL Server: true to state your licence qualifies, made again with every new key or edition."}}},"ResizeDatabaseV1Dto":{"type":"object","properties":{"size":{"type":"string","example":"pg-2-4","description":"A size from info (CPU and memory; its disk if bigger)"},"disk_gb":{"type":"number","example":60,"description":"A bigger disk, in GB (it never shrinks)"},"when":{"type":"string","enum":["now","maintenance"],"description":"now (default), or in the maintenance window — a disk that only grows needs no restart and is always now. The size it has already, for the window, calls off what was scheduled."}}},"DatabasePasswordDto":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"]},"OpenDatabaseTunnelV1Dto":{"type":"object","properties":{"pooler":{"type":"boolean","default":false,"description":"Through the pooler (PostgreSQL) rather than to the server"}}},"DatabaseTunnelDto":{"type":"object","properties":{"url":{"type":"string","example":"wss://api.mwcloud.com.br/databases/tunnel/2kH…","description":"One TCP connection to the database, carried over this WebSocket as binary messages: once, before expires_at. TLS stays end to end — the client verifies the database's own name (hostname) through it."},"expires_at":{"type":"string","format":"date-time"},"hostname":{"type":"string","example":"01a17075-c957-770d.db.mwapp.com.br","description":"The name its certificate carries"},"port":{"type":"number","example":5432,"description":"The port the tunnel reaches"},"fingerprint_sha256":{"type":"string","nullable":true,"example":"F0:E7:2C:…","description":"The SHA-256 fingerprint of the database's certificate: pin it where a client cannot check the name through the tunnel (MariaDB's --ssl-fp)"}},"required":["url","expires_at","hostname","port"]},"RestoreDatabaseV1Dto":{"type":"object","properties":{"name":{"type":"string","example":"loja-prod-restaurado","description":"The new database’s name (a restore never writes over a database)"},"target":{"type":"string","enum":["latest","time","point"],"description":"The last moment the backups hold, an instant, or a restore point"},"time":{"type":"string","format":"date-time","description":"For time: an instant inside the backups’ window"},"point":{"type":"string","example":"deploy-web-12","description":"For point: a restore point’s name (GET …/restore-points)"},"size":{"type":"string","example":"pg-2-4","description":"A size of the same engine; the source’s when left out"},"project_id":{"type":"string","nullable":true,"description":"The source’s project when left out"},"datacenter_id":{"type":"number","nullable":true,"description":"Where the new database runs: a location from GET /databases/locations. In a project it is the project’s (leave it out); otherwise the source’s when left out."},"deletion_protection":{"type":"boolean","default":true},"accept_terms":{"type":"boolean","description":"SQL Server (a new machine): true to accept Microsoft’s licence terms — required."},"edition":{"type":"string","enum":["express","standard","enterprise"],"description":"SQL Server: the new database’s edition; the source’s when left out. A restore is how an edition goes down (to express)."},"product_key":{"type":"string","description":"SQL Server standard or enterprise: a product key for the new database; the source’s when left out. Never shown again."},"licence_attestation":{"type":"boolean","description":"SQL Server standard or enterprise: true to state your licence covers the new machine too — required for your own licence."}},"required":["name","target"]},"DatabaseImportReportDto":{"type":"object","properties":{"tables":{"type":"number","description":"Tables the database has after the import"},"left_out":{"type":"number","description":"Statements PostgreSQL could not run and left out"},"notes":{"description":"The first of them, in the server’s words","type":"array","items":{"type":"string"}},"definers_removed":{"type":"number","description":"MySQL, MariaDB: DEFINER clauses removed (those objects run as the owner)"},"server_statements_removed":{"type":"number","description":"MySQL, MariaDB: statements only the source server could run, removed"},"other_database":{"type":"string","nullable":true,"description":"The database name the dump named, imported into this one"},"database":{"type":"string","nullable":true,"description":"SQL Server (a .bak): the database it was restored as"},"source_database":{"type":"string","nullable":true,"description":"SQL Server: the database the backup was made of"},"source_version":{"type":"string","nullable":true,"example":"16.0.4135","description":"SQL Server: the version of the SQL Server that made it"},"backup_finished_at":{"type":"string","nullable":true,"description":"SQL Server: when that backup finished, as the file says"},"replaced":{"type":"boolean","nullable":true,"description":"SQL Server: a database of that name was overwritten (replace)"}},"required":["tables","left_out","notes","definers_removed","server_statements_removed"]},"DatabaseJobDto":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["export","import"]},"status":{"type":"string","enum":["uploading","pending","running","succeeded","failed","expired"],"description":"uploading: an import of a file (a .bak, a dump) waiting for its upload to be completed"},"format":{"type":"string","nullable":true,"enum":["dump","sql.gz","bak","sql"],"description":"An export’s format, or an imported file’s: dump (PostgreSQL’s custom format), sql, sql.gz, bak (SQL Server)"},"size_bytes":{"type":"string","nullable":true,"description":"An export’s size (bytes)"},"source":{"type":"string","nullable":true,"description":"An import’s source, without its password"},"replace":{"type":"boolean","nullable":true},"database":{"type":"string","nullable":true,"description":"SQL Server: the database an import of a file (.bak) is restored as, or an export is of when it is not the first one (null: the first)"},"error_code":{"type":"string","nullable":true,"enum":["source_auth","source_unreachable","source_tls","source_private","source_newer","extensions_missing","extensions_unsupported","not_empty","interrupted","upload_cancelled","upload_expired","upload_failed","moved","not_a_backup","backup_newer","express_limit","agent_outdated","upload_missing","not_a_dump","file_zip","file_tar","file_wrong_engine","file_utf16","file_compressed","file_bak","dump_newer","plain_sql_unsupported","dump_needs_admin","dump_other_database","dump_collation","dump_table_exists","dump_packet","dump_error","other"],"description":"What went wrong, to show (localized); `error` is the detail"},"error":{"type":"string","nullable":true,"description":"The detail, in the database tools’ words (English)"},"report":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/DatabaseImportReportDto"}]},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","nullable":true,"format":"date-time"},"finished_at":{"type":"string","nullable":true,"format":"date-time"},"expires_at":{"type":"string","nullable":true,"format":"date-time","description":"When an export’s dump is removed"}},"required":["id","kind","status","created_at"]},"ExportDatabaseV1Dto":{"type":"object","properties":{"database":{"type":"string","example":"erp_empresa2","description":"SQL Server: which of its databases to back up — another the platform made, or one you made yourself (as its last report lists it); the first one when left out. Every other engine dumps its first database only."}}},"DatabaseExportLinkDto":{"type":"object","properties":{"url":{"type":"string","description":"Downloads the dump; works for a few minutes, from any browser or tool"},"expires_at":{"type":"string","format":"date-time"},"filename":{"type":"string","example":"loja-prod-2026-10-24-1830.dump"}},"required":["url","expires_at","filename"]},"ImportDatabaseV1Dto":{"type":"object","properties":{"source_url":{"type":"string","example":"postgres://app:secret@db.example.com:5432/shop?sslmode=require","description":"The database to copy from, with a user that can read all of it: postgres:// (or postgresql://) for PostgreSQL, mysql:// or mariadb:// for MySQL and MariaDB. Kept encrypted only until the import ends."},"replace":{"type":"boolean","description":"Replace the tables the source has; otherwise this database must have none"}},"required":["source_url"]},"StartDatabaseImportUploadV1Dto":{"type":"object","properties":{"file_name":{"type":"string","example":"loja.sql.gz","description":"The file’s name, which says its format: SQL Server, a backup (.bak); PostgreSQL, a dump (.sql, .sql.gz, or pg_dump’s custom format .dump); MySQL and MariaDB, a dump (.sql, .sql.gz)"},"size_bytes":{"type":"number","example":1073741824,"description":"Its size in bytes: the parts are cut from it, and at most the database’s disk"},"database":{"type":"string","example":"loja","description":"SQL Server: the database it is restored as — one of yours, or a new name (it then joins your databases); the first one when left out. Any other engine imports into its own database"},"replace":{"type":"boolean","description":"SQL Server: overwrite a database of that name that already holds tables. A dump: drop what it creates before creating it (tables, sequences, views, types; functions are replaced). Without it, an import refuses a database that already holds tables"}},"required":["file_name","size_bytes"]},"DatabaseImportUploadTicketDto":{"type":"object","properties":{"part_bytes":{"type":"number","example":16777216,"description":"Each part’s size, the last one less: 16 MiB — more (a whole number of MiB, up to 64 MiB) only for a file too big for 10,000 parts of 16 MiB (past 156 GiB). Cut the file by this number, never by one of your own."},"part_count":{"type":"number"},"part_numbers":{"description":"The 1-based parts these URLs are for: all of them, or what is still missing","type":"array","items":{"type":"number"}},"part_urls":{"description":"Where each part goes, in the order of part_numbers: the API’s own PUT …/imports/uploads/{job}/parts/{n}, with the same Authorization as this call, Content-Type: application/octet-stream and Content-Length exactly the part’s size; the body is the file’s bytes from offset (n − 1) × part_bytes. Several at once, any order; a part sent again replaces the one before.","type":"array","items":{"type":"string"}},"expires_at":{"type":"string","format":"date-time","description":"When the upload is abandoned (its parts removed) if no part arrives before it; every part received moves it on"},"uploaded_bytes":{"type":"number","description":"What the store already holds of the file (bytes)"}},"required":["part_bytes","part_count","part_numbers","part_urls","expires_at","uploaded_bytes"]},"DatabaseImportUploadDto":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/DatabaseJobDto"},"upload":{"$ref":"#/components/schemas/DatabaseImportUploadTicketDto"}},"required":["job","upload"]},"DatabaseImportPartDto":{"type":"object","properties":{"part_number":{"type":"number","example":3},"size_bytes":{"type":"number","example":16777216,"description":"The bytes received"},"expires_at":{"type":"string","format":"date-time","description":"When the upload is abandoned if no other part arrives (each part moves it on)"}},"required":["part_number","size_bytes","expires_at"]},"DatabaseMetricsDto":{"type":"object","properties":{"range":{"type":"string","enum":["1h","6h","24h","7d","30d"]},"step_seconds":{"type":"number"},"series":{"type":"object","additionalProperties":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]}}},"description":"Each series: one [ISO time, value or null] per step. cpu_percent, memory_bytes, then the engine’s (connections, transactions_per_second, cache_hit_ratio…)"},"memory_limit_bytes":{"type":"number","nullable":true},"max_connections":{"type":"number","nullable":true}},"required":["range","step_seconds","series"]},"DatabaseTopQueryDto":{"type":"object","properties":{"database":{"type":"string"},"query":{"type":"string","description":"Normalised: literals as placeholders"},"calls":{"type":"number"},"total_ms":{"type":"number"},"mean_ms":{"type":"number"},"rows":{"type":"number"}},"required":["database","query","calls","total_ms","mean_ms","rows"]},"DatabaseSlowQueryDto":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"duration_ms":{"type":"number"},"user":{"type":"string"},"database":{"type":"string"},"query":{"type":"string"}},"required":["at","duration_ms","user","database","query"]},"DatabaseQueriesDto":{"type":"object","properties":{"collected_at":{"type":"string","nullable":true,"format":"date-time"},"top":{"type":"array","items":{"$ref":"#/components/schemas/DatabaseTopQueryDto"}},"slow":{"description":"The 100 newest, over 7 days","type":"array","items":{"$ref":"#/components/schemas/DatabaseSlowQueryDto"}},"slow_last_day":{"type":"number"}},"required":["top","slow","slow_last_day"]},"DatabaseUserDto":{"type":"object","properties":{"name":{"type":"string","example":"analista"},"access":{"type":"string","enum":["admin","readwrite","readonly"]},"databases":{"description":"The databases a readwrite or readonly user reaches; empty for an admin","type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"}},"required":["name","access","databases","created_at"]},"CreateDatabaseUserV1Dto":{"type":"object","properties":{"name":{"type":"string","example":"analista"},"access":{"type":"string","enum":["admin","readwrite","readonly"],"description":"admin: as the owner, in every database; readwrite (default) and readonly: the tables of `databases`"},"databases":{"description":"Default: the first database","type":"array","items":{"type":"string"}}},"required":["name"]},"CreatedDatabaseUserDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/DatabaseUserDto"},"password":{"type":"string","description":"Shown now, and on request after"}},"required":["user","password"]},"UpdateDatabaseUserV1Dto":{"type":"object","properties":{"access":{"type":"string","enum":["admin","readwrite","readonly"]},"databases":{"type":"array","items":{"type":"string"}}}},"CreateExtraDatabaseV1Dto":{"type":"object","properties":{"name":{"type":"string","example":"relatorios"}},"required":["name"]},"DeleteExtraDatabaseV1Dto":{"type":"object","properties":{"confirm_name":{"type":"string","description":"The database’s name, typed to confirm"}},"required":["confirm_name"]},"WebhookDto":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["GENERIC","SLACK","DISCORD"]},"url":{"type":"string","example":"https://hooks.slack.com/…XXXX","description":"The host and the last characters: the address is a credential"},"description":{"type":"string","nullable":true},"events":{"description":"Empty: every event","type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"disabled_reason":{"type":"string","nullable":true,"enum":["failing","removed"],"description":"Why it was switched off"},"consecutive_failures":{"type":"number"},"last_success_at":{"type":"string","nullable":true,"format":"date-time"},"last_failure_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["id","kind","url","events","enabled","consecutive_failures","created_at"]},"WebhookEventTypesDto":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string"}}},"required":["events"]},"CreateWebhookV1Dto":{"type":"object","properties":{"kind":{"type":"string","enum":["GENERIC","SLACK","DISCORD"],"default":"GENERIC","description":"GENERIC: your address gets our JSON, signed"},"url":{"type":"string","example":"https://hooks.slack.com/services/T000/B000/XXXX"},"description":{"type":"string","example":"Avisos da loja"},"events":{"example":["deployment.failed","alert.*"],"description":"Empty or absent: every event. deployment.succeeded, deployment.failed, service.failed, service.recovered, cron.failed, cron.recovered, alert.firing, alert.resolved, database.ready, database.failed, database.hibernated, database.woken, database.disk_grown, database.connections_high, database.connections_ok, billing.egress_warning, billing.egress_exceeded, billing.spend_cap_warning, billing.spend_cap_reached, billing.runway_low, webhook.test; a family as `alert.*`","type":"array","items":{"type":"string"}},"locale":{"type":"string","example":"pt-BR","description":"The language of a Slack or Discord message"}},"required":["url"]},"CreatedWebhookDto":{"type":"object","properties":{"webhook":{"$ref":"#/components/schemas/WebhookDto"},"secret":{"type":"string","nullable":true,"description":"GENERIC: the signing secret, shown this once"}},"required":["webhook"]},"UpdateWebhookV1Dto":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string"}},"description":{"type":"string","nullable":true},"enabled":{"type":"boolean"}}},"WebhookSecretDto":{"type":"object","properties":{"secret":{"type":"string","description":"The new signing secret, shown this once"}},"required":["secret"]},"WebhookTestDto":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"number","nullable":true},"error":{"type":"string","nullable":true}},"required":["ok"]},"WebhookDeliveryDto":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"event_type":{"type":"string","example":"deployment.failed"},"status":{"type":"string","enum":["PENDING","SUCCEEDED","FAILED"]},"attempts":{"type":"number"},"last_status_code":{"type":"number","nullable":true},"last_error":{"type":"string","nullable":true},"next_attempt_at":{"type":"string","nullable":true,"format":"date-time"},"delivered_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["id","event_id","event_type","status","attempts","created_at"]},"SecurityResourceRefV1Dto":{"type":"object","properties":{"type":{"type":"string","enum":["instance","serverless_service","database","bucket","storage_key","account"]},"id":{"type":"string","description":"Its id as text (the instance id for an instance)."},"name":{"type":"string"}},"required":["type","id","name"]},"SecurityFindingV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"security_finding"},"id":{"type":"string"},"resource":{"$ref":"#/components/schemas/SecurityResourceRefV1Dto"},"rule_id":{"type":"string","description":"Stable id of the check that raised it (the same across resources)."},"category":{"type":"string","enum":["EXPOSED_SERVICE","AMPLIFICATION_VECTOR","VULNERABLE_SOFTWARE","WEAK_ENCRYPTION","CERTIFICATE","MISCONFIGURATION","INFORMATION_DISCLOSURE","DEFAULT_CREDENTIALS","ACCESS_CONTROL","NETWORK_POLICY"]},"severity":{"type":"string","enum":["critical","high","medium","low","info"]},"status":{"type":"string","enum":["open","resolved","excepted","false_positive"]},"risk_score":{"type":"number","description":"Ordering weight: severity, exploitability and exposure together."},"known_exploited":{"type":"boolean","description":"Listed as actively exploited (CISA KEV)."},"cve_ids":{"example":["CVE-2024-6387"],"type":"array","items":{"type":"string"}},"port":{"type":"number","nullable":true},"protocol":{"type":"string","nullable":true},"title":{"type":"string"},"description":{"type":"string"},"impact":{"type":"string","description":"Why it matters."},"recommendation":{"type":"string","description":"What to do about it."},"first_seen_at":{"type":"string","format":"date-time"},"last_seen_at":{"type":"string","format":"date-time"},"last_verified_at":{"type":"string","nullable":true,"format":"date-time","description":"When a check last confirmed it."},"resolved_at":{"type":"string","nullable":true,"format":"date-time"},"occurrence_count":{"type":"number"}},"required":["object","id","resource","rule_id","category","severity","status","risk_score","known_exploited","cve_ids","title","description","impact","recommendation","first_seen_at","last_seen_at","occurrence_count"]},"SecurityFindingEventV1Dto":{"type":"object","properties":{"type":{"type":"string","example":"appeared"},"occurred_at":{"type":"string","format":"date-time"}},"required":["type","occurred_at"]},"SecurityFindingDetailV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"security_finding"},"id":{"type":"string"},"resource":{"$ref":"#/components/schemas/SecurityResourceRefV1Dto"},"rule_id":{"type":"string","description":"Stable id of the check that raised it (the same across resources)."},"category":{"type":"string","enum":["EXPOSED_SERVICE","AMPLIFICATION_VECTOR","VULNERABLE_SOFTWARE","WEAK_ENCRYPTION","CERTIFICATE","MISCONFIGURATION","INFORMATION_DISCLOSURE","DEFAULT_CREDENTIALS","ACCESS_CONTROL","NETWORK_POLICY"]},"severity":{"type":"string","enum":["critical","high","medium","low","info"]},"status":{"type":"string","enum":["open","resolved","excepted","false_positive"]},"risk_score":{"type":"number","description":"Ordering weight: severity, exploitability and exposure together."},"known_exploited":{"type":"boolean","description":"Listed as actively exploited (CISA KEV)."},"cve_ids":{"example":["CVE-2024-6387"],"type":"array","items":{"type":"string"}},"port":{"type":"number","nullable":true},"protocol":{"type":"string","nullable":true},"title":{"type":"string"},"description":{"type":"string"},"impact":{"type":"string","description":"Why it matters."},"recommendation":{"type":"string","description":"What to do about it."},"first_seen_at":{"type":"string","format":"date-time"},"last_seen_at":{"type":"string","format":"date-time"},"last_verified_at":{"type":"string","nullable":true,"format":"date-time","description":"When a check last confirmed it."},"resolved_at":{"type":"string","nullable":true,"format":"date-time"},"occurrence_count":{"type":"number"},"references":{"description":"Further reading.","type":"array","items":{"type":"string"}},"events":{"description":"Newest first.","type":"array","items":{"$ref":"#/components/schemas/SecurityFindingEventV1Dto"}}},"required":["object","id","resource","rule_id","category","severity","status","risk_score","known_exploited","cve_ids","title","description","impact","recommendation","first_seen_at","last_seen_at","occurrence_count","references","events"]},"SecuritySeverityCountsV1Dto":{"type":"object","properties":{"critical":{"type":"number"},"high":{"type":"number"},"medium":{"type":"number"},"low":{"type":"number"},"info":{"type":"number"}},"required":["critical","high","medium","low","info"]},"SecurityEngineV1Dto":{"type":"object","properties":{"engine":{"type":"string","enum":["nmap","sslyze","nuclei","openvas","posture","image"],"example":"posture"},"score":{"type":"number","nullable":true,"description":"Null until it has run."},"grade":{"type":"string","nullable":true},"last_scan_at":{"type":"string","nullable":true,"format":"date-time"},"open_findings":{"$ref":"#/components/schemas/SecuritySeverityCountsV1Dto"}},"required":["engine","open_findings"]},"SecurityInstanceCoverageV1Dto":{"type":"object","properties":{"total":{"type":"number"},"assessed":{"type":"number"},"awaiting_first_scan":{"type":"number"},"excluded":{"type":"number","description":"Not eligible (no public address, for one)."},"opted_out":{"type":"number","description":"Scanning turned off for them."},"excluded_reasons":{"type":"object","additionalProperties":{"type":"number"}}},"required":["total","assessed","awaiting_first_scan","excluded","opted_out","excluded_reasons"]},"SecurityResourceCoverageV1Dto":{"type":"object","properties":{"type":{"type":"string","enum":["serverless_service","database","bucket","storage_key","account"]},"total":{"type":"number"},"checked":{"type":"number","description":"How many the configuration checks have looked at."},"image_scans":{"type":"object","nullable":true,"additionalProperties":{"type":"number"},"description":"Serverless services: container image scans by state."}},"required":["type","total","checked"]},"SecurityResourceScoreV1Dto":{"type":"object","properties":{"type":{"type":"string","enum":["instance","serverless_service","database","bucket","storage_key","account"]},"id":{"type":"string"},"name":{"type":"string","nullable":true},"score":{"type":"number","nullable":true},"grade":{"type":"string","nullable":true},"open_critical":{"type":"number"},"open_high":{"type":"number"}},"required":["type","id","open_critical","open_high"]},"SecurityOverviewV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"security_overview"},"score":{"type":"number","nullable":true,"description":"0–100; null before the first check."},"grade":{"type":"string","nullable":true,"example":"B"},"last_scan_at":{"type":"string","nullable":true,"format":"date-time","description":"The most recent check of anything."},"scanning_available":{"type":"boolean","description":"False while the platform has scanning paused: the score is not being refreshed."},"open_findings":{"description":"What still counts: neither resolved nor excepted.","allOf":[{"$ref":"#/components/schemas/SecuritySeverityCountsV1Dto"}]},"engines":{"description":"The parts the score is made of.","type":"array","items":{"$ref":"#/components/schemas/SecurityEngineV1Dto"}},"instances":{"$ref":"#/components/schemas/SecurityInstanceCoverageV1Dto"},"resources":{"description":"Every other kind of resource.","type":"array","items":{"$ref":"#/components/schemas/SecurityResourceCoverageV1Dto"}},"worst_instances":{"description":"Up to five, worst first.","type":"array","items":{"$ref":"#/components/schemas/SecurityResourceScoreV1Dto"}},"worst_resources":{"description":"Up to five, worst first.","type":"array","items":{"$ref":"#/components/schemas/SecurityResourceScoreV1Dto"}}},"required":["object","scanning_available","open_findings","engines","instances","resources","worst_instances","worst_resources"]},"SecurityExceptionV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"security_exception"},"id":{"type":"string"},"scope":{"type":"string","enum":["finding","rule","port"]},"status":{"type":"string","enum":["active","expired","revoked"]},"finding_id":{"type":"string","nullable":true,"format":"uuid","description":"With scope `finding`: the finding it was accepted for."},"rule_id":{"type":"string","nullable":true},"port":{"type":"number","nullable":true},"protocol":{"type":"string","nullable":true},"instance_id":{"type":"string","nullable":true},"resource":{"nullable":true,"description":"For a finding on something other than an instance.","type":"object","allOf":[{"$ref":"#/components/schemas/SecurityResourceRefV1Dto"}]},"justification":{"type":"string"},"starts_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"revoked_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","scope","status","justification","starts_at","expires_at"]},"CreateSecurityExceptionV1Dto":{"type":"object","properties":{"scope":{"type":"string","enum":["finding","rule","port"],"description":"One finding, a check everywhere (or on one instance), or a port."},"finding_id":{"type":"string","format":"uuid","description":"With scope `finding`."},"rule_id":{"type":"string","description":"With scope `rule`."},"port":{"type":"number","description":"With scope `port`."},"protocol":{"type":"string","enum":["tcp","udp"]},"instance_id":{"type":"string","description":"Limits a `rule` or `port` exception to one instance; account-wide otherwise."},"justification":{"type":"string","description":"Why the risk is accepted (kept for the audit).","minLength":30,"maxLength":2000},"expires_at":{"type":"string","format":"date-time","description":"When it lapses; capped by the platform’s maximum."}},"required":["scope","justification","expires_at"]},"SecuritySettingsV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"security_settings"},"enabled":{"type":"boolean","description":"Scanning is on for the account."},"default_frequency":{"type":"string","enum":["weekly","monthly"],"description":"How often instances are checked."},"notify_on_new_critical":{"type":"boolean"},"notify_on_score_drop":{"type":"boolean"}},"required":["object","enabled","default_frequency","notify_on_new_critical","notify_on_score_drop"]},"UpdateSecuritySettingsV1Dto":{"type":"object","properties":{"enabled":{"type":"boolean"},"default_frequency":{"type":"string","enum":["weekly","monthly"],"description":"Applies to every instance at once."},"notify_on_new_critical":{"type":"boolean"},"notify_on_score_drop":{"type":"boolean"}}},"InstanceSecurityV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"instance_security"},"instance_id":{"type":"string"},"state":{"type":"string","enum":["assessed","not_yet_scanned","excluded","opted_out","account_opted_out"]},"excluded_reason":{"type":"string","nullable":true,"description":"With state `excluded`."},"score":{"type":"number","nullable":true},"grade":{"type":"string","nullable":true},"last_scan_at":{"type":"string","nullable":true,"format":"date-time"},"next_scan_due_at":{"type":"string","nullable":true,"format":"date-time"},"schedule_frequency":{"type":"string","nullable":true,"example":"weekly"},"open_findings":{"$ref":"#/components/schemas/SecuritySeverityCountsV1Dto"},"engines":{"type":"array","items":{"$ref":"#/components/schemas/SecurityEngineV1Dto"}},"scanning_available":{"type":"boolean","description":"False while the platform has scanning paused."}},"required":["object","instance_id","state","open_findings","engines","scanning_available"]},"UpdateInstanceSecurityV1Dto":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Scan this instance (on by default)."},"schedule_frequency":{"type":"string","enum":["weekly","monthly"]}}},"SecurityScanV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"security_scan"},"id":{"type":"string"},"instance_id":{"type":"string"},"status":{"type":"string","enum":["queued","running","partial","completed","failed","cancelled","skipped"]},"trigger":{"type":"string","enum":["scheduled","on_demand","onboarding","admin","rescan"]},"queued_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","nullable":true,"format":"date-time"},"finished_at":{"type":"string","nullable":true,"format":"date-time"},"score":{"type":"number","nullable":true},"grade":{"type":"string","nullable":true},"findings_new":{"type":"number","description":"Findings it raised for the first time."},"findings_resolved":{"type":"number"},"findings_reopened":{"type":"number"}},"required":["object","id","instance_id","status","trigger","queued_at","findings_new","findings_resolved","findings_reopened"]},"VpnGatewayWireguardV1Dto":{"type":"object","properties":{"public_key":{"type":"string","nullable":true,"description":"For the far end of a WireGuard site connection."},"listen_port":{"type":"number","example":51820}},"required":["listen_port"]},"VpnGatewayV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"vpn_gateway"},"id":{"type":"string","format":"uuid"},"instance_id":{"type":"string","description":"The instance it runs on."},"name":{"type":"string","nullable":true},"location":{"type":"string","nullable":true,"example":"São Paulo"},"public_ip":{"type":"string","nullable":true},"running":{"type":"boolean","description":"The instance is powered on."},"protocol":{"type":"string","enum":["udp","tcp"],"description":"Transport of the VPN app connections."},"remote_access_pool":{"type":"string","nullable":true,"example":"10.8.0.0/24","description":"Addresses handed to people connecting with the VPN app."},"remote_access_pool_issue":{"type":"string","nullable":true,"description":"Why the pool needs changing, when it overlaps something."},"route_all_traffic":{"type":"boolean","description":"All of a connected person’s traffic goes through the gateway, not only the private network’s."},"allow_shared_logins":{"type":"boolean","description":"One login may be connected from several devices at once."},"mtu":{"type":"number","example":1420},"wireguard":{"$ref":"#/components/schemas/VpnGatewayWireguardV1Dto"},"pending_changes":{"type":"boolean","description":"Settings or users changed since the last apply: `POST …/apply` puts them in place."},"apply_mode":{"type":"string","enum":["in_place","rebuild"],"description":"What the next apply does: reconfigure the running gateway, or rebuild it (a few minutes offline)."},"apply_state":{"type":"string","enum":["idle","queued","applying","failed"]},"apply_operation_id":{"type":"string","nullable":true,"description":"The apply in flight (`GET /v1/operations/{id}`)."},"applied_at":{"type":"string","nullable":true,"format":"date-time"},"last_apply_error_code":{"type":"string","nullable":true,"description":"Why the last apply failed."},"update_available":{"type":"boolean","description":"A newer version of the gateway software is available."},"users_count":{"type":"number"},"site_connections_count":{"type":"number"},"included_site_connections":{"type":"number","description":"Site connections the plan includes."},"created_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","instance_id","running","protocol","route_all_traffic","allow_shared_logins","mtu","wireguard","pending_changes","apply_mode","apply_state","update_available","users_count","site_connections_count","included_site_connections"]},"VpnUserV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"vpn_user"},"id":{"type":"string","format":"uuid"},"gateway_id":{"type":"string","format":"uuid"},"username":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"created_at":{"type":"string","nullable":true,"format":"date-time"},"updated_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["object","id","gateway_id","username","email","status"]},"VpnSiteConnectionV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"vpn_site_connection"},"id":{"type":"string","format":"uuid"},"gateway_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"protocol":{"type":"string","enum":["ipsec_ikev2","wireguard"]},"status":{"type":"string","enum":["pending_apply","applying","active","disabled","error","deleting"]},"enabled":{"type":"boolean"},"peer_vendor":{"type":"string","enum":["mikrotik","pfsense","opnsense","fortigate","cisco_ios","ubiquiti","aws","azure","linux","wireguard_generic","other"]},"peer_address":{"type":"string","nullable":true},"remote_networks":{"example":["192.168.10.0/24"],"type":"array","items":{"type":"string"}},"tunnel_state":{"type":"string","enum":["unknown","down","connecting","up"]},"error_class":{"type":"string","enum":["none","no_attempt","peer_unreachable","auth_failed","identity_mismatch","proposal_mismatch","ts_mismatch","no_handshake","handshake_stale","peer_lost","gateway_stopped","apply_failed"],"description":"Why it is not up, in one word; `none` when it is."},"error_detail":{"type":"string","nullable":true},"last_handshake_at":{"type":"string","nullable":true,"format":"date-time"},"last_up_at":{"type":"string","nullable":true,"format":"date-time"},"bytes_in":{"type":"string","description":"Bytes, as a decimal string."},"bytes_out":{"type":"string","description":"Bytes, as a decimal string."},"applied_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["object","id","gateway_id","name","protocol","status","enabled","peer_vendor","remote_networks","tunnel_state","error_class","bytes_in","bytes_out","created_at"]},"UpdateVpnGatewayV1Dto":{"type":"object","properties":{"name":{"type":"string","description":"Renames the instance."},"protocol":{"type":"string","enum":["udp","tcp"]},"remote_access_pool":{"type":"string","example":"10.8.0.0/24","description":"An IPv4 network that overlaps neither the private network nor a site."},"route_all_traffic":{"type":"boolean","description":"Changing it needs a rebuild on the next apply."},"allow_shared_logins":{"type":"boolean"},"mtu":{"type":"number","minimum":576,"maximum":1500}}},"ApplyVpnGatewayV1Dto":{"type":"object","properties":{"rebuild":{"type":"boolean","description":"Confirms a rebuild when the changes need one (a few minutes offline, everyone disconnected), or forces one."}}},"VpnGatewayApplyV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"vpn_gateway_apply"},"gateway_id":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["in_place","rebuild"]},"operation_id":{"type":"string","nullable":true,"description":"Follow it at `GET /v1/operations/{id}`."},"coalesced":{"type":"boolean","description":"An apply already running carries this change too."}},"required":["object","gateway_id","mode","coalesced"]},"VpnProfileV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"vpn_profile"},"gateway_id":{"type":"string","format":"uuid"},"format":{"type":"string","enum":["openvpn"]},"filename":{"type":"string","example":"office-vpn.ovpn"},"content":{"type":"string","description":"The profile to import in the VPN app. Each person signs in with their own username and password."}},"required":["object","gateway_id","format","filename","content"]},"CreateVpnUserV1Dto":{"type":"object","properties":{"username":{"type":"string","description":"Letters and digits.","example":"maria"},"email":{"type":"string","description":"Where credentials are sent; unique on the gateway."},"password":{"type":"string","description":"Generated (and returned once) when omitted.","minLength":8,"maxLength":128},"status":{"type":"string","enum":["active","inactive"],"default":"active"},"send_credentials":{"type":"boolean","description":"Email the person their username, password and how to connect.","default":false}},"required":["username","email"]},"CreatedVpnUserV1Dto":{"type":"object","properties":{"object":{"type":"string","example":"vpn_user"},"id":{"type":"string","format":"uuid"},"gateway_id":{"type":"string","format":"uuid"},"username":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"created_at":{"type":"string","nullable":true,"format":"date-time"},"updated_at":{"type":"string","nullable":true,"format":"date-time"},"password":{"type":"string","description":"Only when the platform generated it (no `password` sent): shown this once, never again."}},"required":["object","id","gateway_id","username","email","status"]},"UpdateVpnUserV1Dto":{"type":"object","properties":{"username":{"type":"string"},"email":{"type":"string"},"password":{"type":"string","minLength":8,"maxLength":128},"status":{"type":"string","enum":["active","inactive"],"description":"`inactive` keeps the login but refuses it."},"send_credentials":{"type":"boolean","description":"Email the person their new credentials.","default":false}}}}}}