Account
GET
https://api.restorehub.net /api/v1/account Get the authenticated account
Required scope: account:read
Code samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/account" \
-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)
PUT
https://api.restorehub.net /api/v1/account Update account profile + notification preferences
Required scope: account:write
Request body
application/json
displayNamestringlocalestringnotifyAccountChangesbooleannotifyVerifyLogsbooleannotifyTeamInvitesbooleannotifyUpgradesbooleannotifyMemberPullsbooleannotifyBackupsboolean{
"displayName": "string",
"locale": "en",
"notifyAccountChanges": true,
"notifyVerifyLogs": true,
"notifyTeamInvites": true,
"notifyUpgrades": true,
"notifyMemberPulls": true,
"notifyBackups": true
}Code samples
cURL
curl -X PUT "https://api.restorehub.net/api/v1/account" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"displayName":"string","locale":"en","notifyAccountChanges":true,"notifyVerifyLogs":true,"notifyTeamInvites":true,"notifyUpgrades":true,"notifyMemberPulls":true,"notifyBackups":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}DELETE
https://api.restorehub.net /api/v1/account Delete the authenticated account (requires '*' scope)
Required scope: account:delete
Request body
application/json
confirmstringrequired{
"confirm": "delete-my-account"
}Code samples
cURL
curl -X DELETE "https://api.restorehub.net/api/v1/account" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"confirm":"delete-my-account"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/account/transfer Transfer the account to another email (requires '*' scope)
Required scope: account:delete
Request body
application/json
targetEmailstringrequiredconfirmstringrequired{
"targetEmail": "string",
"confirm": "transfer-account"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/account/transfer" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"targetEmail":"string","confirm":"transfer-account"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/account/discord/unlink Unlink the linked Discord account
Required scope: account:link
Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/account/discord/unlink" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/account/discord/relink Get a Discord OAuth URL to re-grant guilds scope
Required scope: account:link
Request body
application/json
botIdstringBot to use; defaults to existing discordOAuthBotId
{
"botId": "string"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/account/discord/relink" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"botId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}GET
https://api.restorehub.net /api/v1/account/verified-emails List the user's verified alert-recipient emails
Required scope: account:read
Code samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/account/verified-emails" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/account/verified-emails Send a verification link to an email so it can be used as an alert recipient (24h expiry)
Required scope: account:write
Request body
application/json
emailstringrequired{
"email": "string"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/account/verified-emails" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/account/verified-emails/verify Confirm an email-verification token sent to the email
Required scope: account:write
Request body
application/json
tokenstringrequired{
"token": "string"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/account/verified-emails/verify" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}DELETE
https://api.restorehub.net /api/v1/account/verified-emails/{id} Remove a verified email from the registry
Required scope: account:write
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://api.restorehub.net/api/v1/account/verified-emails/{id}" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}Updated