Hi,
I’m integrating discourse into my app, and I would like to know if I could possibly disable posting new topics from the webui, and instead only allow them to be created via the API? I have several pieces of information that I want included in any new post which would come from the app, so the API seems like the best way to ensure they are included.
AI-generated summary
The discussion revolves around disabling the ability to create new posts via the web interface in Discourse, with the goal of allowing only API-based post creation. xceph wants to ensure certain app-specific data is included in posts, making the API the preferred method. Stephen suggests using CSS to hide the post creation buttons, noting that this isn’t possible through permissions and that users with the same login credentials will have the same access rights. xceph asks where to inject the CSS, and Stephen directs them to the /admin section for theme customization. xceph initially struggles to find the CSS/HTML section but later resolves the issue by accessing the edit theme option within the theme settings, thanking the community for the help xceph.
You could hide buttons using CSS.
There’s no way to do this with permissions out of the box AFAIK. If users can log into the site using the same identity as the app, then they will have the same access rights to create and reply to topics.
Thanks Stephen, would css be added via a custom theme or plugin, or is there a place to inject css site wide? Still getting used to the platform but am really enjoying it so far!
You can customize theme css via /admin.
Users can disable the changes just by viewing the page source though.
Thanks, not overly concerned about that, if they want to go through the effort it won’t cause any harm. They’ll just miss out on some of the features that will be relayed by the API post.
I’ve solved it, posting for anyone else who is as stupid as me ![]()
the edit theme is an item in the theme itself, select the theme and its near the bottom.
Thanks for your help.

