# Is it possible to use the user Access-Token or Session Token to authenticate to the platform API?

**URL:** <https://community.sendbird.com/t/is-it-possible-to-use-the-user-access-token-or-session-token-to-authenticate-to-the-platform-api/1103>\
**Category:** API\
**Created:** [October 6, 2020, 7:20pm UTC](https://community.sendbird.com/t/is-it-possible-to-use-the-user-access-token-or-session-token-to-authenticate-to-the-platform-api/1103 "2020-10-06T19:20:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodolfo-sevilhano](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/rodolfo-sevilhano/32/583_2.png) [@rodolfo-sevilhano](https://community.sendbird.com/u/rodolfo-sevilhano)\
**Post date:** [October 6, 2020, 7:20pm UTC](https://community.sendbird.com/t/is-it-possible-to-use-the-user-access-token-or-session-token-to-authenticate-to-the-platform-api/1103/1 "2020-10-06T19:20:08Z")

</div>

Hello folks,  
is it possible to use the user Access-Token or Session Token to authenticate to the platform API? For example, if I want to send a message using the /open\_channels/{channel\_url}/messages endpoint, can I use an Access token or Session Token to grant permission to that endpoint?

---

<div class="post-metadata">

**Author:** ![Alex\_Preston](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/alex_preston/32/167_2.png) [@Alex\_Preston](https://community.sendbird.com/u/Alex_Preston)\
**Post date:** [October 6, 2020, 7:52pm UTC](https://community.sendbird.com/t/is-it-possible-to-use-the-user-access-token-or-session-token-to-authenticate-to-the-platform-api/1103/2 "2020-10-06T19:52:23Z")

</div>

Hey @rodolfo-sevilhano,

Can I ask more about the use-case?

In general authenticating for the Platform API is done via the [Header](https://docs.sendbird.com/platform/quick_start#3_headers) master api token, or more preferably secondary api token(Which are issued from the master api token).

---

<div class="post-metadata">

**Author:** ![rodolfo-sevilhano](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/rodolfo-sevilhano/32/583_2.png) [@rodolfo-sevilhano](https://community.sendbird.com/u/rodolfo-sevilhano)\
**Post date:** [October 6, 2020, 8:22pm UTC](https://community.sendbird.com/t/is-it-possible-to-use-the-user-access-token-or-session-token-to-authenticate-to-the-platform-api/1103/3 "2020-10-06T20:22:34Z")

</div>

Let’s suppose that I want to create a client app in a platform for which does not exist an SDK. For example, a client desktop app written in Delphi. In this case, I have to use the Platform API to communicate with Sendbird. But I don’t want to deploy my master token nor a secondary token in the client app. How can I use the Access token or a Session token to communicate trough the Platform API?

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [October 7, 2020, 3:15pm UTC](https://community.sendbird.com/t/is-it-possible-to-use-the-user-access-token-or-session-token-to-authenticate-to-the-platform-api/1103/4 "2020-10-07T15:15:48Z")

</div>

Maybe you can try this guide for Delphi.

[Platform API with Delphi [External].pdf](https://community.sendbird.com/uploads/short-url/maGU0O6P0TRxPdU6jsOY5mQ4u3r.pdf) (477.1 KB)

Remember that the token Alex Preston mentions can be regenerated.

From your dashboard you can also filter where calls are executed so they will work where you want to.

> **[Quick Start | Platform API Chat SDK Documentation | Sendbird](https://docs.sendbird.com/platform#3_authentication_4_using_an_api_token)**
>
> Using Chat Platform API, you can directly interact with the different types of resources which represent data associated with chat activities in your Sendbird application. The Chat API is designed to use standard HTTP protocols and return JSON...
