# How can I get the Token from the server

**URL:** <https://discuss.kotlinlang.org/t/how-can-i-get-the-token-from-the-server/25820>\
**Category:** Support\
**Created:** [October 17, 2022, 9:31am UTC](https://discuss.kotlinlang.org/t/how-can-i-get-the-token-from-the-server/25820 "2022-10-17T09:31:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan.oryx](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/hasan.oryx/32/5515_2.png) [@hasan.oryx](https://discuss.kotlinlang.org/u/hasan.oryx)\
**Post date:** [October 17, 2022, 9:31am UTC](https://discuss.kotlinlang.org/t/how-can-i-get-the-token-from-the-server/25820/1 "2022-10-17T09:31:09Z")

</div>

Working with Postman, using the configeration as shown at the screen shoot, I’m able to get the token from the server.  
How can I do this using Kotlin code, planning to use it from a mobile app.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/8/8c23321990fa8e96731716a2413d0d7fcc71a34c.png)
