Do I need to use the admin bearer token for normal user actions via API? (e.g. login, post, upvote)

ajay_89 @ajay_89@community.nodebb.org

<p>Hi,</p> <p>I'm working on an Android app that uses NodeBB as the backend. I'm trying to interact with everything through the NodeBB API — like registering a normal user, logging them in, creating topics, replying, upvoting, etc.</p> <p>My main question is:</p> <p>Do I need to use the admin bearer token for all these actions, or should each normal user get their own token after login and use that?</p> <p>Also, I'm a bit confused about the login endpoint. I've seen both:</p> <p>/api/login</p> <p>/utilities/login</p> <p>Which one is the correct endpoint to log in a normal user using the API?</p> <p>Apologies if this is a basic question — I checked the docs but couldn't find a clear answer or a complete example for handling the full user flow via API. Any help or guidance would be much appreciated!</p> <p>Thanks in advance!</p>

Read more →
0
0

If you have a fediverse account, you can quote this note from your own instance. Search https://community.nodebb.org/post/105070 on your instance and quote it. (Note that quoting is not supported in Mastodon.)