Creating a realm using keyCloak Rest API


Let me know on how to create a new realm using the keycloak Rest API. I am not sure on which API call to make and what user credentials to use for creating a new realm in KeyCloak.


If you are calling from an another application, keycloak has an admin client library, where you can create realms or you can directly call admin rest api to create new realm

For user credentials you have to use admin-cli client and admin user. Let me know if this helps you :slight_smile: