Restore Hub API
POST
https://api.restorehub.net /api/v1/servers/{id}/alerts Create an alert
Required scope: alerts:write
Parameters
idstringpathrequiredRequest body
application/json
triggerstringrequiredwebhookUrlstringrequiredenabledbooleanconfigobject{
"trigger": "string",
"webhookUrl": "string",
"enabled": true,
"config": {}
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/alerts" \
-H "Content-Type: application/json" \
-d '{"trigger":"string","webhookUrl":"string","enabled":true,"config":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}GET
https://api.restorehub.net /api/v1/servers/{id}/alerts/{alertId} Get an alert
Required scope: alerts:read
Parameters
idstringpathrequiredalertIdstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/alerts/{alertId}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}PUT
https://api.restorehub.net /api/v1/servers/{id}/alerts/{alertId} Update an alert
Required scope: alerts:write
Parameters
idstringpathrequiredalertIdstringpathrequiredRequest body
application/json
triggerstringwebhookUrlstringenabledbooleanconfigobject{
"trigger": "string",
"webhookUrl": "string",
"enabled": true,
"config": {}
}Code samples
cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/alerts/{alertId}" \
-H "Content-Type: application/json" \
-d '{"trigger":"string","webhookUrl":"string","enabled":true,"config":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}DELETE
https://api.restorehub.net /api/v1/servers/{id}/alerts/{alertId} Delete an alert
Required scope: alerts:write
Parameters
idstringpathrequiredalertIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://api.restorehub.net/api/v1/servers/{id}/alerts/{alertId}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}Teams
GET
https://api.restorehub.net /api/v1/servers/{id}/team List team members
Required scope: teams:read
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/team"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}POST
https://api.restorehub.net /api/v1/servers/{id}/team/invite Invite a team member
Required scope: teams:write
Parameters
idstringpathrequiredRequest body
application/json
emailstringrequiredrolestringrequired{
"email": "string",
"role": "ADMIN"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/team/invite" \
-H "Content-Type: application/json" \
-d '{"email":"string","role":"ADMIN"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}PUT
https://api.restorehub.net /api/v1/servers/{id}/team/{memberId} Update a team member's role
Required scope: teams:write
Parameters
idstringpathrequiredmemberIdstringpathrequiredRequest body
application/json
rolestringrequired{
"role": "ADMIN"
}Code samples
cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/team/{memberId}" \
-H "Content-Type: application/json" \
-d '{"role":"ADMIN"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}DELETE
https://api.restorehub.net /api/v1/servers/{id}/team/{memberId} Remove a team member
Required scope: teams:write
Parameters
idstringpathrequiredmemberIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://api.restorehub.net/api/v1/servers/{id}/team/{memberId}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}POST
https://api.restorehub.net /api/v1/servers/{id}/team/accept Accept a team invite for this server
Required scope: teams:write
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/team/accept"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}POST
https://api.restorehub.net /api/v1/servers/{id}/team/transfer Transfer ownership of the server (requires servers:delete + confirm)
Required scope: servers:delete
Parameters
idstringpathrequiredRequest body
application/json
targetEmailstringrequiredconfirmstringrequired{
"targetEmail": "string",
"confirm": "transfer-ownership"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/team/transfer" \
-H "Content-Type: application/json" \
-d '{"targetEmail":"string","confirm":"transfer-ownership"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}401 Unauthorized — missing or invalid API key
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}403 Forbidden — missing required scope
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}404 Not found
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}429 Rate limit exceeded
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}Domains
Updated