Can I use Lemmy API out of the box and how?

I used Ubergeek’s installation method, so it runs on docker and Caddy.

I did not see a way to set up credentials via the GUI.

Do you know how can the API be used and is it available?

  • Max-P@lemmy.max-p.me
    link
    fedilink
    English
    arrow-up
    19
    ·
    6 months ago

    https://join-lemmy.org/docs/contributors/04-api.html

    Lemmy is the API, it’s always there. The web UI is just a client like any others and makes use of the Lemmy API. So you can just call the API to register an account, reset password, log in, everything. You don’t need to register tokens or apps, you just log into your account and get a session token and you’re good to go!

    That makes it easy to discover the API as well, since you can just open your browser’s devtools and inspect the network requests. It’s the same API, so you can just go ahead and implement the same in your code. No second class clients for Lemmy, they all use the same public API.

    Plus of course it also implements the ActivityPub APIs for federation, also which doesn’t require registration or anything special.