Add a volume
Persistent storage at a path in the container. Its data lives on the server the service is placed on at its next deploy; a service with a volume runs as one instance.
bearerAuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
serviceId*stringThe service's id.
Idempotency-Key?stringAny unique string up to 255 characters. Sending the same request again with it returns the first answer instead of creating twice.
length <= 255application/json- body
mountPath*stringAn absolute path in the container, such as /data.
length <= 255sizeGb?|nullAdd a volume
application/json- response
id*stringuuidmountPath*stringsizeGb*integer|nullserverId*|The server its data lives on, set at the first deploy.
curl -X POST "https://openpanel.sh/api/v1/services/$SERVICE_ID/volumes" \ -H "Authorization: Bearer $OPENPANEL_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "mountPath": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "mountPath": "string", "sizeGb": 0, "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41"}Delete a service DELETE
Deletes the service with its volumes, variables, deployments and domains; its servers stop it. This loses data or replaces what runs; MCP asks for confirmation first.
Remove a volume DELETE
The next deployment leaves the volume out and its data goes with it. This loses data or replaces what runs; MCP asks for confirmation first.