Is there any documentation for the HTTP API?

I'm making a client for Lemmy but am planning to make the calls myself rather than use a library, is there any good documentation of the HTTP API that I can use as a reference?

12 points · 5 comments · view on lemmy.world

5 Comments

nachtigall@feddit.de · 4 pts · 3y

You can find the routes here: https://github.com/LemmyNet/lemmy/blob/main/src/api_routes_http.rs

And the forms are documented here: https://join-lemmy.org/api/

Echolot@sh.itjust.works · 2 pts · 3y

They are planning to switch from WS to HTTP soon (backend is already switch over I think). Either way I don’t think there’s a documentation of the API itself yet, but you can just reverse engineer the calls from the calls from JS library or look at the backend code directly.

Jitnaught@lemmy.ml · 1 pts · 3y