Blacklist
GET
https://api.restorehub.net /api/v1/blacklist Account-level blacklist entries
Required scope: blacklist:read
Parameters
pageintegerquerylimitintegerquerysearchstringqueryCode 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
errorstringHuman-readable error message
codestringMachine-readable error code (optional)
detailsobjectValidation issues (optional)
requiredScopestringRequired scope (on 403 only)
yourScopesstring[]Your key's scopes (on 403 only)
POST
https://api.restorehub.net /api/v1/blacklist Create an account-level blacklist entry
Required scope: blacklist:write
Request body
application/json
typestringrequiredvaluestringrequiredreasonstring{
"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
{}DELETE
https://api.restorehub.net /api/v1/blacklist/{id} Delete an account-level blacklist entry
Required scope: blacklist:write
Parameters
idstringpathrequiredCode 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
{}GET
https://api.restorehub.net /api/v1/servers/{id}/blacklist List server-scoped blacklist entries
Required scope: blacklist:read
Parameters
idstringpathrequiredCode 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
{}POST
https://api.restorehub.net /api/v1/servers/{id}/blacklist Blacklist a Discord user (defaults to server-scoped)
Required scope: blacklist:write
Parameters
idstringpathrequiredRequest body
application/json
discordUserIdstringrequiredreasonstringscopestring{
"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
{}DELETE
https://api.restorehub.net /api/v1/servers/{id}/blacklist/{blacklistId} Remove a server-scoped blacklist entry
Required scope: blacklist:write
Parameters
idstringpathrequiredblacklistIdstringpathrequiredCode 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
{}Updated