Herald
OpenapiExt

Create a new client app in a realm

Creates a client app in the specified realm. Only principals with `clients.manage` permission in the target realm may invoke this endpoint. # Authentication Requires valid API Key via X-API-Key header # Authorization The caller must have `clients.manage` permission in the target realm.

POST
/api/ext/realms/{realmId}/client-apps

Creates a client app in the specified realm. Only principals with clients.manage permission in the target realm may invoke this endpoint.

Authentication

Requires valid API Key via X-API-Key header

Authorization

The caller must have clients.manage permission in the target realm.

Authorization

api_key
headerX-API-Key<token>

Client-app API key (third-party external API).

Path Parameters

realmId*string

Realm ID

Request Body

application/json
  1. body

Request body for creating a client app via the ext API

description?string|null
deviceCodeGrantEnabled?|

Enable device code grant flow for this client app. When enabled, redirect_uris may be empty (device flow has no callback).

name*string
redirectUris*array<string>

Response Body

Client app created successfully

application/json
  1. response

Client app detail response for create/get endpoints

clientId*string
clientSecret?string|null
createdAt*string
description?string|null
enabled*boolean
id*string
name*string
redirectUris*array<string>
Example Request
curl -X POST 'https://example.com/api/ext/realms/string/client-apps' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "redirectUris": [
    "string"
  ]
}'
Example Response
{
  "clientId": "string",
  "clientSecret": "string",
  "createdAt": "string",
  "description": "string",
  "enabled": true,
  "id": "string",
  "name": "string",
  "redirectUris": [
    "string"
  ]
}