ServerConfig

Embed
Preview of the card
<a href="https://restorehub.net/docs/serverconfig"><img src="https://restorehub.net/docs/_api/public/orgs/02205afa-581f-4b8b-b2a5-8aa1a06b0a65/spaces/3b58c1c8-7c23-44ef-9ff3-f4a5c899d9ac/pages/3fc1d7d9-9f1a-419e-b44c-04286cce37f9/social-card.svg?v=3e7ae33eec8b" alt="ServerConfig" width="600" height="315"></a>
GEThttps://api.restorehub.net/api/v1/servers/{id}/security

Get security config

Required scope: servers:read

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/security" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed
Example
{
  "error": "string",
  "code": "string",
  "details": {},
  "requiredScope": "string",
  "yourScopes": [
    "string"
  ]
}
Schema
errorstring
Human-readable error message
codestring
Machine-readable error code (optional)
detailsobject
Validation issues (optional)
requiredScopestring
Required scope (on 403 only)
yourScopesstring[]
Your key's scopes (on 403 only)
401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

PUThttps://api.restorehub.net/api/v1/servers/{id}/security

Update security config

Required scope: servers:write

Parameters

idstringpathrequired

Request body

application/json

Security flags: vpnBlock, altDetect, firewall, antiNuke, antiRaid, captchaType, etc.

{}

Code samples

cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/security" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

GEThttps://api.restorehub.net/api/v1/servers/{id}/verify-page

Get verify page config

Required scope: verify-page:read

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/verify-page" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

PUThttps://api.restorehub.net/api/v1/servers/{id}/verify-page

Update verify page config

Required scope: verify-page:write

Parameters

idstringpathrequired

Request body

application/json

Verify page theme, copy, branding

{}

Code samples

cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/verify-page" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

GEThttps://api.restorehub.net/api/v1/servers/{id}/verify-variants

List verify-page A/B variants

Required scope: verify-page:read

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/verify-variants" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

POSThttps://api.restorehub.net/api/v1/servers/{id}/verify-variants

Create a verify-page variant

Required scope: verify-page:write

Parameters

idstringpathrequired

Request body

application/json
namestringrequired
configobjectrequired
{
  "name": "string",
  "config": {}
}

Code samples

cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/verify-variants" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","config":{}}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

PUThttps://api.restorehub.net/api/v1/servers/{id}/verify-variants/reorder

Bulk reorder verify-page variants by priority (one transaction)

Required scope: verify-page:write

Parameters

idstringpathrequired

Request body

application/json
orderobject[]required
List of {id, priority} for variants on this server. All ids must belong to the server.
Show child parameters
idstringrequired
priorityintegerrequired
{
  "order": [
    {
      "id": "string",
      "priority": 0
    }
  ]
}

Code samples

cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/verify-variants/reorder" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"order":[{"id":"string","priority":0}]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

PUThttps://api.restorehub.net/api/v1/servers/{id}/verify-variants/{variantId}

Update a variant

Required scope: verify-page:write

Parameters

idstringpathrequired
variantIdstringpathrequired

Request body

application/json
namestring
configobject
weightinteger
enabledboolean
{
  "name": "string",
  "config": {},
  "weight": 0,
  "enabled": true
}

Code samples

cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/verify-variants/{variantId}" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","config":{},"weight":0,"enabled":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

DELETEhttps://api.restorehub.net/api/v1/servers/{id}/verify-variants/{variantId}

Delete a variant

Required scope: verify-page:write

Parameters

idstringpathrequired
variantIdstringpathrequired

Code samples

cURL
curl -X DELETE "https://api.restorehub.net/api/v1/servers/{id}/verify-variants/{variantId}" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

GEThttps://api.restorehub.net/api/v1/servers/{id}/widget

Get widget config

Required scope: widget:read

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/widget" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/security

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/security

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/security

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/security

Updated