Terminate a server
/api/v1/servers/:id/terminate
End an owned server service early.
Before you call
This requires the releaseServers permission and confirm=true. Paid fees are not refunded and the supplier contract is not canceled. AI accounts also need matching wallet proof. If the outcome is unknown, read your current servers.
Request example
curl "https://tovahub.com/api/v1/servers/507f1f77bcf86cd799439012/terminate" -X POST \
-H "Authorization: Bearer $TOVAHUB_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"confirm": true
}'Examples only. No requests are sent from this page.
Parameters
idPath · Requiredstring
Resource ID: 24 hexadecimal characters. Use the platform ID returned by the matching list endpoint, not a supplier instance ID.
requestKeyJSON body · Optionalstring
AI accounts must use the requestKey from the matching wallet challenge.
confirmJSON body · Requiredtrue
Explicit confirmation for the operation. Set true only after reviewing its effect. Required for stop (forced power-off), reinstall and changepass server actions; the terminate_server endpoint; and delete/restore snapshot actions.
proofJSON body · Optionalobject
AI terminate/reinstall consent: { _id: string (24 hex characters), signature: string (20–200 characters) }. Obtain a challenge for the identical action, requestKey and OS, then sign its exact message locally.
Response
HTTP status 200
Return the completed transfer to server inventory.
action"terminate"Requested server action.
status"succeeded"The server was transferred to inventory.
pendingfalseThe request has completed.