Account

Embed
Preview of the card
<a href="https://restorehub.net/docs/account"><img src="https://restorehub.net/docs/_api/public/orgs/02205afa-581f-4b8b-b2a5-8aa1a06b0a65/spaces/3b58c1c8-7c23-44ef-9ff3-f4a5c899d9ac/pages/ebe39fb6-b16d-4f02-b843-82238705c3b8/social-card.svg?v=3e7ae33eec8b" alt="Account" width="600" height="315"></a>
GEThttps://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
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/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

PUThttps://api.restorehub.net/api/v1/account

Update account profile + notification preferences

Required scope: account:write

Request body

application/json
displayNamestring
localestring
en | es | fr | de | pt | ja | ko | zh | ru | ar | tr | it | nl | pl | uk
notifyAccountChangesboolean
notifyVerifyLogsboolean
notifyTeamInvitesboolean
notifyUpgradesboolean
notifyMemberPullsboolean
notifyBackupsboolean
{
  "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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

DELETEhttps://api.restorehub.net/api/v1/account

Delete the authenticated account (requires '*' scope)

Required scope: account:delete

Request body

application/json
confirmstringrequired
delete-my-account
{
  "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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

POSThttps://api.restorehub.net/api/v1/account/transfer

Transfer the account to another email (requires '*' scope)

Required scope: account:delete

Request body

application/json
targetEmailstringrequired
confirmstringrequired
transfer-account
{
  "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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

POSThttps://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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

POSThttps://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
botIdstring
Bot 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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

GEThttps://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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

POSThttps://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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

POSThttps://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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

DELETEhttps://api.restorehub.net/api/v1/account/verified-emails/{id}

Remove a verified email from the registry

Required scope: account:write

Parameters

idstringpathrequired

Code 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
{}
400 Validation failed

Same as 400 · GET /api/v1/account

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/account

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/account

404 Not found

Same as 400 · GET /api/v1/account

429 Rate limit exceeded

Same as 400 · GET /api/v1/account

Updated