Blacklist

Embed
Preview of the card
<a href="https://restorehub.net/docs/blacklist"><img src="https://restorehub.net/docs/_api/public/orgs/02205afa-581f-4b8b-b2a5-8aa1a06b0a65/spaces/3b58c1c8-7c23-44ef-9ff3-f4a5c899d9ac/pages/f0f00ad4-abee-4d64-ab89-7dc75edfe683/social-card.svg?v=3e7ae33eec8b" alt="Blacklist" width="600" height="315"></a>
GEThttps://api.restorehub.net/api/v1/blacklist

Account-level blacklist entries

Required scope: blacklist:read

Parameters

pageintegerquery
= 1
limitintegerquery
= 25
searchstringquery

Code samples

cURL
curl -X GET "https://api.restorehub.net/api/v1/blacklist" \
  -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/blacklist

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/blacklist

404 Not found

Same as 400 · GET /api/v1/blacklist

429 Rate limit exceeded

Same as 400 · GET /api/v1/blacklist

POSThttps://api.restorehub.net/api/v1/blacklist

Create an account-level blacklist entry

Required scope: blacklist:write

Request body

application/json
typestringrequired
discord_user | ip | ip_range | country | fingerprint
valuestringrequired
reasonstring
{
  "type": "discord_user",
  "value": "string",
  "reason": "string"
}

Code samples

cURL
curl -X POST "https://api.restorehub.net/api/v1/blacklist" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"discord_user","value":"string","reason":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/blacklist

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/blacklist

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/blacklist

404 Not found

Same as 400 · GET /api/v1/blacklist

429 Rate limit exceeded

Same as 400 · GET /api/v1/blacklist

DELETEhttps://api.restorehub.net/api/v1/blacklist/{id}

Delete an account-level blacklist entry

Required scope: blacklist:write

Parameters

idstringpathrequired

Code samples

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

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/blacklist

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/blacklist

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/blacklist

404 Not found

Same as 400 · GET /api/v1/blacklist

429 Rate limit exceeded

Same as 400 · GET /api/v1/blacklist

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

List server-scoped blacklist entries

Required scope: blacklist:read

Parameters

idstringpathrequired

Code samples

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

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/blacklist

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/blacklist

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/blacklist

404 Not found

Same as 400 · GET /api/v1/blacklist

429 Rate limit exceeded

Same as 400 · GET /api/v1/blacklist

POSThttps://api.restorehub.net/api/v1/servers/{id}/blacklist

Blacklist a Discord user (defaults to server-scoped)

Required scope: blacklist:write

Parameters

idstringpathrequired

Request body

application/json
discordUserIdstringrequired
reasonstring
scopestring
server | all
{
  "discordUserId": "string",
  "reason": "string",
  "scope": "server"
}

Code samples

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

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/blacklist

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/blacklist

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/blacklist

404 Not found

Same as 400 · GET /api/v1/blacklist

429 Rate limit exceeded

Same as 400 · GET /api/v1/blacklist

DELETEhttps://api.restorehub.net/api/v1/servers/{id}/blacklist/{blacklistId}

Remove a server-scoped blacklist entry

Required scope: blacklist:write

Parameters

idstringpathrequired
blacklistIdstringpathrequired

Code samples

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

Responses

200 OK
{}
400 Validation failed

Same as 400 · GET /api/v1/blacklist

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/blacklist

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/blacklist

404 Not found

Same as 400 · GET /api/v1/blacklist

429 Rate limit exceeded

Same as 400 · GET /api/v1/blacklist

Updated