{"openapi":"3.1.0","info":{"title":"Enzonic for Resellers API","version":"1.0.0","description":"Build your own customer panel, billing glue or Discord bot on your store. Authenticate with an API key from Admin > API & MCP (reseller keys) or Account > API (customer keys). Full guide: /docs.","contact":{"name":"Enzonic LLC","email":"support@enzonic.com"}},"servers":[{"url":"https://reseller.enzonic.com/api/v1"}],"tags":[{"name":"Key and account"},{"name":"Servers"},{"name":"Files"},{"name":"Backups"},{"name":"Customers"},{"name":"Plans"},{"name":"Orders, invoices and billing"},{"name":"Credits"},{"name":"Flex servers (hourly)"},{"name":"VPS"},{"name":"Sub-users, API keys and SFTP"},{"name":"Domains"},{"name":"Nodes"},{"name":"Site"},{"name":"Software"},{"name":"Webhooks"}],"paths":{"/me":{"get":{"operationId":"me.get","summary":"Show the calling key, its working scopes and its store","description":"Use this to check a key. `active_scopes` lists what the key can do right now; a reseller key loses a scope when its creator loses the matching team permission.\n\nAny valid key.\n\nKeys: reseller, customer.","tags":["Key and account"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["reseller","customer"]},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["servers:read","servers:write","servers:power","servers:console","servers:files","servers:backups","servers:users","customers:read","customers:write","plans:read","plans:write","orders:read","orders:write","invoices:read","billing:read","domains:read","domains:write","nodes:read","nodes:write","site:read","site:write","software:read","software:write","credits:read","flex:read","flex:write","vps:read","vps:write","vps:power","vps:console","webhooks:write"]},"description":"Scopes stored on the key."},"active_scopes":{"type":"array","items":{"type":"string","enum":["servers:read","servers:write","servers:power","servers:console","servers:files","servers:backups","servers:users","customers:read","customers:write","plans:read","plans:write","orders:read","orders:write","invoices:read","billing:read","domains:read","domains:write","nodes:read","nodes:write","site:read","site:write","software:read","software:write","credits:read","flex:read","flex:write","vps:read","vps:write","vps:power","vps:console","webhooks:write"]},"description":"Scopes that work right now (a reseller key is capped by its creator's current team permissions)."},"expires_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","kind","name","scopes","active_scopes","expires_at","created_at"],"additionalProperties":false},"store":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","suspended","closed"]},"currency":{"type":"string"},"url":{"type":"string"}},"required":["id","slug","name","status","currency","url"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"}},"required":["id","name","email","role"],"additionalProperties":false}},"required":["key","store","user"],"additionalProperties":false}}},"example":{"data":{"key":{"id":"key_7f3kq9m2x8c4v6b1","kind":"reseller","name":"Billing sync","scopes":["servers:read","customers:read"],"active_scopes":["servers:read","customers:read"],"expires_at":null,"created_at":"2026-10-19T09:30:00.000Z"},"store":{"id":"ten_aurora0000000000","slug":"aurora","name":"Aurora Hosting","status":"active","currency":"usd","url":"https://aurora.enzonic.dev"},"user":{"id":"usr_0h2k4m6p8r0t2v4x","name":"Aurora Owner","email":"owner@aurora.test","role":"owner"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"]}},"/servers":{"get":{"operationId":"servers.list","summary":"List servers","description":"Reseller keys see every server of the store (filter by `customer_id` or `status`). Customer keys see the servers the customer owns or was added to as a user.\n\nScope: `servers:read`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"customer_id","in":"query","required":false,"schema":{"description":"Only servers of this customer (reseller keys).","type":"string","maxLength":40},"description":"Only servers of this customer (reseller keys)."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["installing","install_failed","reinstall_failed","active","suspended","restoring_backup","deleting"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","description":"installing, install_failed, reinstall_failed, active, suspended, restoring_backup"},"customer_id":{"type":"string","description":"Owner (usr_...)"},"plan_id":{"type":["string","null"]},"address":{"description":"Connect address players use, when assigned","type":["string","null"]},"limits":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ram_mb","cpu_pct","disk_mb","databases","backups","allocations"],"additionalProperties":false},"suspended_at":{"type":["string","null"]},"installed_at":{"type":["string","null"]},"created_at":{"type":"string"},"access":{"type":"string","enum":["owner","subuser","admin"],"description":"How the key's user reaches this server"}},"required":["id","name","description","status","customer_id","plan_id","address","limits","suspended_at","installed_at","created_at","access"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}},"example":{"data":[{"id":"srv_7f3kq9m2x8c4v6b1","name":"Survival SMP","description":"","status":"active","customer_id":"usr_2b4d6f8h0j2l4n6q","plan_id":"pln_3c5e7g9j1l3n5p7r","address":"survival.aurora.enzonic.dev","limits":{"ram_mb":6144,"cpu_pct":200,"disk_mb":30720,"databases":1,"backups":2,"allocations":1},"suspended_at":null,"installed_at":"2026-10-01T12:00:00.000Z","created_at":"2026-10-01T11:58:00.000Z","access":"admin"}],"next_cursor":null}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:read"}},"/servers/{server_id}":{"get":{"operationId":"servers.get","summary":"Get a server","description":"Details, software and the permissions the key's user holds on this server.\n\nScope: `servers:read`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:read"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","description":"installing, install_failed, reinstall_failed, active, suspended, restoring_backup"},"customer_id":{"type":"string","description":"Owner (usr_...)"},"plan_id":{"type":["string","null"]},"address":{"description":"Connect address players use, when assigned","type":["string","null"]},"limits":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ram_mb","cpu_pct","disk_mb","databases","backups","allocations"],"additionalProperties":false},"suspended_at":{"type":["string","null"]},"installed_at":{"type":["string","null"]},"created_at":{"type":"string"},"access":{"type":"string","enum":["owner","subuser","admin"],"description":"How the key's user reaches this server"},"software":{"type":"object","properties":{"egg":{"type":"string"},"name":{"type":"string"},"loader":{"type":"string"},"version":{"type":["string","null"]}},"required":["egg","name","loader","version"],"additionalProperties":false},"permissions":{"type":"array","items":{"type":"string"},"description":"Per-server permission keys (all of them for owners and the team)"}},"required":["id","name","description","status","customer_id","plan_id","address","limits","suspended_at","installed_at","created_at","access","software","permissions"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:read"},"patch":{"operationId":"servers.rename","summary":"Rename a server or change its description","description":"Scope: `servers:write`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name","description"],"additionalProperties":false}}},"example":{"data":{"name":"Survival SMP 2","description":""}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"description":"1 to 60 characters"},"description":{"description":"Up to 500 characters","type":"string","maxLength":2000}},"required":["name"]},"example":{"name":"Survival SMP 2"}}}}},"delete":{"operationId":"servers.delete","summary":"Delete a server and all its files","description":"Deletes the server, its files and backups on the node. This cannot be undone. `confirm` must be the exact server name. A paid subscription is not cancelled by this call.\n\nScope: `servers:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["Servers"],"security":[{"bearer":["servers:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"servers:write","x-destructive":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","maxLength":200,"description":"The exact server name"}},"required":["confirm"]}}}}}},"/servers/{server_id}/power":{"post":{"operationId":"servers.power","summary":"Start, stop, restart or kill a server","description":"Scope: `servers:power`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:power"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"accepted":{"type":"boolean","const":true}},"required":["accepted"],"additionalProperties":false}}},"example":{"data":{"accepted":true}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:power","x-rate-class":"power","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signal":{"type":"string","enum":["start","stop","restart","kill"],"description":"Power signal"}},"required":["signal"]},"example":{"signal":"restart"}}}}}},"/servers/{server_id}/resources":{"get":{"operationId":"servers.resources","summary":"Show live resource usage","description":"Power state and current CPU, memory, disk and network use, read from the node.\n\nScope: `servers:read`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:read"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"state":{"type":"string","description":"running, starting, stopping or offline"},"cpu_pct":{"type":"number","description":"100 = one vCPU fully used"},"memory_bytes":{"type":"number"},"memory_limit_bytes":{"type":"number"},"disk_bytes":{"type":"number"},"network":{"type":"object","properties":{"rx_bytes":{"type":"number"},"tx_bytes":{"type":"number"}},"required":["rx_bytes","tx_bytes"],"additionalProperties":false},"uptime_ms":{"type":"number"}},"required":["state","cpu_pct","memory_bytes","memory_limit_bytes","disk_bytes","network","uptime_ms"],"additionalProperties":false}}},"example":{"data":{"state":"running","cpu_pct":37.5,"memory_bytes":2147483648,"memory_limit_bytes":6442450944,"disk_bytes":1073741824,"network":{"rx_bytes":120000,"tx_bytes":340000},"uptime_ms":3600000}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:read"}},"/servers/{server_id}/command":{"post":{"operationId":"servers.command","summary":"Send a console command","description":"Types the command into the server console (like the panel console). The server must be running.\n\nScope: `servers:console`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:console"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"sent":{"type":"boolean","const":true}},"required":["sent"],"additionalProperties":false}}},"example":{"data":{"sent":true}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:console","x-rate-class":"console","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":1000,"description":"For example `say Restart in 5 minutes`"}},"required":["command"]},"example":{"command":"say hello"}}}}}},"/servers/{server_id}/console":{"get":{"operationId":"servers.console","summary":"Get a ticket for the live console websocket","description":"Returns a websocket URL and a token valid for 10 minutes. Connect to `socket`, then send `{\"event\":\"auth\",\"args\":[\"<token>\"]}`; you receive console output and stats events and can send `send command`. Power actions are not accepted over the socket.\n\nScope: `servers:console`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:console"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"token":{"type":"string"},"socket":{"type":"string"},"expires_at":{"type":"string"}},"required":["token","socket","expires_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:console"}},"/servers/{server_id}/reinstall":{"post":{"operationId":"servers.reinstall","summary":"Reinstall a server (guarded)","description":"Runs the install script again with the current software. A backup is taken first when the plan allows one, and the change rolls back if the install fails. `confirm` must be the exact server name.\n\nScope: `servers:write`.\n\nKeys: reseller, customer.\n\nDestructive: this cannot be undone.","tags":["Servers"],"security":[{"bearer":["servers:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"change_id":{"type":"string"},"state":{"type":"string"}},"required":["change_id","state"],"additionalProperties":false}}},"example":{"data":{"change_id":"swc_1a3c5e7g9j1l3n5p","state":"backing_up"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:write","x-destructive":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","maxLength":200,"description":"The exact server name"}},"required":["confirm"]},"example":{"confirm":"Survival SMP"}}}}}},"/servers/{server_id}/software":{"get":{"operationId":"servers.software.get","summary":"Show a server's software and the choices it can switch to","description":"Scope: `servers:read`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:read"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"current":{"type":"object","properties":{"software_id":{"type":["string","null"]},"slug":{"type":["string","null"]},"name":{"type":"string"},"version":{"type":["string","null"]},"label":{"type":"string"}},"required":["software_id","slug","name","version","label"],"additionalProperties":false},"choices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"loader":{"type":"string"}},"required":["id","slug","name","loader"],"additionalProperties":false}},"change":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","description":"backing_up, installing, rolling_back, done, failed, rolled_back, ..."},"active":{"type":"boolean","description":"Still running"},"kind":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"reason":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","state","active","kind","from","to","reason","created_at","updated_at"],"additionalProperties":false},{"type":"null"}],"description":"The running or latest software change"},"history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","description":"backing_up, installing, rolling_back, done, failed, rolled_back, ..."},"active":{"type":"boolean","description":"Still running"},"kind":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"reason":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","state","active","kind","from","to","reason","created_at","updated_at"],"additionalProperties":false}}},"required":["current","choices","change","history"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:read"},"post":{"operationId":"servers.software.change","summary":"Change the software or version (guarded)","description":"Switches loader or game version through the software guard: a backup first, then the install, and an automatic rollback if it fails. Only software your store offers is accepted. Poll servers.software.get for the progress.\n\nScope: `servers:write`.\n\nKeys: reseller, customer.","tags":["Servers"],"security":[{"bearer":["servers:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","description":"backing_up, installing, rolling_back, done, failed, rolled_back, ..."},"active":{"type":"boolean","description":"Still running"},"kind":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"reason":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","state","active","kind","from","to","reason","created_at","updated_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"software":{"type":"string","maxLength":40,"description":"Software id or slug, from `choices`"},"version":{"description":"Game version, default latest","type":"string","maxLength":40},"modpack_link":{"description":"Modrinth link for modpack software","type":"string","maxLength":1024}},"required":["software"]}}}}}},"/servers/{server_id}/suspend":{"post":{"operationId":"servers.suspend","summary":"Suspend a server","description":"Stops the server and blocks the customer from starting it, like Suspend in the admin. Billing is not changed.\n\nScope: `servers:write`.\n\nKeys: reseller.","tags":["Servers"],"security":[{"bearer":["servers:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","description":"installing, install_failed, reinstall_failed, active, suspended, restoring_backup"},"customer_id":{"type":"string","description":"Owner (usr_...)"},"plan_id":{"type":["string","null"]},"address":{"description":"Connect address players use, when assigned","type":["string","null"]},"limits":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ram_mb","cpu_pct","disk_mb","databases","backups","allocations"],"additionalProperties":false},"suspended_at":{"type":["string","null"]},"installed_at":{"type":["string","null"]},"created_at":{"type":"string"},"access":{"type":"string","enum":["owner","subuser","admin"],"description":"How the key's user reaches this server"}},"required":["id","name","description","status","customer_id","plan_id","address","limits","suspended_at","installed_at","created_at","access"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"servers:write"}},"/servers/{server_id}/unsuspend":{"post":{"operationId":"servers.unsuspend","summary":"Unsuspend a server","description":"Scope: `servers:write`.\n\nKeys: reseller.","tags":["Servers"],"security":[{"bearer":["servers:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","description":"installing, install_failed, reinstall_failed, active, suspended, restoring_backup"},"customer_id":{"type":"string","description":"Owner (usr_...)"},"plan_id":{"type":["string","null"]},"address":{"description":"Connect address players use, when assigned","type":["string","null"]},"limits":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ram_mb","cpu_pct","disk_mb","databases","backups","allocations"],"additionalProperties":false},"suspended_at":{"type":["string","null"]},"installed_at":{"type":["string","null"]},"created_at":{"type":"string"},"access":{"type":"string","enum":["owner","subuser","admin"],"description":"How the key's user reaches this server"}},"required":["id","name","description","status","customer_id","plan_id","address","limits","suspended_at","installed_at","created_at","access"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"servers:write"}},"/servers/grants":{"post":{"operationId":"servers.grant","summary":"Give a customer a server for free (grant)","description":"Provisions a new server from one of your plans for a customer, like Grant plan in the admin. On Enzonic nodes the base price is taken from your credits every month in advance (refused when the balance is short); on your own nodes it is free. Needs servers:write and customers:write.\n\nScope: `servers:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Servers"],"security":[{"bearer":["servers:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"grant_id":{"type":"string"},"server_id":{"type":["string","null"]},"status":{"type":"string"},"ends_at":{"type":["string","null"]},"monthly":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false}},"required":["grant_id","server_id","status","ends_at","monthly"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"servers:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string","maxLength":40},"plan_id":{"type":"string","maxLength":40},"software":{"description":"Software id or slug; default Paper","type":"string","maxLength":40},"server_name":{"type":"string","maxLength":64},"months":{"description":"1, 3, 6 or 12; omit for until revoked","anyOf":[{"type":"number","const":1},{"type":"number","const":3},{"type":"number","const":6},{"type":"number","const":12}]},"reason":{"type":"string","enum":["comp","giveaway","staff","other"]},"note":{"type":"string","maxLength":500},"notify_customer":{"default":true,"type":"boolean"}},"required":["customer_id","plan_id","reason"]}}}}}},"/servers/{server_id}/files":{"get":{"operationId":"servers.files.list","summary":"List a directory","description":"Folders first, then files, by name.\n\nScope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"directory","in":"query","required":false,"schema":{"default":"/","type":"string","maxLength":1024,"description":"Directory, default /"},"description":"Directory, default /"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"directory":{"type":"string"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"directory":{"type":"boolean"},"size":{"type":"number"},"mime":{"type":["string","null"]},"modified":{"type":["string","null"]}},"required":["name","path","directory","size","mime","modified"],"additionalProperties":false}}},"required":["directory","entries"],"additionalProperties":false}}},"example":{"data":{"directory":"/","entries":[{"name":"plugins","path":"/plugins","directory":true,"size":0,"mime":null,"modified":"2026-10-18T08:00:00.000Z"},{"name":"server.properties","path":"/server.properties","directory":false,"size":1342,"mime":"text/plain","modified":"2026-10-18T08:00:00.000Z"}]}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files"}},"/servers/{server_id}/files/contents":{"get":{"operationId":"servers.files.read","summary":"Read a text file","description":"Text files up to 4 MB. Binary or larger files: use servers.files.download_url.\n\nScope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"file","in":"query","required":true,"schema":{"type":"string","maxLength":1024,"description":"File path, e.g. /server.properties"},"description":"File path, e.g. /server.properties"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"file":{"type":"string"},"size":{"type":"number"},"content":{"type":"string"}},"required":["file","size","content"],"additionalProperties":false}}},"example":{"data":{"file":"/server.properties","size":24,"content":"motd=Welcome\nmax-players=20\n"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files"},"put":{"operationId":"servers.files.write","summary":"Write a text file","description":"Creates the file or replaces its content (up to 4 MB of text).\n\nScope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"file":{"type":"string"}},"required":["file"],"additionalProperties":false}}},"example":{"data":{"file":"/eula.txt"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","x-rate-class":"files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","maxLength":1024,"description":"File path"},"content":{"type":"string","maxLength":4194304}},"required":["file","content"]},"example":{"file":"/eula.txt","content":"eula=true\n"}}}}}},"/servers/{server_id}/files/directories":{"post":{"operationId":"servers.files.mkdir","summary":"Create a folder","description":"Scope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"path":{"type":"string"}},"required":["path"],"additionalProperties":false}}},"example":{"data":{"path":"/backups-old"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","x-rate-class":"files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"root":{"default":"/","type":"string","maxLength":1024,"description":"Parent directory"},"name":{"type":"string","maxLength":255}},"required":["name"]},"example":{"root":"/","name":"backups-old"}}}}}},"/servers/{server_id}/files/rename":{"post":{"operationId":"servers.files.rename","summary":"Rename or move files","description":"Scope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"renamed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["renamed"],"additionalProperties":false}}},"example":{"data":{"renamed":1}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","x-rate-class":"files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"root":{"default":"/","type":"string","maxLength":1024,"description":"Directory the paths are relative to"},"files":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","maxLength":1024},"to":{"type":"string","maxLength":1024}},"required":["from","to"]}}},"required":["files"]},"example":{"root":"/","files":[{"from":"old.txt","to":"new.txt"}]}}}}}},"/servers/{server_id}/files/delete":{"post":{"operationId":"servers.files.delete","summary":"Delete files and folders","description":"Deletes the named files and folders (with everything inside) from `root`. This cannot be undone.\n\nScope: `servers:files`.\n\nKeys: reseller, customer.\n\nDestructive: this cannot be undone.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}},"example":{"data":{"deleted":1}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","x-destructive":true,"x-rate-class":"files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"root":{"default":"/","type":"string","maxLength":1024,"description":"Directory"},"files":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":255},"description":"Names inside `root`"}},"required":["files"]},"example":{"root":"/logs","files":["latest.log"]}}}}}},"/servers/{server_id}/files/compress":{"post":{"operationId":"servers.files.compress","summary":"Compress files into an archive","description":"Scope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"directory":{"type":"boolean"},"size":{"type":"number"},"mime":{"type":["string","null"]},"modified":{"type":["string","null"]}},"required":["name","path","directory","size","mime","modified"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","x-rate-class":"files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"root":{"default":"/","type":"string","maxLength":1024,"description":"Directory"},"files":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":255},"description":"Names inside `root`"}},"required":["files"]}}}}}},"/servers/{server_id}/files/decompress":{"post":{"operationId":"servers.files.decompress","summary":"Extract an archive","description":"Extracts the archive into `root`; files with the same names are overwritten.\n\nScope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"extracted":{"type":"boolean","const":true}},"required":["extracted"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","x-rate-class":"files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"root":{"default":"/","type":"string","maxLength":1024,"description":"Directory to extract into"},"file":{"type":"string","maxLength":1024,"description":"Archive path"}},"required":["file"]}}}}}},"/servers/{server_id}/files/download-url":{"post":{"operationId":"servers.files.download_url","summary":"Get a download link for a file","description":"Returns a link valid for 5 minutes that downloads the file with a plain GET (no key needed, so you can hand it to a browser). The link stops working if the key is revoked.\n\nScope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Single-purpose link, valid 5 minutes, no API key needed"},"method":{"type":"string","enum":["GET","POST"]},"expires_at":{"type":"string"}},"required":["url","method","expires_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","maxLength":1024,"description":"File path"}},"required":["file"]}}}}}},"/servers/{server_id}/files/upload-url":{"post":{"operationId":"servers.files.upload_url","summary":"Get an upload link for a directory","description":"Returns a link valid for 5 minutes. POST multipart/form-data with one or more `files` fields to it (up to 100 MB in total, 50 files).\n\nScope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Files"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Single-purpose link, valid 5 minutes, no API key needed"},"method":{"type":"string","enum":["GET","POST"]},"expires_at":{"type":"string"}},"required":["url","method","expires_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"directory":{"default":"/","type":"string","maxLength":1024,"description":"Target directory"}}}}}}}},"/servers/{server_id}/backups":{"get":{"operationId":"servers.backups.list","summary":"List backups","description":"`limit` is how many backups the plan allows; `used` how many exist.\n\nScope: `servers:backups`.\n\nKeys: reseller, customer.","tags":["Backups"],"security":[{"bearer":["servers:backups"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"backups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","description":"pending, succeeded or failed"},"size_bytes":{"type":["number","null"]},"locked":{"type":"boolean","description":"Locked backups cannot be deleted"},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]}},"required":["id","name","status","size_bytes","locked","created_at","completed_at"],"additionalProperties":false}},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"restoring":{"type":"boolean"}},"required":["backups","used","limit","restoring"],"additionalProperties":false}}},"example":{"data":{"backups":[{"id":"bkp_8h0j2l4n6q8s0u2w","name":"Before 1.21 update","status":"succeeded","size_bytes":524288000,"locked":false,"created_at":"2026-10-18T20:00:00.000Z","completed_at":"2026-10-18T20:03:10.000Z"}],"used":1,"limit":3,"restoring":false}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:backups"},"post":{"operationId":"servers.backups.create","summary":"Start a backup","description":"Starts a backup now (it runs in the background; poll the list until `status` is `succeeded`). Refused when the plan limit is reached. Send an Idempotency-Key to retry safely.\n\nScope: `servers:backups`.\n\nKeys: reseller, customer.","tags":["Backups"],"security":[{"bearer":["servers:backups"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","description":"pending, succeeded or failed"},"size_bytes":{"type":["number","null"]},"locked":{"type":"boolean","description":"Locked backups cannot be deleted"},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]}},"required":["id","name","status","size_bytes","locked","created_at","completed_at"],"additionalProperties":false}}},"example":{"data":{"id":"bkp_8h0j2l4n6q8s0u2w","name":"Before 1.21 update","status":"pending","size_bytes":null,"locked":false,"created_at":"2026-10-18T20:00:00.000Z","completed_at":null}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:backups","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"ignored":{"description":"Paths to skip, one per line (like .gitignore)","type":"string","maxLength":4000},"locked":{"type":"boolean"}}},"example":{"name":"Before 1.21 update"}}}}}},"/servers/{server_id}/backups/{backup_id}/restore":{"post":{"operationId":"servers.backups.restore","summary":"Restore a backup","description":"Overwrites the server files with the backup. With `truncate: true` every current file is deleted first. The server is stopped while restoring.\n\nScope: `servers:backups`.\n\nKeys: reseller, customer.\n\nDestructive: this cannot be undone.","tags":["Backups"],"security":[{"bearer":["servers:backups"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","pattern":"^bkp_[0-9a-z]{16}$","description":"Backup id (bkp_...)"},"description":"Backup id (bkp_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"restoring":{"type":"boolean","const":true},"truncate":{"type":"boolean"}},"required":["restoring","truncate"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:backups","x-destructive":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"truncate":{"default":false,"type":"boolean"}}}}}}}},"/servers/{server_id}/backups/{backup_id}/lock":{"post":{"operationId":"servers.backups.lock","summary":"Lock or unlock a backup","description":"Scope: `servers:backups`.\n\nKeys: reseller, customer.","tags":["Backups"],"security":[{"bearer":["servers:backups"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","pattern":"^bkp_[0-9a-z]{16}$","description":"Backup id (bkp_...)"},"description":"Backup id (bkp_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:backups","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"]}}}}}},"/servers/{server_id}/backups/{backup_id}":{"delete":{"operationId":"servers.backups.delete","summary":"Delete a backup","description":"Removes the backup from the node. Locked backups must be unlocked first. This cannot be undone.\n\nScope: `servers:backups`.\n\nKeys: reseller, customer.\n\nDestructive: this cannot be undone.","tags":["Backups"],"security":[{"bearer":["servers:backups"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","pattern":"^bkp_[0-9a-z]{16}$","description":"Backup id (bkp_...)"},"description":"Backup id (bkp_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:backups","x-destructive":true}},"/servers/{server_id}/backups/{backup_id}/download-url":{"post":{"operationId":"servers.backups.download_url","summary":"Get a download link for a backup","description":"A .tar.gz link valid for 5 minutes (plain GET, no key needed). Only completed backups.\n\nScope: `servers:backups`.\n\nKeys: reseller, customer.","tags":["Backups"],"security":[{"bearer":["servers:backups"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","pattern":"^bkp_[0-9a-z]{16}$","description":"Backup id (bkp_...)"},"description":"Backup id (bkp_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST"]},"expires_at":{"type":"string"}},"required":["url","method","expires_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:backups"}},"/servers/{server_id}/users":{"get":{"operationId":"servers.users.list","summary":"List the sub-users of a server and the permissions you can grant","description":"Scope: `servers:users`.\n\nKeys: reseller, customer.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["servers:users"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":["string","null"]},"permissions":{"type":"array","items":{"type":"string"}}},"required":["id","email","name","permissions"],"additionalProperties":false}},"permissions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"grantable":{"type":"boolean"}},"required":["key","label","grantable"],"additionalProperties":false}}},"required":["users","permissions"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:users"},"post":{"operationId":"servers.users.create","summary":"Give an account of your store access to a server","description":"The account must exist in your store with a verified email (create it with POST /customers). Permissions are the keys from GET /servers/{server_id}/users, e.g. `control.console`, `control.start`, `file.read`, `file.sftp`.\n\nScope: `servers:users`.\n\nKeys: reseller, customer.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["servers:users"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":["string","null"]},"permissions":{"type":"array","items":{"type":"string"}}},"required":["id","email","name","permissions"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:users","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"permissions":{"minItems":1,"maxItems":80,"type":"array","items":{"type":"string","maxLength":60}}},"required":["email","permissions"]}}}}}},"/servers/{server_id}/users/{user_id}":{"patch":{"operationId":"servers.users.update","summary":"Change a sub-user's permissions","description":"Scope: `servers:users`.\n\nKeys: reseller, customer.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["servers:users"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"User id (usr_...)"},"description":"User id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":["string","null"]},"permissions":{"type":"array","items":{"type":"string"}}},"required":["id","email","name","permissions"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:users","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"permissions":{"minItems":1,"maxItems":80,"type":"array","items":{"type":"string","maxLength":60}}},"required":["permissions"]}}}}},"delete":{"operationId":"servers.users.delete","summary":"Remove a sub-user's access (their console sessions are cut)","description":"Scope: `servers:users`.\n\nKeys: reseller, customer.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["servers:users"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"User id (usr_...)"},"description":"User id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"removed":{"type":"boolean","const":true}},"required":["removed"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:users"}},"/servers/{server_id}/sftp":{"get":{"operationId":"servers.sftp.get","summary":"Show how to connect to a server over SFTP","description":"Scope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"mode":{"type":"string","enum":["account_password","server_login"]},"host":{"type":["string","null"]},"port":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"username":{"type":["string","null"]},"note":{"type":"string"}},"required":["mode","host","port","username","note"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files"}},"/servers/{server_id}/sftp/credentials":{"post":{"operationId":"servers.sftp.credentials","summary":"Create or rotate the SFTP login of a server on Enzonic nodes (password shown once)","description":"Every call makes a new password; the old one stops working. The login can only reach this server and only its files.\n\nScope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"username":{"type":"string"},"password":{"type":"string"}},"required":["host","port","username","password"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files"},"delete":{"operationId":"servers.sftp.revoke","summary":"Revoke the SFTP login of a server on Enzonic nodes","description":"Scope: `servers:files`.\n\nKeys: reseller, customer.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["servers:files"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"revoked":{"type":"boolean","const":true}},"required":["revoked"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller","customer"],"x-scope":"servers:files"}},"/customers/{customer_id}/api-keys":{"get":{"operationId":"customers.api_keys.list","summary":"List a customer's API keys","description":"Scope: `customers:read`.\n\nKeys: reseller.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["customers:read"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"User id (usr_...)"},"description":"User id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"created_at":{"type":["string","null"]}},"required":["id","name","scopes","status","created_at"],"additionalProperties":false}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:read"},"post":{"operationId":"customers.api_keys.create","summary":"Create an API key for a customer (server scopes only; the token is shown once)","description":"The key reaches only the servers that customer owns or is a sub-user of, with their permissions. To give someone a key for ONE server, add them as a sub-user of that server and create the key on their account.\n\nScope: `customers:write`.\n\nKeys: reseller.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["customers:write"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"User id (usr_...)"},"description":"User id (usr_...)"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"token":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}},"required":["id","token","scopes"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"scopes":{"minItems":1,"type":"array","items":{"type":"string","enum":["servers:read","servers:write","servers:power","servers:console","servers:files","servers:backups","servers:users"]}},"allowed_ips":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":60}},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","scopes"]}}}}}},"/customers/{customer_id}/api-keys/{key_id}":{"delete":{"operationId":"customers.api_keys.revoke","summary":"Revoke a customer's API key","description":"Scope: `customers:write`.\n\nKeys: reseller.","tags":["Sub-users, API keys and SFTP"],"security":[{"bearer":["customers:write"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"User id (usr_...)"},"description":"User id (usr_...)"},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"revoked":{"type":"boolean","const":true}},"required":["revoked"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:write"}},"/customers":{"get":{"operationId":"customers.list","summary":"List customers","description":"Customer accounts of your store, newest first. `q` searches email and name.\n\nScope: `customers:read`.\n\nKeys: reseller.","tags":["Customers"],"security":[{"bearer":["customers:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"q","in":"query","required":false,"schema":{"description":"Search in email and name","type":"string","maxLength":100},"description":"Search in email and name"},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","suspended","unverified"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","suspended"]},"email_verified":{"type":"boolean"},"two_factor":{"type":"boolean","description":"Two-factor sign-in is on"},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Servers this customer owns"},"created_at":{"type":"string"}},"required":["id","email","name","status","email_verified","two_factor","servers","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}},"example":{"data":[{"id":"usr_2b4d6f8h0j2l4n6q","email":"alex@example.com","name":"Alex Rivera","status":"active","email_verified":true,"two_factor":false,"servers":1,"created_at":"2026-09-02T18:20:00.000Z"}],"next_cursor":null}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:read"},"post":{"operationId":"customers.create","summary":"Create a customer account","description":"Creates the account like the storefront sign-up (same checks; one account per email per store) and emails the customer a link to verify the address. No password is set through the API: with `send_password_link` (default true) the customer also gets a link to choose one. Send an Idempotency-Key to retry safely.\n\nScope: `customers:write`.\n\nKeys: reseller.","tags":["Customers"],"security":[{"bearer":["customers:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","suspended"]},"email_verified":{"type":"boolean"},"two_factor":{"type":"boolean","description":"Two-factor sign-in is on"},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Servers this customer owns"},"created_at":{"type":"string"}},"required":["id","email","name","status","email_verified","two_factor","servers","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"usr_9q1s3u5w7y9a1c3e","email":"jordan@example.com","name":"Jordan Lee","status":"active","email_verified":false,"two_factor":false,"servers":0,"created_at":"2026-09-02T18:20:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"name":{"type":"string","maxLength":200,"description":"1 to 80 characters"},"send_password_link":{"default":true,"type":"boolean"}},"required":["email","name"]},"example":{"email":"jordan@example.com","name":"Jordan Lee"}}}}}},"/customers/{customer_id}":{"get":{"operationId":"customers.get","summary":"Get a customer","description":"Scope: `customers:read`.\n\nKeys: reseller.","tags":["Customers"],"security":[{"bearer":["customers:read"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","pattern":"^usr_[0-9a-z]{16}$","description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","suspended"]},"email_verified":{"type":"boolean"},"two_factor":{"type":"boolean","description":"Two-factor sign-in is on"},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Servers this customer owns"},"created_at":{"type":"string"}},"required":["id","email","name","status","email_verified","two_factor","servers","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"usr_2b4d6f8h0j2l4n6q","email":"alex@example.com","name":"Alex Rivera","status":"active","email_verified":true,"two_factor":false,"servers":1,"created_at":"2026-09-02T18:20:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:read"},"patch":{"operationId":"customers.update","summary":"Update a customer's name","description":"Only the display name can change here. The email address is the sign-in and stays with the customer.\n\nScope: `customers:write`.\n\nKeys: reseller.","tags":["Customers"],"security":[{"bearer":["customers:write"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","pattern":"^usr_[0-9a-z]{16}$","description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","suspended"]},"email_verified":{"type":"boolean"},"two_factor":{"type":"boolean","description":"Two-factor sign-in is on"},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Servers this customer owns"},"created_at":{"type":"string"}},"required":["id","email","name","status","email_verified","two_factor","servers","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"usr_2b4d6f8h0j2l4n6q","email":"alex@example.com","name":"Alex R.","status":"active","email_verified":true,"two_factor":false,"servers":1,"created_at":"2026-09-02T18:20:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"description":"1 to 80 characters"}},"required":["name"]},"example":{"name":"Alex R."}}}}}},"/customers/{customer_id}/suspend":{"post":{"operationId":"customers.suspend","summary":"Suspend a customer account","description":"The customer is signed out everywhere and cannot sign in until unsuspended. Their servers keep running; suspend servers separately if needed.\n\nScope: `customers:write`.\n\nKeys: reseller.","tags":["Customers"],"security":[{"bearer":["customers:write"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","pattern":"^usr_[0-9a-z]{16}$","description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","suspended"]},"email_verified":{"type":"boolean"},"two_factor":{"type":"boolean","description":"Two-factor sign-in is on"},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Servers this customer owns"},"created_at":{"type":"string"}},"required":["id","email","name","status","email_verified","two_factor","servers","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"usr_2b4d6f8h0j2l4n6q","email":"alex@example.com","name":"Alex Rivera","status":"suspended","email_verified":true,"two_factor":false,"servers":1,"created_at":"2026-09-02T18:20:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:write"}},"/customers/{customer_id}/unsuspend":{"post":{"operationId":"customers.unsuspend","summary":"Unsuspend a customer account","description":"Scope: `customers:write`.\n\nKeys: reseller.","tags":["Customers"],"security":[{"bearer":["customers:write"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","pattern":"^usr_[0-9a-z]{16}$","description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","suspended"]},"email_verified":{"type":"boolean"},"two_factor":{"type":"boolean","description":"Two-factor sign-in is on"},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Servers this customer owns"},"created_at":{"type":"string"}},"required":["id","email","name","status","email_verified","two_factor","servers","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"usr_2b4d6f8h0j2l4n6q","email":"alex@example.com","name":"Alex Rivera","status":"active","email_verified":true,"two_factor":false,"servers":1,"created_at":"2026-09-02T18:20:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"customers:write"}},"/plans":{"get":{"operationId":"plans.list","summary":"List plans","description":"Scope: `plans:read`.\n\nKeys: reseller.","tags":["Plans"],"security":[{"bearer":["plans:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"active","in":"query","required":false,"schema":{"description":"Only sold (true) or hidden (false)","type":"boolean"},"description":"Only sold (true) or hidden (false)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"extra_ports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Monthly price in cents"},"interval":{"type":"string","const":"month"},"node_pool":{"type":"string","enum":["enzonic","byo"],"description":"enzonic = Enzonic nodes, byo = your own nodes"},"tier_class":{"type":"string","description":"Performance tier: 'standard', or a premium line Enzonic offers on its own nodes"},"location":{"description":"Region the plan is pinned to (Enzonic nodes): europe, north-america or asia; null = any","type":["string","null"]},"allowed_kinds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Software kinds this plan may run; null = any"},"featured":{"type":"boolean"},"active":{"type":"boolean","description":"Sold on the storefront"},"sort":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"}},"required":["id","name","description","ram_mb","cpu_pct","disk_mb","databases","backups","extra_ports","price","interval","node_pool","tier_class","location","allowed_kinds","featured","active","sort","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}},"example":{"data":[{"id":"pln_3c5e7g9j1l3n5p7r","name":"Diamond","description":"Light modpacks and busy SMPs.","ram_mb":6144,"cpu_pct":200,"disk_mb":30720,"databases":1,"backups":2,"extra_ports":0,"price":{"amount":1500,"currency":"usd"},"interval":"month","node_pool":"enzonic","tier_class":"standard","location":null,"allowed_kinds":null,"featured":true,"active":true,"sort":2,"created_at":"2026-10-01T09:00:00.000Z"}],"next_cursor":null}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"plans:read"},"post":{"operationId":"plans.create","summary":"Create a plan","description":"Same rules as Admin > Plans: the price must cover Enzonic's base price for these resources plus the platform fee and your minimum margin (the error says the lowest allowed price), and plans on your own nodes need a node first. New active plans appear on your storefront right away.\n\nScope: `plans:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Plans"],"security":[{"bearer":["plans:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"extra_ports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Monthly price in cents"},"interval":{"type":"string","const":"month"},"node_pool":{"type":"string","enum":["enzonic","byo"],"description":"enzonic = Enzonic nodes, byo = your own nodes"},"tier_class":{"type":"string","description":"Performance tier: 'standard', or a premium line Enzonic offers on its own nodes"},"location":{"description":"Region the plan is pinned to (Enzonic nodes): europe, north-america or asia; null = any","type":["string","null"]},"allowed_kinds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Software kinds this plan may run; null = any"},"featured":{"type":"boolean"},"active":{"type":"boolean","description":"Sold on the storefront"},"sort":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"}},"required":["id","name","description","ram_mb","cpu_pct","disk_mb","databases","backups","extra_ports","price","interval","node_pool","tier_class","location","allowed_kinds","featured","active","sort","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"pln_3c5e7g9j1l3n5p7r","name":"Diamond","description":"Light modpacks and busy SMPs.","ram_mb":6144,"cpu_pct":200,"disk_mb":30720,"databases":1,"backups":2,"extra_ports":0,"price":{"amount":1500,"currency":"usd"},"interval":"month","node_pool":"enzonic","tier_class":"standard","location":null,"allowed_kinds":null,"featured":true,"active":true,"sort":2,"created_at":"2026-10-01T09:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"plans:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"description":"Up to 60 characters"},"description":{"type":"string","maxLength":2000,"description":"Up to 500 characters"},"ram_gb":{"type":"number","description":"0.5 to 512 GB (up to 3 decimals)"},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"10 to 6400; 100 = one vCPU"},"disk_gb":{"type":"number","description":"1 to 4096 GB"},"databases":{"description":"0 to 20, default 1","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"description":"0 to 50, default 2","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"extra_ports":{"description":"0 to 20, default 0","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly price in cents of your store currency; at least the minimum for these resources"},"node_pool":{"type":"string","enum":["enzonic","byo"],"description":"enzonic (default) or byo (your own nodes)"},"tier_class":{"type":"string","maxLength":20,"description":"Performance tier: 'standard' (default), or a premium line Enzonic currently offers (Enzonic nodes only). Locked once customers bought the plan."},"location":{"type":"string","maxLength":40,"description":"Enzonic-node region: europe, north-america or asia, or empty for any region"},"featured":{"type":"boolean"},"active":{"description":"Default true","type":"boolean"}},"required":["name","ram_gb","cpu_pct","disk_gb","price_cents"]},"example":{"name":"Diamond","ram_gb":6,"cpu_pct":200,"disk_gb":30,"price_cents":1500}}}}}},"/plans/{plan_id}":{"get":{"operationId":"plans.get","summary":"Get a plan","description":"Includes how many subscriptions and servers use it.\n\nScope: `plans:read`.\n\nKeys: reseller.","tags":["Plans"],"security":[{"bearer":["plans:read"]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","pattern":"^pln_[0-9a-z]{16}$","description":"Plan id (pln_...)"},"description":"Plan id (pln_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"extra_ports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Monthly price in cents"},"interval":{"type":"string","const":"month"},"node_pool":{"type":"string","enum":["enzonic","byo"],"description":"enzonic = Enzonic nodes, byo = your own nodes"},"tier_class":{"type":"string","description":"Performance tier: 'standard', or a premium line Enzonic offers on its own nodes"},"location":{"description":"Region the plan is pinned to (Enzonic nodes): europe, north-america or asia; null = any","type":["string","null"]},"allowed_kinds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Software kinds this plan may run; null = any"},"featured":{"type":"boolean"},"active":{"type":"boolean","description":"Sold on the storefront"},"sort":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"},"usage":{"type":"object","properties":{"subscriptions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active_subscriptions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["subscriptions","active_subscriptions","servers"],"additionalProperties":false}},"required":["id","name","description","ram_mb","cpu_pct","disk_mb","databases","backups","extra_ports","price","interval","node_pool","tier_class","location","allowed_kinds","featured","active","sort","created_at","usage"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"plans:read"},"patch":{"operationId":"plans.update","summary":"Update a plan","description":"Send only the fields to change; the result is checked like the admin form. A new price applies to new orders; existing subscriptions keep the price they were bought at. The node pool cannot change once customers bought the plan.\n\nScope: `plans:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Plans"],"security":[{"bearer":["plans:write"]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","pattern":"^pln_[0-9a-z]{16}$","description":"Plan id (pln_...)"},"description":"Plan id (pln_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"extra_ports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Monthly price in cents"},"interval":{"type":"string","const":"month"},"node_pool":{"type":"string","enum":["enzonic","byo"],"description":"enzonic = Enzonic nodes, byo = your own nodes"},"tier_class":{"type":"string","description":"Performance tier: 'standard', or a premium line Enzonic offers on its own nodes"},"location":{"description":"Region the plan is pinned to (Enzonic nodes): europe, north-america or asia; null = any","type":["string","null"]},"allowed_kinds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Software kinds this plan may run; null = any"},"featured":{"type":"boolean"},"active":{"type":"boolean","description":"Sold on the storefront"},"sort":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"}},"required":["id","name","description","ram_mb","cpu_pct","disk_mb","databases","backups","extra_ports","price","interval","node_pool","tier_class","location","allowed_kinds","featured","active","sort","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"pln_3c5e7g9j1l3n5p7r","name":"Diamond","description":"Light modpacks and busy SMPs.","ram_mb":6144,"cpu_pct":200,"disk_mb":30720,"databases":1,"backups":2,"extra_ports":0,"price":{"amount":1600,"currency":"usd"},"interval":"month","node_pool":"enzonic","tier_class":"standard","location":null,"allowed_kinds":null,"featured":true,"active":true,"sort":2,"created_at":"2026-10-01T09:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"plans:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"description":"Up to 60 characters"},"description":{"type":"string","maxLength":2000,"description":"Up to 500 characters"},"ram_gb":{"type":"number","description":"0.5 to 512 GB (up to 3 decimals)"},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"10 to 6400; 100 = one vCPU"},"disk_gb":{"type":"number","description":"1 to 4096 GB"},"databases":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 to 20"},"backups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 to 50"},"extra_ports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 to 20"},"price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly price in cents of your store currency; at least the minimum for these resources"},"node_pool":{"type":"string","enum":["enzonic","byo"],"description":"enzonic (default) or byo (your own nodes)"},"tier_class":{"type":"string","maxLength":20,"description":"Performance tier: 'standard' (default), or a premium line Enzonic currently offers (Enzonic nodes only). Locked once customers bought the plan."},"location":{"type":"string","maxLength":40,"description":"Enzonic-node region: europe, north-america or asia, or empty for any region"},"featured":{"type":"boolean"},"active":{"type":"boolean"}}},"example":{"price_cents":1600}}}}},"delete":{"operationId":"plans.delete","summary":"Delete a plan nobody has bought","description":"Only plans without any order, subscription or server can be deleted (409 conflict otherwise: set `active: false` to stop selling it instead).\n\nScope: `plans:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.\n\nChanges what customers are charged.","tags":["Plans"],"security":[{"bearer":["plans:write"]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","pattern":"^pln_[0-9a-z]{16}$","description":"Plan id (pln_...)"},"description":"Plan id (pln_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}},"example":{"data":{"id":"pln_3c5e7g9j1l3n5p7r","deleted":true}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"plans:write","x-destructive":true,"x-money-moving":true}},"/orders":{"get":{"operationId":"orders.list","summary":"List orders","description":"One order per checkout. `fulfilled` orders have a server.\n\nScope: `orders:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","paid","fulfilled","expired","failed"]}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"customer_id":{"type":"string"},"plan_id":{"type":"string"},"server_name":{"type":"string"},"software_id":{"type":"string"},"status":{"type":"string","enum":["open","paid","fulfilled","expired","failed"]},"server_id":{"type":["string","null"]},"price":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}],"description":"The plan's current price (the subscription keeps the price paid)"},"paid_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","customer_id","plan_id","server_name","software_id","status","server_id","price","paid_at","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:read"},"post":{"operationId":"orders.create","summary":"Create an order and get the payment link for the customer","description":"Starts the same checkout as your storefront for one of your plans: the customer opens `checkout_url`, pays by card (3-D Secure, your Stripe account) and the server is created automatically. Follow it with GET /orders/{order_id} or the order.* webhooks. The customer must have a verified email.\n\nScope: `orders:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"order_id":{"type":"string"},"checkout_url":{"type":"string"}},"required":["order_id","checkout_url"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string","maxLength":40},"plan_id":{"type":"string","maxLength":40},"software_id":{"type":"string","maxLength":40},"server_name":{"type":"string","minLength":1,"maxLength":40},"variables":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":200}},"discount_code":{"type":"string","maxLength":40},"success_url":{"description":"Default: your store order page","type":"string","maxLength":500,"format":"uri"},"cancel_url":{"type":"string","maxLength":500,"format":"uri"}},"required":["customer_id","plan_id","software_id","server_name"]}}}}}},"/orders/{order_id}":{"get":{"operationId":"orders.get","summary":"Get an order","description":"Scope: `orders:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:read"]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","pattern":"^ord_[0-9a-z]{16}$","description":"Order id (ord_...)"},"description":"Order id (ord_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"customer_id":{"type":"string"},"plan_id":{"type":"string"},"server_name":{"type":"string"},"software_id":{"type":"string"},"status":{"type":"string","enum":["open","paid","fulfilled","expired","failed"]},"server_id":{"type":["string","null"]},"price":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}],"description":"The plan's current price (the subscription keeps the price paid)"},"paid_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","customer_id","plan_id","server_name","software_id","status","server_id","price","paid_at","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:read"}},"/subscriptions":{"get":{"operationId":"subscriptions.list","summary":"List subscriptions","description":"Scope: `orders:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"status","in":"query","required":false,"schema":{"description":"active, past_due, canceled, ...","type":"string","maxLength":20},"description":"active, past_due, canceled, ..."},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"customer_id":{"type":"string"},"plan_id":{"type":"string"},"server_id":{"type":["string","null"]},"order_id":{"type":["string","null"]},"status":{"type":"string","description":"active, trialing, past_due, unpaid, canceled or incomplete"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Monthly price this subscription pays"},"current_period_end":{"type":["string","null"]},"cancel_at_period_end":{"type":"boolean"},"created_at":{"type":"string"}},"required":["id","customer_id","plan_id","server_id","order_id","status","price","current_period_end","cancel_at_period_end","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}},"example":{"data":[{"id":"sub_4d6f8h0j2l4n6q8s","customer_id":"usr_2b4d6f8h0j2l4n6q","plan_id":"pln_3c5e7g9j1l3n5p7r","server_id":"srv_7f3kq9m2x8c4v6b1","order_id":"ord_5e7g9j1l3n5p7r9t","status":"active","price":{"amount":1500,"currency":"usd"},"current_period_end":"2026-11-01T11:58:00.000Z","cancel_at_period_end":false,"created_at":"2026-10-01T11:58:00.000Z"}],"next_cursor":null}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:read"}},"/subscriptions/{subscription_id}":{"get":{"operationId":"subscriptions.get","summary":"Get a subscription","description":"Scope: `orders:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:read"]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","pattern":"^sub_[0-9a-z]{16}$","description":"Subscription id (sub_...)"},"description":"Subscription id (sub_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"customer_id":{"type":"string"},"plan_id":{"type":"string"},"server_id":{"type":["string","null"]},"order_id":{"type":["string","null"]},"status":{"type":"string","description":"active, trialing, past_due, unpaid, canceled or incomplete"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Monthly price this subscription pays"},"current_period_end":{"type":["string","null"]},"cancel_at_period_end":{"type":"boolean"},"created_at":{"type":"string"}},"required":["id","customer_id","plan_id","server_id","order_id","status","price","current_period_end","cancel_at_period_end","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:read"}},"/invoices":{"get":{"operationId":"invoices.list","summary":"List invoices","description":"Scope: `invoices:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["invoices:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","open","paid","void","uncollectible"]}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"customer_id":{"type":"string"},"subscription_id":{"type":["string","null"]},"number":{"type":["string","null"]},"status":{"type":"string","description":"draft, open, paid, void or uncollectible"},"subtotal":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"tax":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"platform_fee":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Enzonic base price + platform fee kept from this invoice"},"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"What you receive"},"refunded":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"reason":{"type":["string","null"]},"url":{"description":"Customer-facing invoice page","type":["string","null"]},"paid_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","customer_id","subscription_id","number","status","subtotal","tax","total","platform_fee","net","refunded","reason","url","paid_at","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"invoices:read"}},"/invoices/{invoice_id}":{"get":{"operationId":"invoices.get","summary":"Get an invoice","description":"Scope: `invoices:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["invoices:read"]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","pattern":"^inv_[0-9a-z]{16}$","description":"Invoice id (inv_...)"},"description":"Invoice id (inv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"customer_id":{"type":"string"},"subscription_id":{"type":["string","null"]},"number":{"type":["string","null"]},"status":{"type":"string","description":"draft, open, paid, void or uncollectible"},"subtotal":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"tax":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"platform_fee":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Enzonic base price + platform fee kept from this invoice"},"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"What you receive"},"refunded":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"reason":{"type":["string","null"]},"url":{"description":"Customer-facing invoice page","type":["string","null"]},"paid_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","customer_id","subscription_id","number","status","subtotal","tax","total","platform_fee","net","refunded","reason","url","paid_at","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"invoices:read"}},"/billing/summary":{"get":{"operationId":"billing.summary","summary":"Show payout status and revenue totals","description":"Whether card payments and payouts are enabled for your store, the platform fee rate, and revenue from the billing ledger for the last 30 days and all time (gross, Enzonic share, your net).\n\nScope: `billing:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["billing:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"currency":{"type":"string"},"payments_enabled":{"type":"boolean"},"payouts_enabled":{"type":"boolean"},"onboarding_complete":{"type":"boolean"},"fee_percent":{"type":"number","description":"Platform fee on top of the Enzonic base price, in percent"},"active_subscriptions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_30_days":{"type":"object","properties":{"gross":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"platform":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false}},"required":["gross","platform","net"],"additionalProperties":false},"all_time":{"type":"object","properties":{"gross":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"platform":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false}},"required":["gross","platform","net"],"additionalProperties":false}},"required":["currency","payments_enabled","payouts_enabled","onboarding_complete","fee_percent","active_subscriptions","last_30_days","all_time"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"billing:read"}},"/subscriptions/{subscription_id}/cancel":{"post":{"operationId":"subscriptions.cancel","summary":"Cancel a subscription at the end of the paid period","description":"The server keeps running until `current_period_end`, then the subscription ends. Undo with /resume.\n\nScope: `orders:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:write"]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","pattern":"^sub_[0-9a-z]{16}$","description":"Subscription id (sub_...)"},"description":"Subscription id (sub_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"plan_id":{"type":"string"},"server_id":{"type":["string","null"]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"cancel_at_period_end":{"type":"boolean"},"current_period_end":{"type":["string","null"]}},"required":["id","status","plan_id","server_id","price","cancel_at_period_end","current_period_end"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:write","x-money-moving":true}},"/subscriptions/{subscription_id}/resume":{"post":{"operationId":"subscriptions.resume","summary":"Keep a subscription renewing (undo a cancellation)","description":"Scope: `orders:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:write"]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","pattern":"^sub_[0-9a-z]{16}$","description":"Subscription id (sub_...)"},"description":"Subscription id (sub_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"plan_id":{"type":"string"},"server_id":{"type":["string","null"]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"cancel_at_period_end":{"type":"boolean"},"current_period_end":{"type":["string","null"]}},"required":["id","status","plan_id","server_id","price","cancel_at_period_end","current_period_end"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:write","x-money-moving":true}},"/subscriptions/{subscription_id}/plan-options":{"get":{"operationId":"subscriptions.plan_options","summary":"List the plans a subscription can upgrade or downgrade to","description":"Scope: `orders:read`.\n\nKeys: reseller.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:read"]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","pattern":"^sub_[0-9a-z]{16}$","description":"Subscription id (sub_...)"},"description":"Subscription id (sub_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"plan_id":{"type":"string"},"name":{"type":"string"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["plan_id","name","price","ram_mb","cpu_pct","disk_mb"],"additionalProperties":false}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:read"}},"/subscriptions/{subscription_id}/change-plan":{"post":{"operationId":"subscriptions.change_plan","summary":"Upgrade or downgrade a subscription (prorated) and resize its server","description":"The difference is prorated on the next invoice; the server is resized right away. Only active subscriptions; plans from /plan-options.\n\nScope: `orders:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Orders, invoices and billing"],"security":[{"bearer":["orders:write"]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","pattern":"^sub_[0-9a-z]{16}$","description":"Subscription id (sub_...)"},"description":"Subscription id (sub_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"plan_id":{"type":"string"},"server_id":{"type":["string","null"]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"cancel_at_period_end":{"type":"boolean"},"current_period_end":{"type":["string","null"]},"server_resized":{"type":"boolean"}},"required":["id","status","plan_id","server_id","price","cancel_at_period_end","current_period_end","server_resized"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"orders:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan_id":{"type":"string","maxLength":40}},"required":["plan_id"]}}}}}},"/credits":{"get":{"operationId":"credits.balance","summary":"Show the credit balance","description":"Enzonic credits pay for grants (servers you give away) and other platform charges.\n\nScope: `credits:read`.\n\nKeys: reseller.","tags":["Credits"],"security":[{"bearer":["credits:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"balance":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false}},"required":["balance"],"additionalProperties":false}}},"example":{"data":{"balance":{"amount":2500,"currency":"usd"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"credits:read"}},"/credits/ledger":{"get":{"operationId":"credits.ledger","summary":"List credit ledger entries","description":"Scope: `credits:read`.\n\nKeys: reseller.","tags":["Credits"],"security":[{"bearer":["credits:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["trial","topup","grant_charge","order_fee","enzica","refund","adjust","reversal"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["trial","topup","grant_charge","order_fee","enzica","refund","adjust","reversal"]},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Signed: positive adds credit, negative spends it"},"balance_after":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"reference":{"type":"object","properties":{"type":{"type":["string","null"]},"id":{"type":["string","null"]}},"required":["type","id"],"additionalProperties":false},"note":{"type":"string"},"created_at":{"type":"string"}},"required":["id","kind","amount","balance_after","reference","note","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"credits:read"}},"/flex/pricing":{"get":{"operationId":"flex.pricing.get","summary":"Show your Flex prices, the lowest allowed prices and the size limits","description":"Scope: `flex:read`.\n\nKeys: reseller.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"currency":{"type":"string"},"hours_per_month":{"type":"number"},"prices":{"anyOf":[{"type":"object","properties":{"ram_gb":{"type":"number"},"vcpu":{"type":"number"},"disk_10gb":{"type":"number"}},"required":["ram_gb","vcpu","disk_10gb"],"additionalProperties":false},{"type":"null"}]},"lowest_prices":{"type":"object","properties":{"ram_gb":{"type":"number"},"vcpu":{"type":"number"},"disk_10gb":{"type":"number"}},"required":["ram_gb","vcpu","disk_10gb"],"additionalProperties":false},"enzonic_cost":{"type":"object","properties":{"ram_gb":{"type":"number"},"vcpu":{"type":"number"},"disk_10gb":{"type":"number"}},"required":["ram_gb","vcpu","disk_10gb"],"additionalProperties":false},"platform_fee_percent":{"type":"number"},"max_ram_mb":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"max_servers_per_customer":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["enabled","currency","hours_per_month","prices","lowest_prices","enzonic_cost","platform_fee_percent","max_ram_mb","max_servers_per_customer"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:read"},"put":{"operationId":"flex.pricing.update","summary":"Turn Flex on or off and set your prices","description":"Prices are cents per month of running time (billed per second). Each must be at least the lowest price from GET /flex/pricing.\n\nScope: `flex:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:write"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean","const":true}},"required":["saved"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"ram_gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cents per GB RAM per month"},"vcpu":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cents per vCPU per month"},"disk_10gb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cents per 10 GB disk per month"},"max_ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_servers_per_customer":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["enabled","ram_gb","vcpu","disk_10gb"]}}}}}},"/customers/{customer_id}/flex":{"get":{"operationId":"flex.balance.get","summary":"Show a customer's Flex balance, hourly cost and recent charges","description":"Scope: `flex:read`.\n\nKeys: reseller.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:read"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"customer_id":{"type":"string"},"balance":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"precise_millicents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"running_cost_per_hour":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Sum of the hourly price of the customer Flex servers"},"hours_left":{"description":"At that hourly cost, null when nothing is billed","type":["number","null"]},"history":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["topup","usage","refund","adjust"]},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"note":{"type":"string"},"created_at":{"type":"string"}},"required":["kind","amount","note","created_at"],"additionalProperties":false}}},"required":["customer_id","balance","precise_millicents","running_cost_per_hour","hours_left","history"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:read"}},"/customers/{customer_id}/flex/topup-link":{"post":{"operationId":"flex.balance.topup_link","summary":"Create a card payment link that tops up a customer Flex balance","description":"Returns a hosted checkout URL for the customer (3-D Secure, your Stripe account). The balance is credited when the payment succeeds and passes the fraud checks. Amount in cents, 500 to 50000.\n\nScope: `flex:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:write"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"topup_id":{"type":"string"},"checkout_url":{"type":"string"}},"required":["topup_id","checkout_url"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","minimum":500,"maximum":50000}},"required":["amount"]}}}}}},"/customers/{customer_id}/flex/adjust":{"post":{"operationId":"flex.balance.adjust","summary":"Add to or take from a customer Flex balance","description":"Positive = a gift from your store, negative = a correction. Needs an Idempotency-Key; the same key never posts twice.\n\nScope: `flex:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:write"]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"customer_id":{"type":"string"},"balance":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"precise_millicents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"running_cost_per_hour":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Sum of the hourly price of the customer Flex servers"},"hours_left":{"description":"At that hourly cost, null when nothing is billed","type":["number","null"]}},"required":["customer_id","balance","precise_millicents","running_cost_per_hour","hours_left"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cents, + or -"},"note":{"default":"","type":"string","maxLength":120},"reference":{"type":"string","minLength":1,"maxLength":80,"description":"Your own unique reference (posted once)"}},"required":["amount","reference"]}}}}}},"/flex/servers":{"get":{"operationId":"flex.servers.list","summary":"List Flex servers with their hourly price and usage","description":"Scope: `flex:read`.\n\nKeys: reseller.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:read"]}],"parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"server_id":{"type":"string"},"customer_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"power_state":{"description":"Last state the meter saw: running, offline, ...","type":["string","null"]},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_per_hour":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Cents, fractional"},"run_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spent":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"stopped_reason":{"description":"balance | store_balance | null","type":["string","null"]},"created_at":{"type":"string"}},"required":["server_id","customer_id","name","status","power_state","ram_mb","cpu_pct","disk_mb","price_per_hour","run_seconds","spent","stopped_reason","created_at"],"additionalProperties":false}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:read"},"post":{"operationId":"flex.servers.create","summary":"Create a Flex server for a customer","description":"The customer's Flex balance must cover one hour of the size. The server is a normal server afterwards: use /servers/{server_id}/... for power, console, files, backups and sub-users.\n\nScope: `flex:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"server_id":{"type":"string"},"customer_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"power_state":{"description":"Last state the meter saw: running, offline, ...","type":["string","null"]},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_per_hour":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Cents, fractional"},"run_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spent":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"stopped_reason":{"description":"balance | store_balance | null","type":["string","null"]},"created_at":{"type":"string"},"price_per_month_if_always_on":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false}},"required":["server_id","customer_id","name","status","power_state","ram_mb","cpu_pct","disk_mb","price_per_hour","run_seconds","spent","stopped_reason","created_at","price_per_month_if_always_on"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"name":{"type":"string","minLength":1,"maxLength":40},"software_id":{"type":"string","maxLength":40},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"512 MB steps"},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU, 50 steps"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1024 MB steps"}},"required":["customer_id","name","software_id","ram_mb","cpu_pct","disk_mb"]}}}}}},"/flex/servers/{server_id}":{"get":{"operationId":"flex.servers.get","summary":"Get one Flex server with its hourly price and usage","description":"Scope: `flex:read`.\n\nKeys: reseller.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:read"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"server_id":{"type":"string"},"customer_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"power_state":{"description":"Last state the meter saw: running, offline, ...","type":["string","null"]},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_per_hour":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Cents, fractional"},"run_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spent":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"stopped_reason":{"description":"balance | store_balance | null","type":["string","null"]},"created_at":{"type":"string"}},"required":["server_id","customer_id","name","status","power_state","ram_mb","cpu_pct","disk_mb","price_per_hour","run_seconds","spent","stopped_reason","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:read"},"patch":{"operationId":"flex.servers.resize","summary":"Resize a Flex server (new price from now on)","description":"Scope: `flex:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"server_id":{"type":"string"},"customer_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"power_state":{"description":"Last state the meter saw: running, offline, ...","type":["string","null"]},"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price_per_hour":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Cents, fractional"},"run_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spent":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"stopped_reason":{"description":"balance | store_balance | null","type":["string","null"]},"created_at":{"type":"string"}},"required":["server_id","customer_id","name","status","power_state","ram_mb","cpu_pct","disk_mb","price_per_hour","run_seconds","spent","stopped_reason","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"512 MB steps"},"cpu_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"100 = one vCPU, 50 steps"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1024 MB steps"}},"required":["ram_mb","cpu_pct","disk_mb"]}}}}},"delete":{"operationId":"flex.servers.delete","summary":"Delete a Flex server and its files (bills the time it ran first)","description":"Scope: `flex:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:write"]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","pattern":"^srv_[0-9a-z]{16}$","description":"Server id (srv_...)"},"description":"Server id (srv_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:write","x-destructive":true}},"/flex/limits":{"get":{"operationId":"flex.limits","summary":"Show the sizes a Flex server can have in your store","description":"Scope: `flex:read`.\n\nKeys: reseller.","tags":["Flex servers (hourly)"],"security":[{"bearer":["flex:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"ram_mb":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"}},"required":["min","max","step"],"additionalProperties":false},"cpu_pct":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"}},"required":["min","max","step"],"additionalProperties":false},"disk_mb":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"}},"required":["min","max","step"],"additionalProperties":false}},"required":["ram_mb","cpu_pct","disk_mb"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"flex:read"}},"/vps/account":{"get":{"operationId":"vps.account.get","summary":"Show the store VPS reseller link, tier, balance and limits","description":"Your wholesale discount tier (Starter 15 %, Growth 20 %, Pro 25 % on monthly VPS spend), the Enzonic VPS balance that pays the wholesale, VPS counts and limits, and your white-label VPS panel host.\n\nScope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"linked":{"type":"boolean"},"available":{"type":"boolean","description":"VPS ordering is open on the platform"},"account":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["linked","available","account"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/plans":{"get":{"operationId":"vps.plans.list","summary":"List VPS plans with your wholesale and retail prices","description":"Every Enzonic VPS plan with its specs, your wholesale price (list price minus your tier discount) and the retail price your store charges (`retail` null = not offered yet; set it with PUT /vps/plans/{plan_key}).\n\nScope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"plan_key":{"type":"string"},"name":{"type":"string"},"vcpu":{"type":["number","null"]},"memory_mb":{"type":["number","null"]},"disk_gb":{"type":["number","null"]},"network_speed_mbit":{"type":["number","null"]},"wholesale":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"retail":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"active":{"type":"boolean"}},"required":["plan_key","name","vcpu","memory_mb","disk_gb","network_speed_mbit","wholesale","retail","active"],"additionalProperties":false}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/plans/{plan_key}":{"put":{"operationId":"vps.plans.update","summary":"Set the retail price of a VPS plan and offer or hide it","description":"Monthly retail price in cents (USD), never below your wholesale price. New orders use it; running card subscriptions keep their price. Also synced to your white-label VPS panel. Needs vps:write and plans:write.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"plan_key","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,19}$","description":"VPS plan key from GET /vps/plans (s, m, l, xl, ...)"},"description":"VPS plan key from GET /vps/plans (s, m, l, xl, ...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"plan_key":{"type":"string"},"retail":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"active":{"type":"boolean"}},"required":["plan_key","retail","active"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"retail_price":{"type":"integer","minimum":1,"maximum":10000000,"description":"Cents per month"},"active":{"default":true,"type":"boolean"}},"required":["retail_price"]}}}}}},"/vps/templates":{"get":{"operationId":"vps.templates.list","summary":"List operating systems and one-click panel stacks","description":"Operating systems, plus one-click stacks (`category: \"stack\"`: Wings node, game panels, billing panels) with their minimum RAM.\n\nScope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/regions":{"get":{"operationId":"vps.regions.list","summary":"List VPS regions with IPv4 / IPv6 and dedicated IPv4 stock","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/orders":{"post":{"operationId":"vps.orders.create","summary":"Create a VPS order and get the payment link for the customer","description":"Same checkout as your storefront: the customer pays your retail price monthly (card with 3-D Secure through your Stripe account, or `pay_with` = one of your own subscription gateways). After payment and the fraud screen the VPS is created automatically (orders from new stores wait for review). Needs vps:write and orders:write; the customer must have a verified email.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"order_id":{"type":"string"},"checkout_url":{"type":"string"}},"required":["order_id","checkout_url"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"plan_key":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,19}$","description":"VPS plan key from GET /vps/plans (s, m, l, xl, ...)"},"template":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{1,60}$","description":"Template key from GET /vps/templates (operating system or one-click panel stack)"},"server_name":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9 ._-]{0,39}$","description":"1-40 letters, numbers, spaces, dots or dashes"},"region":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,40}$","description":"Region key from GET /vps/regions (europe, united_states, ...)"},"pay_with":{"default":"stripe_connect","description":"stripe_connect or an own gateway config id","type":"string","maxLength":40}},"required":["customer_id","plan_key","template","server_name"]}}}}},"get":{"operationId":"vps.orders.list","summary":"List VPS orders","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":20}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"order_id":{"type":"string"},"vps_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"customer_id":{"type":"string"},"plan_key":{"type":"string"},"plan_name":{"type":"string"},"template":{"type":"string"},"region":{"type":["string","null"]},"server_name":{"type":"string"},"status":{"type":"string","description":"open, paid (waiting to be created), provisioning, active, suspended, terminated, failed, expired"},"paid_by":{"type":"string","description":"stripe_connect, an own gateway, or store_balance"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Retail price per month the customer pays (0 for store_balance)"},"in_review":{"type":"boolean","description":"Held for the fraud review: nothing is created until it is released"},"last_error":{"type":["string","null"]},"current_period_end":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["order_id","vps_id","customer_id","plan_key","plan_name","template","region","server_name","status","paid_by","price","in_review","last_error","current_period_end","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/orders/{order_id}":{"get":{"operationId":"vps.orders.get","summary":"Get one VPS order","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","pattern":"^vpo_[0-9a-z]{16}$","description":"VPS order id (vpo_...)"},"description":"VPS order id (vpo_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"order_id":{"type":"string"},"vps_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"customer_id":{"type":"string"},"plan_key":{"type":"string"},"plan_name":{"type":"string"},"template":{"type":"string"},"region":{"type":["string","null"]},"server_name":{"type":"string"},"status":{"type":"string","description":"open, paid (waiting to be created), provisioning, active, suspended, terminated, failed, expired"},"paid_by":{"type":"string","description":"stripe_connect, an own gateway, or store_balance"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Retail price per month the customer pays (0 for store_balance)"},"in_review":{"type":"boolean","description":"Held for the fraud review: nothing is created until it is released"},"last_error":{"type":["string","null"]},"current_period_end":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["order_id","vps_id","customer_id","plan_key","plan_name","template","region","server_name","status","paid_by","price","in_review","last_error","current_period_end","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/servers":{"post":{"operationId":"vps.servers.create","summary":"Create a VPS for a customer now, paid from your Enzonic VPS balance","description":"No customer payment: Enzonic takes the wholesale price from your Enzonic VPS balance now and at every renewal (bill the customer yourself). `root_password` is returned once. Refused while the store or the customer is blocked; Enzonic limits for new resellers apply. Needs vps:write and orders:write.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"order":{"type":"object","properties":{"order_id":{"type":"string"},"vps_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"customer_id":{"type":"string"},"plan_key":{"type":"string"},"plan_name":{"type":"string"},"template":{"type":"string"},"region":{"type":["string","null"]},"server_name":{"type":"string"},"status":{"type":"string","description":"open, paid (waiting to be created), provisioning, active, suspended, terminated, failed, expired"},"paid_by":{"type":"string","description":"stripe_connect, an own gateway, or store_balance"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Retail price per month the customer pays (0 for store_balance)"},"in_review":{"type":"boolean","description":"Held for the fraud review: nothing is created until it is released"},"last_error":{"type":["string","null"]},"current_period_end":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["order_id","vps_id","customer_id","plan_key","plan_name","template","region","server_name","status","paid_by","price","in_review","last_error","current_period_end","created_at"],"additionalProperties":false},"server":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"root_password":{"type":["string","null"]}},"required":["order","server","root_password"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"plan_key":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,19}$","description":"VPS plan key from GET /vps/plans (s, m, l, xl, ...)"},"template":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{1,60}$","description":"Template key from GET /vps/templates (operating system or one-click panel stack)"},"server_name":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9 ._-]{0,39}$","description":"1-40 letters, numbers, spaces, dots or dashes"},"region":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,40}$","description":"Region key from GET /vps/regions (europe, united_states, ...)"},"hostname":{"type":"string","maxLength":253,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$"},"ssh_key_ids":{"description":"From GET /vps/ssh-keys","maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}},"required":["customer_id","plan_key","template","server_name"]}}}}},"get":{"operationId":"vps.servers.list","summary":"List the VPS your store sold, with live status","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","maxLength":40,"description":"Customer id (usr_...)"},"description":"Customer id (usr_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"vps_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"order_id":{"type":"string"},"customer_id":{"type":"string"},"plan_key":{"type":"string"},"order_status":{"type":"string"},"server":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"Live state from Enzonic; null when it could not be read"}},"required":["vps_id","order_id","customer_id","plan_key","order_status","server"],"additionalProperties":false}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/servers/{vps_id}":{"get":{"operationId":"vps.servers.get","summary":"Get one VPS: status, power, plan, OS, IPs, ports, rescue, limits","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"order":{"type":"object","properties":{"order_id":{"type":"string"},"vps_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"customer_id":{"type":"string"},"plan_key":{"type":"string"},"plan_name":{"type":"string"},"template":{"type":"string"},"region":{"type":["string","null"]},"server_name":{"type":"string"},"status":{"type":"string","description":"open, paid (waiting to be created), provisioning, active, suspended, terminated, failed, expired"},"paid_by":{"type":"string","description":"stripe_connect, an own gateway, or store_balance"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false,"description":"Retail price per month the customer pays (0 for store_balance)"},"in_review":{"type":"boolean","description":"Held for the fraud review: nothing is created until it is released"},"last_error":{"type":["string","null"]},"current_period_end":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["order_id","vps_id","customer_id","plan_key","plan_name","template","region","server_name","status","paid_by","price","in_review","last_error","current_period_end","created_at"],"additionalProperties":false},"server":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["order","server"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"},"patch":{"operationId":"vps.servers.update","summary":"Rename a VPS or change its hostname","description":"Scope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"hostname":{"type":"string","maxLength":253}}}}}}},"delete":{"operationId":"vps.servers.delete","summary":"Delete a VPS for good and stop its billing","description":"Deletes the VPS and its disk on Enzonic (the wholesale stops renewing) and cancels the customer card subscription now. Own-gateway subscriptions must be cancelled in that provider (`billing_note`). Send `confirm` = the VPS name.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"subscription_cancelled":{"type":"boolean"},"billing_note":{"type":["string","null"]}},"required":["deleted","subscription_cancelled","billing_note"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-destructive":true,"x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","maxLength":60,"description":"The VPS name, as a safety check"}},"required":["confirm"]}}}}}},"/vps/servers/{vps_id}/login-link":{"post":{"operationId":"vps.servers.login_link","summary":"One-time sign-in link to your white-label VPS panel for the customer","description":"Single use, valid 10 minutes, opens this VPS in your branded VPS panel.\n\nScope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write"}},"/vps/servers/{vps_id}/power":{"post":{"operationId":"vps.servers.power","summary":"Start, stop, restart or kill a VPS","description":"`stop` is a clean ACPI shutdown, `kill` cuts the power.\n\nScope: `vps:power`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:power"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:power","x-rate-class":"power","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signal":{"type":"string","enum":["start","stop","restart","kill"]}},"required":["signal"]},"example":{"signal":"restart"}}}}}},"/vps/servers/{vps_id}/suspend":{"post":{"operationId":"vps.servers.suspend","summary":"Suspend a VPS (stopped, customer locked out, disk kept)","description":"Scope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"suspended":{"type":"boolean"}},"required":["suspended"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":300}}}}}}}},"/vps/servers/{vps_id}/unsuspend":{"post":{"operationId":"vps.servers.unsuspend","summary":"Lift your own suspension of a VPS","description":"Enzonic suspensions (unpaid wholesale, abuse review) can only be lifted by Enzonic.\n\nScope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"suspended":{"type":"boolean"}},"required":["suspended"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write"}},"/vps/servers/{vps_id}/reinstall":{"post":{"operationId":"vps.servers.reinstall","summary":"Reinstall a VPS with an OS or panel stack (wipes the disk)","description":"Send `confirm` = the VPS name. Optional SSH keys (ids from /vps/ssh-keys) and root password; a new password is generated and returned once when none is given.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"server":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"root_password":{"type":["string","null"]}},"required":["server","root_password"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-destructive":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{1,60}$","description":"Template key from GET /vps/templates (operating system or one-click panel stack)"},"confirm":{"type":"string","maxLength":60},"ssh_key_ids":{"maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"password":{"type":"string","minLength":12,"maxLength":128}},"required":["template","confirm"]}}}}}},"/vps/servers/{vps_id}/password":{"post":{"operationId":"vps.servers.password","summary":"Reset the root / default user password of a running VPS","description":"Without `password` a strong one is generated. Returned once.\n\nScope: `vps:console`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:console"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:console","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":12,"maxLength":128}}}}}}}},"/vps/servers/{vps_id}/rescue":{"post":{"operationId":"vps.servers.rescue","summary":"Boot a VPS into rescue mode or back to its disk","description":"Scope: `vps:power`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:power"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:power","x-rate-class":"power","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/vps/servers/{vps_id}/console":{"post":{"operationId":"vps.servers.console","summary":"Get a short-lived VNC console session (noVNC)","description":"Returns `ws_url`, `session_url` and a signed `token` (valid about a minute) for a noVNC client: open the websocket at `ws_url` with the token. Works in rescue mode and before the network is up.\n\nScope: `vps:console`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:console"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:console","x-rate-class":"console"}},"/vps/servers/{vps_id}/terminal":{"post":{"operationId":"vps.servers.terminal","summary":"Get a short-lived web terminal (SSH) session","description":"Returns `ws_url`, a signed `token` and the `login` user for the SSH-key web terminal.\n\nScope: `vps:console`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:console"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:console","x-rate-class":"console"}},"/vps/servers/{vps_id}/network":{"get":{"operationId":"vps.servers.network","summary":"Show the IPv4, SSH port, forwarded port range, IPv6 and dedicated IPv4 of a VPS","description":"Shared IPv4 VPS get a fixed range of forwarded ports (one is SSH); a dedicated IPv4 is 1:1 and has every port. There is no per-VPS firewall rule API and no reverse DNS: use the firewall inside the VPS (ufw, nftables). Port 25 outbound is always closed.\n\nScope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/servers/{vps_id}/metrics":{"get":{"operationId":"vps.servers.metrics","summary":"CPU, memory, network and disk graphs of a VPS","description":"Points of `cpu_pct` (of the VPS vCPUs), `memory_used_mb`, network and disk bytes per second. hour = 1 minute steps, day = 30 minutes, week = 3 hours, month = 12 hours.\n\nScope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"},{"name":"range","in":"query","required":false,"schema":{"default":"hour","type":"string","enum":["hour","day","week","month"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/servers/{vps_id}/traffic":{"get":{"operationId":"vps.servers.traffic","summary":"Network traffic of a VPS: this month and per day (31 days)","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/servers/{vps_id}/events":{"get":{"operationId":"vps.servers.events","summary":"Activity log of a VPS (power, reinstall, backups, resize, ...)","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/servers/{vps_id}/change-plan":{"post":{"operationId":"vps.servers.change_plan","summary":"Upgrade or downgrade a VPS to another plan","description":"Upgrades happen in place when the VPS host has room (prorated wholesale from your Enzonic VPS balance). Downgrades: `mode` keep (only when the new plan has at least the same disk) or fresh (reinstall on the smaller disk, wipes it: send `confirm` = the VPS name). The customer card subscription moves to your retail price of the new plan, prorated. Needs vps:write and orders:write.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"result":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"retail_updated":{"type":"boolean"},"billing_note":{"type":["string","null"]}},"required":["result","retail_updated","billing_note"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan_key":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,19}$","description":"VPS plan key from GET /vps/plans (s, m, l, xl, ...)"},"mode":{"description":"Downgrades only; default keep","type":"string","enum":["keep","fresh"]},"confirm":{"description":"The VPS name; required for mode fresh","type":"string","maxLength":60}},"required":["plan_key"]}}}}}},"/vps/servers/{vps_id}/transfer":{"get":{"operationId":"vps.servers.transfer.get","summary":"Region move: regions available and the current / last move","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"},"post":{"operationId":"vps.servers.transfer.start","summary":"Move a VPS to another region (disk copied, IPs change)","description":"The VPS is stopped during the copy. Send `confirm` = the VPS name.\n\nScope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"region":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,40}$","description":"Region key from GET /vps/regions (europe, united_states, ...)"},"confirm":{"type":"string","maxLength":60}},"required":["region","confirm"]}}}}},"delete":{"operationId":"vps.servers.transfer.cancel","summary":"Cancel a region move that has not started copying","description":"Scope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write"}},"/vps/servers/{vps_id}/backups":{"get":{"operationId":"vps.backups.list","summary":"List the backups (snapshots) of a VPS and the backup add-on state","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"},"post":{"operationId":"vps.backups.create","summary":"Take a backup of a VPS now","description":"Scope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":120}}}}}}}},"/vps/servers/{vps_id}/backups/{backup_id}/restore":{"post":{"operationId":"vps.backups.restore","summary":"Restore a VPS from a backup (replaces the disk)","description":"Send `confirm` = the VPS name.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-destructive":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","maxLength":60}},"required":["confirm"]}}}}}},"/vps/servers/{vps_id}/backups/{backup_id}":{"delete":{"operationId":"vps.backups.delete","summary":"Delete a backup of a VPS","description":"Scope: `vps:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-destructive":true}},"/vps/servers/{vps_id}/addons/backups":{"put":{"operationId":"vps.backups.addon","summary":"Turn the automatic backup add-on of a VPS on or off","description":"Charged from your Enzonic VPS balance at your wholesale add-on price.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/vps/servers/{vps_id}/addons":{"get":{"operationId":"vps.addons.get","summary":"Dedicated IPv4 add-on state, extra IPv4 addresses and prices","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"}},"/vps/servers/{vps_id}/addons/dedicated-ipv4":{"put":{"operationId":"vps.addons.dedicated_ipv4","summary":"Add or remove the dedicated IPv4 of a VPS","description":"`enabled: true` buys it (prorated, from your Enzonic VPS balance; attached in minutes or waitlisted up to 48 h); `false` ends it at the period end. `mode`: alongside (keep the shared IPv4 ports too) or instead.\n\nScope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"mode":{"type":"string","enum":["alongside","instead"]}},"required":["enabled"]}}}}}},"/vps/servers/{vps_id}/addons/extra-ipv4":{"post":{"operationId":"vps.addons.extra_ipv4.add","summary":"Add one more routed IPv4 to a VPS that has a dedicated IPv4","description":"Scope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true}},"/vps/servers/{vps_id}/addons/extra-ipv4/{assignment_id}":{"delete":{"operationId":"vps.addons.extra_ipv4.remove","summary":"Remove an extra IPv4 at the end of the paid period","description":"Scope: `vps:write`.\n\nKeys: reseller.\n\nChanges what customers are charged.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"vps_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,10}$","description":"VPS id (number, from GET /vps/servers)"},"description":"VPS id (number, from GET /vps/servers)"},{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-money-moving":true}},"/vps/ssh-keys":{"get":{"operationId":"vps.ssh_keys.list","summary":"List the SSH keys of your Enzonic VPS account (usable at create and reinstall)","description":"Scope: `vps:read`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:read"},"post":{"operationId":"vps.ssh_keys.create","summary":"Add an SSH public key","description":"Scope: `vps:write`.\n\nKeys: reseller.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"public_key":{"type":"string","minLength":40,"maxLength":4096}},"required":["name","public_key"]}}}}}},"/vps/ssh-keys/{key_id}":{"delete":{"operationId":"vps.ssh_keys.delete","summary":"Delete an SSH key (VPS that already have it keep it)","description":"Scope: `vps:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["VPS"],"security":[{"bearer":["vps:write"]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{1,12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"vps:write","x-destructive":true}},"/domains":{"get":{"operationId":"domains.list","summary":"List domains","description":"Your default address and every custom domain (at most 5), with verification status and the DNS records each one needs. Not paginated: the list is always short.\n\nScope: `domains:read`.\n\nKeys: reseller.","tags":["Domains"],"security":[{"bearer":["domains:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"kind":{"type":"string","enum":["default","custom"],"description":"`default` is the free <slug>.enzonic.dev address; it cannot change."},"status":{"type":"string","enum":["pending","active","failed","removed"]},"is_primary":{"type":"boolean","description":"The address customers are sent to."},"verification_method":{"anyOf":[{"type":"string","enum":["cf_saas","txt"]},{"type":"null"}]},"ssl_status":{"type":["string","null"]},"error":{"description":"What the last check found missing, if anything.","type":["string","null"]},"apex":{"type":"boolean","description":"A zone apex (example.com): most DNS hosts need CNAME flattening or an ALIAS record."},"required_records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","HTTP"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string"}},"required":["type","name","value","purpose"],"additionalProperties":false},"description":"DNS records to create at your DNS provider (custom domains)."},"last_checked_at":{"type":["string","null"]},"next_check_at":{"type":["string","null"]},"verified_at":{"type":["string","null"]},"grace_until":{"description":"An active domain whose records disappeared stays up until this time, then fails.","type":["string","null"]},"created_at":{"type":"string"}},"required":["id","hostname","kind","status","is_primary","verification_method","ssl_status","error","apex","required_records","last_checked_at","next_check_at","verified_at","grace_until","created_at"],"additionalProperties":false}}}},"example":{"data":[{"id":"dom_0a2c4e6g8j0l2n4q","hostname":"aurora.enzonic.dev","kind":"default","status":"active","is_primary":true,"verification_method":null,"ssl_status":null,"error":null,"apex":false,"required_records":[],"last_checked_at":null,"next_check_at":null,"verified_at":null,"grace_until":null,"created_at":"2026-09-01T08:00:00.000Z"},{"id":"dom_4h6k8m0p2r4t6v8x","hostname":"play.example.com","kind":"custom","status":"pending","is_primary":false,"verification_method":"cf_saas","ssl_status":"pending_validation","error":"Waiting for the records below (hostname status: pending).","apex":false,"required_records":[{"type":"CNAME","name":"play.example.com","value":"customers.enzonic.dev","purpose":"Sends visitors to your site."},{"type":"TXT","name":"_enzonic-verify.play.example.com","value":"enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d","purpose":"Proves you own the domain."}],"last_checked_at":"2026-10-19T10:01:00.000Z","next_check_at":"2026-10-19T10:03:00.000Z","verified_at":null,"grace_until":null,"created_at":"2026-10-19T10:00:00.000Z"}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"domains:read"},"post":{"operationId":"domains.create","summary":"Connect a custom domain","description":"Adds a domain you own (for example play.example.com) with the same rules as the admin: no reserved or platform names, no IP addresses, unique across all stores, at most 5. Then create the returned `required_records` at your DNS provider; the domain is checked automatically, or call the check endpoint. Send an Idempotency-Key to retry safely.\n\nScope: `domains:write`.\n\nKeys: reseller.","tags":["Domains"],"security":[{"bearer":["domains:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"kind":{"type":"string","enum":["default","custom"],"description":"`default` is the free <slug>.enzonic.dev address; it cannot change."},"status":{"type":"string","enum":["pending","active","failed","removed"]},"is_primary":{"type":"boolean","description":"The address customers are sent to."},"verification_method":{"anyOf":[{"type":"string","enum":["cf_saas","txt"]},{"type":"null"}]},"ssl_status":{"type":["string","null"]},"error":{"description":"What the last check found missing, if anything.","type":["string","null"]},"apex":{"type":"boolean","description":"A zone apex (example.com): most DNS hosts need CNAME flattening or an ALIAS record."},"required_records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","HTTP"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string"}},"required":["type","name","value","purpose"],"additionalProperties":false},"description":"DNS records to create at your DNS provider (custom domains)."},"last_checked_at":{"type":["string","null"]},"next_check_at":{"type":["string","null"]},"verified_at":{"type":["string","null"]},"grace_until":{"description":"An active domain whose records disappeared stays up until this time, then fails.","type":["string","null"]},"created_at":{"type":"string"}},"required":["id","hostname","kind","status","is_primary","verification_method","ssl_status","error","apex","required_records","last_checked_at","next_check_at","verified_at","grace_until","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"dom_4h6k8m0p2r4t6v8x","hostname":"play.example.com","kind":"custom","status":"pending","is_primary":false,"verification_method":"cf_saas","ssl_status":"pending_validation","error":"Waiting for the records below (hostname status: pending).","apex":false,"required_records":[{"type":"CNAME","name":"play.example.com","value":"customers.enzonic.dev","purpose":"Sends visitors to your site."},{"type":"TXT","name":"_enzonic-verify.play.example.com","value":"enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d","purpose":"Proves you own the domain."}],"last_checked_at":"2026-10-19T10:01:00.000Z","next_check_at":"2026-10-19T10:03:00.000Z","verified_at":null,"grace_until":null,"created_at":"2026-10-19T10:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"domains:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string","maxLength":300,"description":"Domain name. A pasted URL is accepted: the scheme, path and trailing dot are dropped."}},"required":["hostname"]},"example":{"hostname":"play.example.com"}}}}}},"/domains/{domain_id}":{"get":{"operationId":"domains.get","summary":"Get a domain","description":"Verification status, the last error and the DNS records to create. Reading does not run a check.\n\nScope: `domains:read`.\n\nKeys: reseller.","tags":["Domains"],"security":[{"bearer":["domains:read"]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","pattern":"^dom_[0-9a-z]{16}$","description":"Domain id (dom_...)"},"description":"Domain id (dom_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"kind":{"type":"string","enum":["default","custom"],"description":"`default` is the free <slug>.enzonic.dev address; it cannot change."},"status":{"type":"string","enum":["pending","active","failed","removed"]},"is_primary":{"type":"boolean","description":"The address customers are sent to."},"verification_method":{"anyOf":[{"type":"string","enum":["cf_saas","txt"]},{"type":"null"}]},"ssl_status":{"type":["string","null"]},"error":{"description":"What the last check found missing, if anything.","type":["string","null"]},"apex":{"type":"boolean","description":"A zone apex (example.com): most DNS hosts need CNAME flattening or an ALIAS record."},"required_records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","HTTP"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string"}},"required":["type","name","value","purpose"],"additionalProperties":false},"description":"DNS records to create at your DNS provider (custom domains)."},"last_checked_at":{"type":["string","null"]},"next_check_at":{"type":["string","null"]},"verified_at":{"type":["string","null"]},"grace_until":{"description":"An active domain whose records disappeared stays up until this time, then fails.","type":["string","null"]},"created_at":{"type":"string"}},"required":["id","hostname","kind","status","is_primary","verification_method","ssl_status","error","apex","required_records","last_checked_at","next_check_at","verified_at","grace_until","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"dom_4h6k8m0p2r4t6v8x","hostname":"play.example.com","kind":"custom","status":"pending","is_primary":false,"verification_method":"cf_saas","ssl_status":"pending_validation","error":"Waiting for the records below (hostname status: pending).","apex":false,"required_records":[{"type":"CNAME","name":"play.example.com","value":"customers.enzonic.dev","purpose":"Sends visitors to your site."},{"type":"TXT","name":"_enzonic-verify.play.example.com","value":"enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d","purpose":"Proves you own the domain."}],"last_checked_at":"2026-10-19T10:01:00.000Z","next_check_at":"2026-10-19T10:03:00.000Z","verified_at":null,"grace_until":null,"created_at":"2026-10-19T10:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"domains:read"},"delete":{"operationId":"domains.delete","summary":"Remove a custom domain","description":"Disconnects the domain right away: visitors on it no longer reach your store and, if it was primary, the default address becomes primary. The default address cannot be removed.\n\nScope: `domains:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["Domains"],"security":[{"bearer":["domains:write"]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","pattern":"^dom_[0-9a-z]{16}$","description":"Domain id (dom_...)"},"description":"Domain id (dom_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"removed":{"type":"boolean","const":true}},"required":["id","hostname","removed"],"additionalProperties":false}}},"example":{"data":{"id":"dom_4h6k8m0p2r4t6v8x","hostname":"play.example.com","removed":true}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"domains:write","x-destructive":true}},"/domains/{domain_id}/check":{"post":{"operationId":"domains.check","summary":"Check a domain now","description":"Looks up the DNS records (and the certificate) right away and returns the new status, like \"Check now\" in the admin. A failed domain starts a fresh 7-day verification window.\n\nScope: `domains:write`.\n\nKeys: reseller.","tags":["Domains"],"security":[{"bearer":["domains:write"]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","pattern":"^dom_[0-9a-z]{16}$","description":"Domain id (dom_...)"},"description":"Domain id (dom_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"kind":{"type":"string","enum":["default","custom"],"description":"`default` is the free <slug>.enzonic.dev address; it cannot change."},"status":{"type":"string","enum":["pending","active","failed","removed"]},"is_primary":{"type":"boolean","description":"The address customers are sent to."},"verification_method":{"anyOf":[{"type":"string","enum":["cf_saas","txt"]},{"type":"null"}]},"ssl_status":{"type":["string","null"]},"error":{"description":"What the last check found missing, if anything.","type":["string","null"]},"apex":{"type":"boolean","description":"A zone apex (example.com): most DNS hosts need CNAME flattening or an ALIAS record."},"required_records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","HTTP"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string"}},"required":["type","name","value","purpose"],"additionalProperties":false},"description":"DNS records to create at your DNS provider (custom domains)."},"last_checked_at":{"type":["string","null"]},"next_check_at":{"type":["string","null"]},"verified_at":{"type":["string","null"]},"grace_until":{"description":"An active domain whose records disappeared stays up until this time, then fails.","type":["string","null"]},"created_at":{"type":"string"}},"required":["id","hostname","kind","status","is_primary","verification_method","ssl_status","error","apex","required_records","last_checked_at","next_check_at","verified_at","grace_until","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"dom_4h6k8m0p2r4t6v8x","hostname":"play.example.com","kind":"custom","status":"active","is_primary":false,"verification_method":"cf_saas","ssl_status":"active","error":null,"apex":false,"required_records":[{"type":"CNAME","name":"play.example.com","value":"customers.enzonic.dev","purpose":"Sends visitors to your site."},{"type":"TXT","name":"_enzonic-verify.play.example.com","value":"enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d","purpose":"Proves you own the domain."}],"last_checked_at":"2026-10-19T10:01:00.000Z","next_check_at":"2026-10-19T10:03:00.000Z","verified_at":"2026-10-19T10:05:00.000Z","grace_until":null,"created_at":"2026-10-19T10:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"domains:write"}},"/domains/{domain_id}/primary":{"post":{"operationId":"domains.primary","summary":"Make a domain the primary address","description":"The primary domain is the main address of your store: links the platform builds for your store point to it. Only a verified, active domain can be primary; the default address can always be made primary again.\n\nScope: `domains:write`.\n\nKeys: reseller.","tags":["Domains"],"security":[{"bearer":["domains:write"]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","pattern":"^dom_[0-9a-z]{16}$","description":"Domain id (dom_...)"},"description":"Domain id (dom_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"kind":{"type":"string","enum":["default","custom"],"description":"`default` is the free <slug>.enzonic.dev address; it cannot change."},"status":{"type":"string","enum":["pending","active","failed","removed"]},"is_primary":{"type":"boolean","description":"The address customers are sent to."},"verification_method":{"anyOf":[{"type":"string","enum":["cf_saas","txt"]},{"type":"null"}]},"ssl_status":{"type":["string","null"]},"error":{"description":"What the last check found missing, if anything.","type":["string","null"]},"apex":{"type":"boolean","description":"A zone apex (example.com): most DNS hosts need CNAME flattening or an ALIAS record."},"required_records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","HTTP"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string"}},"required":["type","name","value","purpose"],"additionalProperties":false},"description":"DNS records to create at your DNS provider (custom domains)."},"last_checked_at":{"type":["string","null"]},"next_check_at":{"type":["string","null"]},"verified_at":{"type":["string","null"]},"grace_until":{"description":"An active domain whose records disappeared stays up until this time, then fails.","type":["string","null"]},"created_at":{"type":"string"}},"required":["id","hostname","kind","status","is_primary","verification_method","ssl_status","error","apex","required_records","last_checked_at","next_check_at","verified_at","grace_until","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"dom_4h6k8m0p2r4t6v8x","hostname":"play.example.com","kind":"custom","status":"active","is_primary":true,"verification_method":"cf_saas","ssl_status":"pending_validation","error":null,"apex":false,"required_records":[{"type":"CNAME","name":"play.example.com","value":"customers.enzonic.dev","purpose":"Sends visitors to your site."},{"type":"TXT","name":"_enzonic-verify.play.example.com","value":"enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d","purpose":"Proves you own the domain."}],"last_checked_at":"2026-10-19T10:01:00.000Z","next_check_at":"2026-10-19T10:03:00.000Z","verified_at":null,"grace_until":null,"created_at":"2026-10-19T10:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"domains:write"}},"/nodes":{"get":{"operationId":"nodes.list","summary":"List your nodes","description":"Nodes you run yourself (bring your own), newest first, with health and usage. The shared Enzonic pool is not listed.\n\nScope: `nodes:read`.\n\nKeys: reseller.","tags":["Nodes"],"security":[{"bearer":["nodes:read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string"},"fqdn":{"type":"string"},"public_ip":{"type":["string","null"]},"scheme":{"type":"string","enum":["http","https"]},"daemon_port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sftp_port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory_overalloc_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_overalloc_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"health":{"type":"object","properties":{"status":{"type":"string","enum":["pending","online","offline","maintenance"],"description":"pending until Wings answers once"},"maintenance":{"type":"boolean","description":"No new servers are placed on the node while true."},"wings_version":{"type":["string","null"]},"last_seen_at":{"description":"Last successful health check","type":["string","null"]},"last_checked_at":{"type":["string","null"]},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_error":{"type":["string","null"]}},"required":["status","maintenance","wings_version","last_seen_at","last_checked_at","consecutive_failures","last_error"],"additionalProperties":false},"usage":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"RAM allocated to servers on this node"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations_total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations_free":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ram_mb","disk_mb","servers","allocations_total","allocations_free"],"additionalProperties":false},"created_at":{"type":"string"}},"required":["id","name","location","fqdn","public_ip","scheme","daemon_port","sftp_port","memory_mb","memory_overalloc_pct","disk_mb","disk_overalloc_pct","health","usage","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}},"example":{"data":[{"id":"nod_5j7l9n1q3s5u7w9y","name":"Node 1","location":"eu-central","fqdn":"node1.example.com","public_ip":"203.0.113.10","scheme":"https","daemon_port":8080,"sftp_port":2022,"memory_mb":32768,"memory_overalloc_pct":0,"disk_mb":409600,"disk_overalloc_pct":0,"health":{"status":"online","maintenance":false,"wings_version":"1.11.13","last_seen_at":"2026-10-19T10:00:00.000Z","last_checked_at":"2026-10-19T10:00:00.000Z","consecutive_failures":0,"last_error":null},"usage":{"ram_mb":12288,"disk_mb":61440,"servers":3,"allocations_total":50,"allocations_free":47},"created_at":"2026-10-01T09:00:00.000Z"}],"next_cursor":null}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"nodes:read"},"post":{"operationId":"nodes.create","summary":"Add your own node","description":"Registers a server you run yourself, with the same rules as the admin. It stays `pending` until Wings is installed and answers: get the install command from the install-command endpoint, and add port allocations in the admin. Send an Idempotency-Key to retry safely.\n\nScope: `nodes:write`.\n\nKeys: reseller.","tags":["Nodes"],"security":[{"bearer":["nodes:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string"},"fqdn":{"type":"string"},"public_ip":{"type":["string","null"]},"scheme":{"type":"string","enum":["http","https"]},"daemon_port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sftp_port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory_overalloc_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_overalloc_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"health":{"type":"object","properties":{"status":{"type":"string","enum":["pending","online","offline","maintenance"],"description":"pending until Wings answers once"},"maintenance":{"type":"boolean","description":"No new servers are placed on the node while true."},"wings_version":{"type":["string","null"]},"last_seen_at":{"description":"Last successful health check","type":["string","null"]},"last_checked_at":{"type":["string","null"]},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_error":{"type":["string","null"]}},"required":["status","maintenance","wings_version","last_seen_at","last_checked_at","consecutive_failures","last_error"],"additionalProperties":false},"usage":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"RAM allocated to servers on this node"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations_total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations_free":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ram_mb","disk_mb","servers","allocations_total","allocations_free"],"additionalProperties":false},"created_at":{"type":"string"}},"required":["id","name","location","fqdn","public_ip","scheme","daemon_port","sftp_port","memory_mb","memory_overalloc_pct","disk_mb","disk_overalloc_pct","health","usage","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"nod_5j7l9n1q3s5u7w9y","name":"Node 1","location":"eu-central","fqdn":"node1.example.com","public_ip":"203.0.113.10","scheme":"https","daemon_port":8080,"sftp_port":2022,"memory_mb":32768,"memory_overalloc_pct":0,"disk_mb":409600,"disk_overalloc_pct":0,"health":{"status":"pending","maintenance":false,"wings_version":null,"last_seen_at":null,"last_checked_at":null,"consecutive_failures":0,"last_error":null},"usage":{"ram_mb":0,"disk_mb":0,"servers":0,"allocations_total":0,"allocations_free":0},"created_at":"2026-10-19T10:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"nodes:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"description":"Up to 64 characters."},"location":{"description":"Short code such as eu-central (letters, digits, hyphens).","type":"string","maxLength":200},"fqdn":{"type":"string","maxLength":300,"description":"Hostname (node1.example.com) or IP address Wings is reachable on."},"public_ip":{"type":"string","maxLength":100,"description":"Public IPv4 address players connect to."},"scheme":{"description":"Default https.","type":"string","enum":["http","https"]},"daemon_port":{"description":"Wings API port, default 8080.","type":"number"},"sftp_port":{"description":"SFTP port, default 2022.","type":"number"},"memory_mb":{"type":"number","description":"Memory for servers, 512 or more."},"memory_overalloc_pct":{"description":"0 to 500, default 0.","type":"number"},"disk_mb":{"type":"number","description":"Disk for servers, 1024 or more."},"disk_overalloc_pct":{"description":"0 to 500, default 0.","type":"number"}},"required":["name","fqdn","public_ip","memory_mb","disk_mb"]},"example":{"name":"Node 1","location":"eu-central","fqdn":"node1.example.com","public_ip":"203.0.113.10","memory_mb":32768,"disk_mb":409600}}}}}},"/nodes/{node_id}":{"get":{"operationId":"nodes.get","summary":"Get a node","description":"Settings, health and usage of one of your nodes. Daemon tokens are never returned.\n\nScope: `nodes:read`.\n\nKeys: reseller.","tags":["Nodes"],"security":[{"bearer":["nodes:read"]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","pattern":"^nod_[0-9a-z]{16}$","description":"Node id (nod_...)"},"description":"Node id (nod_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"location":{"type":"string"},"fqdn":{"type":"string"},"public_ip":{"type":["string","null"]},"scheme":{"type":"string","enum":["http","https"]},"daemon_port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sftp_port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"memory_overalloc_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"disk_overalloc_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"health":{"type":"object","properties":{"status":{"type":"string","enum":["pending","online","offline","maintenance"],"description":"pending until Wings answers once"},"maintenance":{"type":"boolean","description":"No new servers are placed on the node while true."},"wings_version":{"type":["string","null"]},"last_seen_at":{"description":"Last successful health check","type":["string","null"]},"last_checked_at":{"type":["string","null"]},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_error":{"type":["string","null"]}},"required":["status","maintenance","wings_version","last_seen_at","last_checked_at","consecutive_failures","last_error"],"additionalProperties":false},"usage":{"type":"object","properties":{"ram_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"RAM allocated to servers on this node"},"disk_mb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations_total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allocations_free":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ram_mb","disk_mb","servers","allocations_total","allocations_free"],"additionalProperties":false},"created_at":{"type":"string"}},"required":["id","name","location","fqdn","public_ip","scheme","daemon_port","sftp_port","memory_mb","memory_overalloc_pct","disk_mb","disk_overalloc_pct","health","usage","created_at"],"additionalProperties":false}}},"example":{"data":{"id":"nod_5j7l9n1q3s5u7w9y","name":"Node 1","location":"eu-central","fqdn":"node1.example.com","public_ip":"203.0.113.10","scheme":"https","daemon_port":8080,"sftp_port":2022,"memory_mb":32768,"memory_overalloc_pct":0,"disk_mb":409600,"disk_overalloc_pct":0,"health":{"status":"online","maintenance":false,"wings_version":"1.11.13","last_seen_at":"2026-10-19T10:00:00.000Z","last_checked_at":"2026-10-19T10:00:00.000Z","consecutive_failures":0,"last_error":null},"usage":{"ram_mb":12288,"disk_mb":61440,"servers":3,"allocations_total":50,"allocations_free":47},"created_at":"2026-10-01T09:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"nodes:read"}},"/nodes/{node_id}/status":{"get":{"operationId":"nodes.status","summary":"Get the health of a node","description":"The last recorded health (the platform checks every node regularly). To contact the node now, use the test endpoint.\n\nScope: `nodes:read`.\n\nKeys: reseller.","tags":["Nodes"],"security":[{"bearer":["nodes:read"]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","pattern":"^nod_[0-9a-z]{16}$","description":"Node id (nod_...)"},"description":"Node id (nod_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"status":{"type":"string","enum":["pending","online","offline","maintenance"],"description":"pending until Wings answers once"},"maintenance":{"type":"boolean","description":"No new servers are placed on the node while true."},"wings_version":{"type":["string","null"]},"last_seen_at":{"description":"Last successful health check","type":["string","null"]},"last_checked_at":{"type":["string","null"]},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_error":{"type":["string","null"]}},"required":["status","maintenance","wings_version","last_seen_at","last_checked_at","consecutive_failures","last_error"],"additionalProperties":false}}},"example":{"data":{"status":"online","maintenance":false,"wings_version":"1.11.13","last_seen_at":"2026-10-19T10:00:00.000Z","last_checked_at":"2026-10-19T10:00:00.000Z","consecutive_failures":0,"last_error":null}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"nodes:read"}},"/nodes/{node_id}/test":{"post":{"operationId":"nodes.test","summary":"Test the connection to a node","description":"Contacts Wings on the node now (8 second timeout), records the result like the regular health check and returns it.\n\nScope: `nodes:write`.\n\nKeys: reseller.","tags":["Nodes"],"security":[{"bearer":["nodes:write"]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","pattern":"^nod_[0-9a-z]{16}$","description":"Node id (nod_...)"},"description":"Node id (nod_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"ok":{"type":"boolean"},"version":{"description":"Wings version when the node answered","type":["string","null"]},"error":{"type":["string","null"]},"health":{"type":"object","properties":{"status":{"type":"string","enum":["pending","online","offline","maintenance"],"description":"pending until Wings answers once"},"maintenance":{"type":"boolean","description":"No new servers are placed on the node while true."},"wings_version":{"type":["string","null"]},"last_seen_at":{"description":"Last successful health check","type":["string","null"]},"last_checked_at":{"type":["string","null"]},"consecutive_failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_error":{"type":["string","null"]}},"required":["status","maintenance","wings_version","last_seen_at","last_checked_at","consecutive_failures","last_error"],"additionalProperties":false}},"required":["ok","version","error","health"],"additionalProperties":false}}},"example":{"data":{"ok":true,"version":"1.11.13","error":null,"health":{"status":"online","maintenance":false,"wings_version":"1.11.13","last_seen_at":"2026-10-19T10:00:00.000Z","last_checked_at":"2026-10-19T10:00:00.000Z","consecutive_failures":0,"last_error":null}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"nodes:write"}},"/nodes/{node_id}/install-command":{"post":{"operationId":"nodes.install_command.create","summary":"Create a one-time install command for a node","description":"Returns the one-line command that installs and configures Wings on the node, like \"Generate install command\" in the admin. It contains a new single-use token valid for one hour that replaces any earlier one. SECRET: it is shown only in this response; keep it private and create a new one if it leaks or expires.\n\nScope: `nodes:write`.\n\nKeys: reseller.","tags":["Nodes"],"security":[{"bearer":["nodes:write"]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","pattern":"^nod_[0-9a-z]{16}$","description":"Node id (nod_...)"},"description":"Node id (nod_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"command":{"type":"string","description":"Run as root on the node. Contains the single-use install token."},"expires_at":{"type":"string"},"shown_once":{"type":"boolean","const":true,"description":"This command is never returned again."}},"required":["command","expires_at","shown_once"],"additionalProperties":false}}},"example":{"data":{"command":"curl -fsSL https://reseller.enzonic.com/install/wings.sh | sudo bash -s -- --panel https://reseller.enzonic.com --node nod_5j7l9n1q3s5u7w9y --token ezd_EXAMPLEexampleEXAMPLEexampleEXAMPLEexample0000","expires_at":"2026-10-19T11:00:00.000Z","shown_once":true}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"nodes:write"}},"/site/pages":{"get":{"operationId":"site.pages.list","summary":"List storefront pages","description":"Every page of your storefront in navigation order, with draft or published status. Not paginated: a store has at most 30 pages.\n\nScope: `site:read`.\n\nKeys: reseller.","tags":["Site"],"security":[{"bearer":["site:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string","description":"Empty for the home page."},"kind":{"type":"string","enum":["home","plans","about","custom"]},"status":{"type":"string","enum":["draft","published"],"description":"`draft` pages are not on the live site."},"nav_visible":{"type":"boolean","description":"Shown in the storefront navigation."},"seo_title":{"type":"string"},"seo_description":{"type":"string"},"path":{"type":"string","description":"Path on the storefront, e.g. /p/about"},"url":{"type":"string","description":"Full address on your primary domain"},"has_unpublished_changes":{"type":"boolean","description":"The draft differs from what is live."},"updated_at":{"type":"string"},"published_at":{"type":["string","null"]}},"required":["id","title","slug","kind","status","nav_visible","seo_title","seo_description","path","url","has_unpublished_changes","updated_at","published_at"],"additionalProperties":false}}}},"example":{"data":[{"id":"pg_6k8m0p2r4t6v8x0z","title":"About","slug":"about","kind":"about","status":"published","nav_visible":true,"seo_title":"About Aurora Hosting","seo_description":"Who we are and how we run your servers.","path":"/about","url":"https://aurora.enzonic.dev/about","has_unpublished_changes":true,"updated_at":"2026-10-19T09:40:00.000Z","published_at":"2026-10-12T16:00:00.000Z"}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"site:read"}},"/site/pages/{page_id}":{"get":{"operationId":"site.pages.get","summary":"Get a page with its draft and published content","description":"Returns the page settings, the draft document, the live (published) document and recent revisions.\n\nScope: `site:read`.\n\nKeys: reseller.","tags":["Site"],"security":[{"bearer":["site:read"]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","pattern":"^pg_[0-9a-z]{16}$","description":"Page id (pg_...)"},"description":"Page id (pg_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"page":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string","description":"Empty for the home page."},"kind":{"type":"string","enum":["home","plans","about","custom"]},"status":{"type":"string","enum":["draft","published"],"description":"`draft` pages are not on the live site."},"nav_visible":{"type":"boolean","description":"Shown in the storefront navigation."},"seo_title":{"type":"string"},"seo_description":{"type":"string"},"path":{"type":"string","description":"Path on the storefront, e.g. /p/about"},"url":{"type":"string","description":"Full address on your primary domain"},"has_unpublished_changes":{"type":"boolean","description":"The draft differs from what is live."},"updated_at":{"type":"string"},"published_at":{"type":["string","null"]}},"required":["id","title","slug","kind","status","nav_visible","seo_title","seo_description","path","url","has_unpublished_changes","updated_at","published_at"],"additionalProperties":false},"draft":{"type":"object","properties":{"v":{"type":"number","const":1},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","description":"hero, features, plans, image, gallery, faq, cta, richtext, ..."},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"style":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","type","data"],"additionalProperties":false},"description":"Blocks in page order (at most 40)."}},"required":["v","blocks"],"additionalProperties":false,"description":"The draft (what the editor shows)."},"published":{"anyOf":[{"type":"object","properties":{"v":{"type":"number","const":1},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","description":"hero, features, plans, image, gallery, faq, cta, richtext, ..."},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"style":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","type","data"],"additionalProperties":false},"description":"Blocks in page order (at most 40)."}},"required":["v","blocks"],"additionalProperties":false,"description":"Page document, the same JSON the visual editor saves."},{"type":"null"}],"description":"What is live now; null when the page is not published."},"revisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"created_at":{"type":"string"}},"required":["id","title","created_at"],"additionalProperties":false},"description":"Published versions, newest first (the last 10)."}},"required":["page","draft","published","revisions"],"additionalProperties":false}}},"example":{"data":{"page":{"id":"pg_6k8m0p2r4t6v8x0z","title":"About","slug":"about","kind":"about","status":"published","nav_visible":true,"seo_title":"About Aurora Hosting","seo_description":"Who we are and how we run your servers.","path":"/about","url":"https://aurora.enzonic.dev/about","has_unpublished_changes":true,"updated_at":"2026-10-19T09:40:00.000Z","published_at":"2026-10-12T16:00:00.000Z"},"draft":{"v":1,"blocks":[{"id":"b7k2m9q4x1","type":"richtext","data":{"html":"<p>We host Minecraft servers for our community.</p>"},"style":{"tone":"default","pad":"md","width":"normal","align":"left","anchor":""}}]},"published":{"v":1,"blocks":[{"id":"b7k2m9q4x1","type":"richtext","data":{"html":"<p>We host Minecraft servers for our community.</p>"},"style":{"tone":"default","pad":"md","width":"normal","align":"left","anchor":""}}]},"revisions":[{"id":"rev_1b3d5f7h9k1m3p5r","title":"About","created_at":"2026-10-12T16:00:00.000Z"}]}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"site:read"},"patch":{"operationId":"site.pages.update","summary":"Update a page's draft","description":"Saves the draft only (the live site does not change until you publish). Send only the fields to change. `doc` is validated exactly like the visual editor (block types, lengths, safe links and images); errors list each problem in `details.issues`.\n\nScope: `site:write`.\n\nKeys: reseller.","tags":["Site"],"security":[{"bearer":["site:write"]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","pattern":"^pg_[0-9a-z]{16}$","description":"Page id (pg_...)"},"description":"Page id (pg_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string","description":"Empty for the home page."},"kind":{"type":"string","enum":["home","plans","about","custom"]},"status":{"type":"string","enum":["draft","published"],"description":"`draft` pages are not on the live site."},"nav_visible":{"type":"boolean","description":"Shown in the storefront navigation."},"seo_title":{"type":"string"},"seo_description":{"type":"string"},"path":{"type":"string","description":"Path on the storefront, e.g. /p/about"},"url":{"type":"string","description":"Full address on your primary domain"},"has_unpublished_changes":{"type":"boolean","description":"The draft differs from what is live."},"updated_at":{"type":"string"},"published_at":{"type":["string","null"]}},"required":["id","title","slug","kind","status","nav_visible","seo_title","seo_description","path","url","has_unpublished_changes","updated_at","published_at"],"additionalProperties":false}}},"example":{"data":{"id":"pg_6k8m0p2r4t6v8x0z","title":"About us","slug":"about","kind":"about","status":"published","nav_visible":true,"seo_title":"About Aurora Hosting","seo_description":"Who we are and how we run your servers.","path":"/about","url":"https://aurora.enzonic.dev/about","has_unpublished_changes":true,"updated_at":"2026-10-19T09:40:00.000Z","published_at":"2026-10-12T16:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"site:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"doc":{"description":"Full page document `{ \"v\": 1, \"blocks\": [...] }`; replaces the whole draft."},"title":{"description":"Page title, at most 60 characters.","type":"string"},"slug":{"description":"Custom pages only: 1-48 lowercase letters, numbers and dashes (ignored for other pages).","type":"string"},"nav_visible":{"type":"boolean"},"seo_title":{"description":"At most 70 characters.","type":"string"},"seo_description":{"description":"At most 160 characters.","type":"string"}}},"example":{"title":"About us","doc":{"v":1,"blocks":[{"id":"b7k2m9q4x1","type":"richtext","data":{"html":"<p>We host Minecraft servers for our community.</p>"},"style":{"tone":"default","pad":"md","width":"normal","align":"left","anchor":""}}]}}}}}}},"/site/pages/{page_id}/publish":{"post":{"operationId":"site.pages.publish","summary":"Publish a page to the live storefront","description":"Makes the current draft live on your public storefront right away: every visitor sees it. The draft is validated again first and a revision is recorded (the last 10 are kept), so an earlier version can be restored in the editor.\n\nScope: `site:write`.\n\nKeys: reseller.","tags":["Site"],"security":[{"bearer":["site:write"]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","pattern":"^pg_[0-9a-z]{16}$","description":"Page id (pg_...)"},"description":"Page id (pg_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"page":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string","description":"Empty for the home page."},"kind":{"type":"string","enum":["home","plans","about","custom"]},"status":{"type":"string","enum":["draft","published"],"description":"`draft` pages are not on the live site."},"nav_visible":{"type":"boolean","description":"Shown in the storefront navigation."},"seo_title":{"type":"string"},"seo_description":{"type":"string"},"path":{"type":"string","description":"Path on the storefront, e.g. /p/about"},"url":{"type":"string","description":"Full address on your primary domain"},"has_unpublished_changes":{"type":"boolean","description":"The draft differs from what is live."},"updated_at":{"type":"string"},"published_at":{"type":["string","null"]}},"required":["id","title","slug","kind","status","nav_visible","seo_title","seo_description","path","url","has_unpublished_changes","updated_at","published_at"],"additionalProperties":false},"draft":{"type":"object","properties":{"v":{"type":"number","const":1},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","description":"hero, features, plans, image, gallery, faq, cta, richtext, ..."},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"style":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","type","data"],"additionalProperties":false},"description":"Blocks in page order (at most 40)."}},"required":["v","blocks"],"additionalProperties":false,"description":"The draft (what the editor shows)."},"published":{"anyOf":[{"type":"object","properties":{"v":{"type":"number","const":1},"blocks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","description":"hero, features, plans, image, gallery, faq, cta, richtext, ..."},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"style":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","type","data"],"additionalProperties":false},"description":"Blocks in page order (at most 40)."}},"required":["v","blocks"],"additionalProperties":false,"description":"Page document, the same JSON the visual editor saves."},{"type":"null"}],"description":"What is live now; null when the page is not published."},"revisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"created_at":{"type":"string"}},"required":["id","title","created_at"],"additionalProperties":false},"description":"Published versions, newest first (the last 10)."}},"required":["page","draft","published","revisions"],"additionalProperties":false}}},"example":{"data":{"page":{"id":"pg_6k8m0p2r4t6v8x0z","title":"About","slug":"about","kind":"about","status":"published","nav_visible":true,"seo_title":"About Aurora Hosting","seo_description":"Who we are and how we run your servers.","path":"/about","url":"https://aurora.enzonic.dev/about","has_unpublished_changes":false,"updated_at":"2026-10-19T09:40:00.000Z","published_at":"2026-10-19T10:00:00.000Z"},"draft":{"v":1,"blocks":[{"id":"b7k2m9q4x1","type":"richtext","data":{"html":"<p>We host Minecraft servers for our community.</p>"},"style":{"tone":"default","pad":"md","width":"normal","align":"left","anchor":""}}]},"published":{"v":1,"blocks":[{"id":"b7k2m9q4x1","type":"richtext","data":{"html":"<p>We host Minecraft servers for our community.</p>"},"style":{"tone":"default","pad":"md","width":"normal","align":"left","anchor":""}}]},"revisions":[{"id":"rev_2c4e6g8j0l2n4q6s","title":"About","created_at":"2026-10-19T10:00:00.000Z"}]}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"site:write"}},"/software":{"get":{"operationId":"software.list","summary":"List the software catalogue with your store switches","description":"Every server software the platform offers (Minecraft loaders, Discord bot runtimes, other games) and whether your store sells it. Filter with `kind` or `active`.\n\nScope: `software:read`.\n\nKeys: reseller.","tags":["Software"],"security":[{"bearer":["software:read"]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["minecraft","discord_bot","game","voice","runtime"]}},{"name":"active","in":"query","required":false,"schema":{"description":"true = only what your store sells","type":"boolean"},"description":"true = only what your store sells"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string","enum":["minecraft","discord_bot","game","voice","runtime"],"description":"minecraft, discord_bot, game, voice or runtime"},"name":{"type":"string","description":"Platform name"},"display_name":{"description":"Your own name for it on your store, if set","type":["string","null"]},"description":{"description":"Your own description, if set","type":["string","null"]},"loader":{"type":"string"},"active":{"type":"boolean","description":"Offered on your store"},"default":{"type":"boolean","description":"True while you have not changed the switch (Minecraft on, everything else off)"},"on_enzonic_nodes":{"type":"boolean","description":"Can run on Enzonic nodes (otherwise only on your own nodes)"},"enzonic_regions":{"type":"array","items":{"type":"string"},"description":"Regions where Enzonic nodes run it, e.g. [\"Europe\"] (empty while unknown or own nodes only)"},"sort":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","kind","name","display_name","description","loader","active","default","on_enzonic_nodes","enzonic_regions","sort"],"additionalProperties":false}}}},"example":{"data":[{"id":"egg_paper","slug":"paper","kind":"minecraft","name":"Paper","display_name":null,"description":null,"loader":"paper","active":true,"default":true,"on_enzonic_nodes":true,"enzonic_regions":["Europe","North America","Asia"],"sort":10}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"software:read"}},"/software/{software_id}":{"get":{"operationId":"software.get","summary":"Get one software entry","description":"Scope: `software:read`.\n\nKeys: reseller.","tags":["Software"],"security":[{"bearer":["software:read"]}],"parameters":[{"name":"software_id","in":"path","required":true,"schema":{"type":"string","pattern":"^egg_[0-9a-z_]{1,40}$","description":"Software id (egg_...)"},"description":"Software id (egg_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string","enum":["minecraft","discord_bot","game","voice","runtime"],"description":"minecraft, discord_bot, game, voice or runtime"},"name":{"type":"string","description":"Platform name"},"display_name":{"description":"Your own name for it on your store, if set","type":["string","null"]},"description":{"description":"Your own description, if set","type":["string","null"]},"loader":{"type":"string"},"active":{"type":"boolean","description":"Offered on your store"},"default":{"type":"boolean","description":"True while you have not changed the switch (Minecraft on, everything else off)"},"on_enzonic_nodes":{"type":"boolean","description":"Can run on Enzonic nodes (otherwise only on your own nodes)"},"enzonic_regions":{"type":"array","items":{"type":"string"},"description":"Regions where Enzonic nodes run it, e.g. [\"Europe\"] (empty while unknown or own nodes only)"},"sort":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","kind","name","display_name","description","loader","active","default","on_enzonic_nodes","enzonic_regions","sort"],"additionalProperties":false}}},"example":{"data":{"id":"egg_paper","slug":"paper","kind":"minecraft","name":"Paper","display_name":null,"description":null,"loader":"paper","active":true,"default":true,"on_enzonic_nodes":true,"enzonic_regions":["Europe","North America","Asia"],"sort":10}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"software:read"},"patch":{"operationId":"software.update","summary":"Turn software on or off for your store, or rename it","description":"Same rules as Admin > Games & software. Turning software off hides it from your storefront and refuses new orders and switches to it; existing servers keep running. Send `display_name: \"\"` to go back to the platform name.\n\nScope: `software:write`.\n\nKeys: reseller.","tags":["Software"],"security":[{"bearer":["software:write"]}],"parameters":[{"name":"software_id","in":"path","required":true,"schema":{"type":"string","pattern":"^egg_[0-9a-z_]{1,40}$","description":"Software id (egg_...)"},"description":"Software id (egg_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string","enum":["minecraft","discord_bot","game","voice","runtime"],"description":"minecraft, discord_bot, game, voice or runtime"},"name":{"type":"string","description":"Platform name"},"display_name":{"description":"Your own name for it on your store, if set","type":["string","null"]},"description":{"description":"Your own description, if set","type":["string","null"]},"loader":{"type":"string"},"active":{"type":"boolean","description":"Offered on your store"},"default":{"type":"boolean","description":"True while you have not changed the switch (Minecraft on, everything else off)"},"on_enzonic_nodes":{"type":"boolean","description":"Can run on Enzonic nodes (otherwise only on your own nodes)"},"enzonic_regions":{"type":"array","items":{"type":"string"},"description":"Regions where Enzonic nodes run it, e.g. [\"Europe\"] (empty while unknown or own nodes only)"},"sort":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","kind","name","display_name","description","loader","active","default","on_enzonic_nodes","enzonic_regions","sort"],"additionalProperties":false}}},"example":{"data":{"id":"egg_discord_js","slug":"discord-js","kind":"discord_bot","name":"discord.js","display_name":"Discord bot (Node.js)","description":null,"loader":"nodejs","active":true,"default":false,"on_enzonic_nodes":true,"enzonic_regions":["Europe","North America","Asia"],"sort":10}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"software:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"display_name":{"description":"At most 60 characters; empty clears it","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"description":{"description":"At most 200 characters; empty clears it","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"sort":{"description":"Display order; null = platform order","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}}},"example":{"active":true,"display_name":"Discord bot (Node.js)"}}}}}},"/software/{software_id}/versions":{"get":{"operationId":"software.versions","summary":"List the versions a software can install","description":"Game versions for Minecraft loaders, newest first, with `latest` first. Other kinds return `latest`.\n\nScope: `software:read`.\n\nKeys: reseller.","tags":["Software"],"security":[{"bearer":["software:read"]}],"parameters":[{"name":"software_id","in":"path","required":true,"schema":{"type":"string","pattern":"^egg_[0-9a-z_]{1,40}$","description":"Software id (egg_...)"},"description":"Software id (egg_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"string"}}}},"example":{"data":["latest","1.21.4","1.21.3"]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"software:read"}},"/webhooks/events":{"get":{"operationId":"webhooks.events","summary":"List the events you can subscribe to","description":"Scope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name","description"],"additionalProperties":false}}}},"example":{"data":[{"name":"server.created","description":"A server was created (order, grant or API)."}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write"}},"/webhooks":{"get":{"operationId":"webhooks.list","summary":"List webhook endpoints","description":"Scope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"last_success_at":{"type":["string","null"]},"last_failure_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","url","description","events","active","last_success_at","last_failure_at","created_at","updated_at"],"additionalProperties":false}}}},"example":{"data":[{"id":"whk_6m8p0r2t4v6x8z0b","url":"https://hooks.example.com/enzonic","description":"Discord bot","events":["server.created","order.paid"],"active":true,"last_success_at":null,"last_failure_at":null,"created_at":"2026-10-19T10:00:00.000Z","updated_at":"2026-10-19T10:00:00.000Z"}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write"},"post":{"operationId":"webhooks.create","summary":"Create a webhook endpoint","description":"The URL must be public https (port 443); private, loopback and Enzonic addresses are refused. The response contains the signing `secret` ONCE: store it to verify the Enzonic-Signature header. At most 10 endpoints.\n\nScope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry-safe creation: the same key within 24 h replays the first response."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"last_success_at":{"type":["string","null"]},"last_failure_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"secret":{"type":"string","description":"whsec_... shown once"}},"required":["id","url","description","events","active","last_success_at","last_failure_at","created_at","updated_at","secret"],"additionalProperties":false}}},"example":{"data":{"id":"whk_6m8p0r2t4v6x8z0b","url":"https://hooks.example.com/enzonic","description":"Discord bot","events":["server.created","order.paid"],"active":true,"last_success_at":null,"last_failure_at":null,"created_at":"2026-10-19T10:00:00.000Z","updated_at":"2026-10-19T10:00:00.000Z","secret":"whsec_k4Xb9..."}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"events":{"minItems":1,"maxItems":13,"type":"array","items":{"type":"string","enum":["server.created","server.installed","server.suspended","server.unsuspended","server.deleted","order.paid","subscription.cancelled","invoice.paid","invoice.payment_failed","customer.created","ticket.created","ticket.replied","backup.completed"]}},"description":{"type":"string","maxLength":200},"active":{"type":"boolean"}},"required":["url","events"]},"example":{"url":"https://hooks.example.com/enzonic","events":["server.created","order.paid"],"description":"Discord bot"}}}}}},"/webhooks/{webhook_id}":{"get":{"operationId":"webhooks.get","summary":"Get a webhook endpoint","description":"Scope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whk_[0-9a-z]{16}$","description":"Webhook endpoint id (whk_...)"},"description":"Webhook endpoint id (whk_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"last_success_at":{"type":["string","null"]},"last_failure_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","url","description","events","active","last_success_at","last_failure_at","created_at","updated_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write"},"patch":{"operationId":"webhooks.update","summary":"Update a webhook endpoint","description":"Scope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whk_[0-9a-z]{16}$","description":"Webhook endpoint id (whk_...)"},"description":"Webhook endpoint id (whk_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"last_success_at":{"type":["string","null"]},"last_failure_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","url","description","events","active","last_success_at","last_failure_at","created_at","updated_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"events":{"minItems":1,"maxItems":13,"type":"array","items":{"type":"string","enum":["server.created","server.installed","server.suspended","server.unsuspended","server.deleted","order.paid","subscription.cancelled","invoice.paid","invoice.payment_failed","customer.created","ticket.created","ticket.replied","backup.completed"]}},"description":{"type":"string","maxLength":200},"active":{"type":"boolean"}}}}}}},"delete":{"operationId":"webhooks.delete","summary":"Delete a webhook endpoint","description":"Stops all deliveries to it and deletes its delivery history.\n\nScope: `webhooks:write`.\n\nKeys: reseller.\n\nDestructive: this cannot be undone.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whk_[0-9a-z]{16}$","description":"Webhook endpoint id (whk_...)"},"description":"Webhook endpoint id (whk_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write","x-destructive":true}},"/webhooks/{webhook_id}/rotate-secret":{"post":{"operationId":"webhooks.rotate_secret","summary":"Replace the signing secret","description":"The old secret stops working immediately. The new one is returned once.\n\nScope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whk_[0-9a-z]{16}$","description":"Webhook endpoint id (whk_...)"},"description":"Webhook endpoint id (whk_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"last_success_at":{"type":["string","null"]},"last_failure_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"secret":{"type":"string"}},"required":["id","url","description","events","active","last_success_at","last_failure_at","created_at","updated_at","secret"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write"}},"/webhooks/{webhook_id}/test":{"post":{"operationId":"webhooks.test","summary":"Send a test event now","description":"Sends a signed `ping` event right away and returns the delivery with the response it got.\n\nScope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whk_[0-9a-z]{16}$","description":"Webhook endpoint id (whk_...)"},"description":"Webhook endpoint id (whk_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"endpoint_id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","enum":["pending","delivered","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next_attempt_at":{"type":["string","null"]},"last_attempt_at":{"type":["string","null"]},"response_status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"response_body":{"description":"First 1 KB of the last response","type":["string","null"]},"error":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","endpoint_id","event","status","attempts","next_attempt_at","last_attempt_at","response_status","response_body","error","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write"}},"/webhooks/{webhook_id}/deliveries":{"get":{"operationId":"webhooks.deliveries.list","summary":"List recent deliveries of an endpoint","description":"Newest first; deliveries are kept 30 days.\n\nScope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whk_[0-9a-z]{16}$","description":"Webhook endpoint id (whk_...)"},"description":"Webhook endpoint id (whk_...)"},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"Page size, 1 to 100 (default 50).","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100 (default 50)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":200},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"endpoint_id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","enum":["pending","delivered","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next_attempt_at":{"type":["string","null"]},"last_attempt_at":{"type":["string","null"]},"response_status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"response_body":{"description":"First 1 KB of the last response","type":["string","null"]},"error":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","endpoint_id","event","status","attempts","next_attempt_at","last_attempt_at","response_status","response_body","error","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write"}},"/webhooks/{webhook_id}/deliveries/{delivery_id}/retry":{"post":{"operationId":"webhooks.deliveries.retry","summary":"Retry a delivery now","description":"Scope: `webhooks:write`.\n\nKeys: reseller.","tags":["Webhooks"],"security":[{"bearer":["webhooks:write"]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whk_[0-9a-z]{16}$","description":"Webhook endpoint id (whk_...)"},"description":"Webhook endpoint id (whk_...)"},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","pattern":"^whd_[0-9a-z]{16}$","description":"Delivery id (whd_...)"},"description":"Delivery id (whd_...)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"endpoint_id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","enum":["pending","delivered","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next_attempt_at":{"type":["string","null"]},"last_attempt_at":{"type":["string","null"]},"response_status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"response_body":{"description":"First 1 KB of the last response","type":["string","null"]},"error":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","endpoint_id","event","status","attempts","next_attempt_at","last_attempt_at","response_status","response_body","error","created_at"],"additionalProperties":false}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"x-audiences":["reseller"],"x-scope":"webhooks:write"}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"enz_live_<key id>_<secret>","description":"Scopes: `servers:read` (Read servers), `servers:write` (Manage servers), `servers:power` (Power), `servers:console` (Console), `servers:files` (Files), `servers:backups` (Backups), `servers:users` (Server users), `customers:read` (Read customers), `customers:write` (Manage customers), `plans:read` (Read plans), `plans:write` (Manage plans), `orders:read` (Read orders), `orders:write` (Manage orders), `invoices:read` (Read invoices), `billing:read` (Read billing), `domains:read` (Read domains), `domains:write` (Manage domains), `nodes:read` (Read nodes), `nodes:write` (Manage nodes), `site:read` (Read site), `site:write` (Edit site), `software:read` (Read software), `software:write` (Manage software), `credits:read` (Read credits), `flex:read` (Read Flex), `flex:write` (Manage Flex), `vps:read` (Read VPS), `vps:write` (Manage VPS), `vps:power` (VPS power), `vps:console` (VPS console), `webhooks:write` (Webhooks)."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthenticated","invalid_key","key_revoked","key_expired","tenant_mismatch","key_owner_inactive","ip_not_allowed","origin_not_allowed","insufficient_scope","team_2fa_required","forbidden","not_found","route_not_found","method_not_allowed","conflict","idempotency_in_progress","idempotency_key_reused","unsupported_media_type","invalid_json","validation_failed","rate_limited","node_error","site_unavailable","internal"],"description":"Stable error code."},"message":{"type":"string","description":"Human-readable explanation (English, may change)."},"details":{"type":"object","additionalProperties":true}}}}}},"responses":{"Error":{"description":"Error. See /docs#errors for the codes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}