<aside> 📎 Endpoints

</aside>

Get server databases

GET https://your-panel.com/api/client/servers/<UUID>/databases

Available Include Parameters

?include=host - displays host of the databases

Example Request

curl "<https://your-panel.com/api/client/servers/><UUID>/databases" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/vnd.wisp.v1+json" \\
  -H "Authorization: Bearer APITOKEN" \\
  -X GET

Example Response


Create a server database [WIP]

POST https://your-panel.com/api/client/servers/<UUID>/databases

Required parameters

host name connections_from

Example Request

curl "<https://your-panel.com/api/client/servers/><UUID>/databases" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/vnd.wisp.v1+json" \\
  -H "Authorization: Bearer APITOKEN" \\
  -X POST \\
  -d '
	   {
	       "host": "",
         "name": "",
         "connections_from": ""
	   }'

Example Response


Delete a server database

DELETE https://your-panel.com/api/client/servers/<UUID>/databases/<ID>

Example Request

curl "<https://your-panel.com/api/client/servers/><UUID>/databases/<ID>" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/vnd.wisp.v1+json" \\
  -H "Authorization: Bearer APITOKEN" \\
  -X DELETE

Example Response


Rotate server database password

POST https://your-panel.com/api/client/servers/<UUID>/databases/<ID>/rotate-password

Example Request

curl "<https://your-panel.com/api/client/servers/><UUID>/databases/<ID>/rotate-password" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/vnd.wisp.v1+json" \\
  -H "Authorization: Bearer APITOKEN" \\
  -X POST

Example Response