Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25517

Clarification on ApiUserRequired in platform's api.go

$
0
0

Hi @Julia

First of all let me clarify the ApiUserRequired it actually means that the API route requires a valid user session, meaning that the user actually is logged in, that's all it does.

Now regarding the other issues:

  1. login by using this route /api/v3/users/login as POST and in the body supply a json object like this


{ "login_id": "account@email.com", "password": "the account password" }

If all goes well you'll get a response where in the header you'll find token. use it's value in subsequent API calls by adding a Header Authorization: Bearer thetokenfromtheresponse or Authorization: token thetokenfromtheresponse it doesn't matter if its a GET or a POST requests.

With this both of your problems should be resolved.

Let me know if it works for you.


Viewing all articles
Browse latest Browse all 25517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>