Keycloak REST API with Postman

Опубликовано: 08 Июнь 2026
на канале: hexaDefence
45,279
446

Demonstrate how to use Keycloak's admin REST API with a postman client application.


For invoking a REST endpoint, client application should obtain an access token. After that the access token should be added to the authorization header of each REST API call as a bearer token.


OAuth 2.0 protocol is used to obtain access token.

Keycloak REST API Documentation: https://www.keycloak.org/docs-api/5.0...

Keycloak OIDC token endpoint: http://{HOST}/auth/realms/{REALM_NAME}/protocol/openid-connect/token

Base URL for REST API: http://{HOST}/auth/admin/realms​
(Host: localhost:8080 BasePath: /auth/admin/realms)

Example for listing users: GET http://{HOST}/auth/admin/realms/{REALM_NAME}/users