[SOLVED] Login and post with a bot

Hi

I’m discovering Mattermost great tool actually.
I’m using the docker preview version.

I would like to post with a bot to a specific channel.
Same failure with user token

First I created my bot :
image

And try to request with curl or postman but failure :

curl -X GET \
  https://xxx/api/v4/users/me \
  -H 'Authorization: Bearer xxxx' \
  -H 'cache-control: no-cache' \
  -H 'X-Requested-With: XMLHttpRequest'
{"id":"api.context.session_expired.app_error","message":"Session invalide ou expirée, veuillez vous reconnecter.","detailed_error":"","request_id":"nesym1ac6trtxndzeaqscsfafy","status_code":401}

Could you help me please

EDIT :

Other try, same behavior :

curl -i -H 'Authorization: Bearer xxx' https://xxx/api/v4/users/me

Solved with production installation