Discourse with Keycloak for SSO

You can access all the api endpoints using API keys as far as I know.

You should be able to, nothing is stopping you from doing that.