Restore Hub API
POST
https://api.restorehub.net /api/v1/bots Add a custom bot
Required scope: bots:write
Request body
application/json
namestringrequiredapplicationIdstringrequiredtokenstringrequired{
"name": "string",
"applicationId": "string",
"token": "string"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/bots" \
-H "Content-Type: application/json" \
-d '{"name":"string","applicationId":"string","token":"string"}'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/bots/{botId} Get a custom bot
Required scope: bots:read
Parameters
botIdstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/bots/{botId}"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/bots/{botId} Update a custom bot
Required scope: bots:write
Parameters
botIdstringpathrequiredRequest body
application/json
namestringavatarstringAvatar URL or null
redirectUristringisActiveboolean{
"name": "string",
"avatar": "string",
"redirectUri": "string",
"isActive": true
}Code samples
cURL
curl -X PUT "https://api.restorehub.net/api/v1/bots/{botId}" \
-H "Content-Type: application/json" \
-d '{"name":"string","avatar":"string","redirectUri":"string","isActive":true}'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/bots/{botId} Delete a custom bot
Required scope: bots:delete
Parameters
botIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://api.restorehub.net/api/v1/bots/{botId}"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/bots/{botId}/presence Set bot presence (status + activity)
Required scope: bots:write
Parameters
botIdstringpathrequiredRequest body
application/json
statusstringactivityTypestringactivityTextstring{
"status": "ONLINE",
"activityType": "PLAYING",
"activityText": "string"
}Code samples
cURL
curl -X PUT "https://api.restorehub.net/api/v1/bots/{botId}/presence" \
-H "Content-Type: application/json" \
-d '{"status":"ONLINE","activityType":"PLAYING","activityText":"string"}'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/bots/{botId}/transfer Transfer bot ownership (also moves all servers using it; requires bots:delete)
Required scope: bots:delete
Parameters
botIdstringpathrequiredRequest body
application/json
emailstringrequired{
"email": "string"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/bots/{botId}/transfer" \
-H "Content-Type: application/json" \
-d '{"email":"string"}'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/bots/{botId}/guilds Discord guilds this bot is currently in (excludes already-registered)
Required scope: bots:read
Parameters
botIdstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/bots/{botId}/guilds"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/bots/{botId}/guilds/{guildId}/roles Assignable roles for a guild via this bot
Required scope: bots:read
Parameters
botIdstringpathrequiredguildIdstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/bots/{botId}/guilds/{guildId}/roles"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"
]
}Members
GET
https://api.restorehub.net /api/v1/servers/{id}/members List verified members
Required scope: members:read
Parameters
idstringpathrequiredpageintegerquerylimitintegerqueryCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/members"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}/pull Trigger a member pull
Required scope: members:pull
Parameters
idstringpathrequiredRequest body
application/json
targetGuildIdstringrequiredlimitintegerroleIdsstring[]{
"targetGuildId": "string",
"limit": 0,
"roleIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/pull" \
-H "Content-Type: application/json" \
-d '{"targetGuildId":"string","limit":0,"roleIds":["string"]}'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/pulls/{id} Get pull job status
Required scope: members:read
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/pulls/{id}"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"
]
}Updated