this post was submitted on 11 Jan 2025
5 points (100.0% liked)
Lemmy Support
4694 readers
21 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I see this has already been answered, but I'll post what I was typing out anyway.
It's not enough to just provide your auth token if you want to fetch the details for yourself (even though the JWT decodes to identify you). You have to use /user like you would for fetching anyone else, e.g.:
curl --header 'accept: application/json' --header 'authorization: Bearer xyzyzyz' --location https://lemmy.world/api/v3/user?username=okelote360 | jq .