Create OAuth2 client
Registers a new OAuth2 client. Requires clientName and redirectUris (HTTPS only, max 5, localhost allowed). Returns auto-generated clientId and clientSecret (secret shown only once).
Body
required
application/json
- Type: stringclient
Name requiredClient application name
- Type: array string[]redirect
Uris requiredAllowed redirect URIs (HTTPS required except localhost, max 5)
- Type: array string[] enumgrant
Types Defaults to both if not provided
values- authorization
_code - refresh
_token
- Type: stringscope
Space-delimited scopes per RFC 7591, e.g. 'user:read todo:write'
Responses
- application/json
- 400
Invalid request data
- application/json
- application/json
- application/json
- application/json
Request Example for post/auth/oauth/client
curl https://test.boost.space/api/auth/oauth/client \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"clientName": "",
"redirectUris": [
""
],
"scope": "",
"grantTypes": [
"authorization_code"
]
}'
{
"id": 42,
"created": "2026-01-15T09:30:00Z",
"createdUserId": 42,
"updated": "2026-01-15T09:30:00Z",
"updatedUserId": 42,
"clientId": "string",
"clientName": "Sample clientName",
"redirectUris": [
"https://acme.boost.space"
],
"scopes": [
"string"
],
"tokenId": 42
}