OpenAPI Specification for Keycloak REST APIs

Hello, is anyone aware of any OpenAPI (Swagger3) JSON definitions for the Keycloak Admin and Protection APIs? So far, I’ve come across a repo that generates the admin OpenAPI from the published HTML spec ( but complete absence of anything for the Protection API, not even the HTML specification - would be glad to be proved wrong

I’m surprised that Keycloak don’t publish and maintain the OpenAPI specifications - they would be extremely useful for developing consistent client applications and to support test / mocking, etc

1 Like

There is an open issue for that on the keycloak issue tracker tool :


If it can help, a complete postman collection is available here :