SkyZhang Flarum is a SPA, meaning there's a frontend written in javascript separately from the backend written in PHP. This PHP side is available to the frontend with a REST API; this API is also available to other, outside applications. So yes this is possible, every request that flarum makes to its backend can be made using an api client.