younifyd
Menu

Create Clients

Create clients

POST/admin/realms/{realm}/clients

Use it in a workflow

  1. Add a step and choose the Keycloak connector.
  2. Pick the Create Clients action (under Clients).
  3. Fill in the fields below, then reference the result from later steps as {{createClients.response.data}}.

Request

Path parameters

realmstringrequired

realm name (not id!)

Request body

Enter the body as JSON in the step's Body field.

idstring
clientIdstring
namestring
descriptionstring
typestring
rootUrlstring
adminUrlstring
baseUrlstring
surrogateAuthRequiredboolean
enabledboolean
alwaysDisplayInConsoleboolean
clientAuthenticatorTypestring
secretstring
registrationAccessTokenstring
defaultRolesarray<string>
redirectUrisarray<string>
webOriginsarray<string>
notBeforeinteger (int32)
bearerOnlyboolean
consentRequiredboolean
standardFlowEnabledboolean
implicitFlowEnabledboolean
directAccessGrantsEnabledboolean
serviceAccountsEnabledboolean
authorizationServicesEnabledboolean
directGrantsOnlyboolean
publicClientboolean
frontchannelLogoutboolean
protocolstring
attributesobject
authenticationFlowBindingOverridesobject
fullScopeAllowedboolean
nodeReRegistrationTimeoutinteger (int32)
registeredNodesobject
protocolMappersarray<object>
idstring
namestring
protocolstring
protocolMapperstring
consentRequiredboolean
consentTextstring
configobject
clientTemplatestring
useTemplateConfigboolean
useTemplateScopeboolean
useTemplateMappersboolean
defaultClientScopesarray<string>
json
{
  "id": "string",
  "clientId": "string",
  "name": "string",
  "description": "string",
  "type": "string",
  "rootUrl": "string",
  "adminUrl": "string",
  "baseUrl": "string",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "string"
}

Response

Returns 201 with a any. Read it in later steps with {{createClients.response.data.<field>}}.

Need more? See the Keycloak guide for connection setup and behaviour shared by every action.

Create Clients — Keycloak — Documentation