OAuth Clients

Embed
Preview of the card
<a href="https://restorehub.net/docs/oauth-clients"><img src="https://restorehub.net/docs/_api/public/orgs/02205afa-581f-4b8b-b2a5-8aa1a06b0a65/spaces/3b58c1c8-7c23-44ef-9ff3-f4a5c899d9ac/pages/f6c52800-2840-4cf4-95d6-42029aabd7a4/social-card.svg?v=3e7ae33eec8b" alt="OAuth Clients" width="600" height="315"></a>
GEThttps://api.restorehub.net/api/v1/servers/{id}/oauth-clients

List OAuth clients

Required scope: oauth-clients:read

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/oauth-clients" \
  -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/servers/{id}/oauth-clients

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

POSThttps://api.restorehub.net/api/v1/servers/{id}/oauth-clients

Create an OAuth client (returns clientSecret once)

Required scope: oauth-clients:write

Parameters

idstringpathrequired

Request body

application/json
namestringrequired
redirectUrisstring[]required
Exact-match allow-list. https only (http allowed for localhost); no fragments.
scopesstring[]
Must include openid. Default: openid, profile, email.
isPublicboolean
true = public PKCE client with no secret. Default false.
{
  "name": "string",
  "redirectUris": [
    "string"
  ],
  "scopes": [
    "openid"
  ],
  "isPublic": true
}

Code samples

cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/oauth-clients" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","redirectUris":["string"],"scopes":["openid"],"isPublic":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

GEThttps://api.restorehub.net/api/v1/servers/{id}/oauth-clients/{clientId}

Get an OAuth client

Required scope: oauth-clients:read

Parameters

idstringpathrequired
clientIdstringpathrequired

Code samples

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

Responses

200 OK
{}
401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

DELETEhttps://api.restorehub.net/api/v1/servers/{id}/oauth-clients/{clientId}

Delete an OAuth client (ends its sessions)

Required scope: oauth-clients:write

Parameters

idstringpathrequired
clientIdstringpathrequired

Code samples

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

Responses

200 OK
{}
401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

PATCHhttps://api.restorehub.net/api/v1/servers/{id}/oauth-clients/{clientId}

Update an OAuth client

Required scope: oauth-clients:write

Parameters

idstringpathrequired
clientIdstringpathrequired

Request body

application/json
namestring
redirectUrisstring[]
scopesstring[]
{
  "name": "string",
  "redirectUris": [
    "string"
  ],
  "scopes": [
    "openid"
  ]
}

Code samples

cURL
curl -X PATCH "https://api.restorehub.net/api/v1/servers/{id}/oauth-clients/{clientId}" \
  -H "Authorization: Bearer $RESTOREHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","redirectUris":["string"],"scopes":["openid"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/oauth-clients

Updated