# Alternative endpoint for create users token

**URL:** <https://forums.rocket.chat/t/alternative-endpoint-for-create-users-token/20227>\
**Category:** Community Support\
**Created:** [July 3, 2024, 7:05am UTC](https://forums.rocket.chat/t/alternative-endpoint-for-create-users-token/20227 "2024-07-03T07:05:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkaanerol](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mkaanerol](https://forums.rocket.chat/u/mkaanerol)\
**Post date:** [July 3, 2024, 7:05am UTC](https://forums.rocket.chat/t/alternative-endpoint-for-create-users-token/20227/1 "2024-07-03T07:05:07Z")

</div>

### Description

Hello,

I want to generate and retrieve tokens of users as an admin, I investigated recent endpoints but I didn’t find a way to that. There was create users token endpoint but it is now deprecated. I wonder is there any alternative way to create token for users as an admin.

### Server Setup Information

- Version of Rocket.Chat Server: 6.9.2
- Operating System: Windows
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: 14.21.3
- MongoDB Version: 6.0.13
- Proxy: traefik
- Firewalls involved: No

### Any additional Information

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [July 3, 2024, 4:47pm UTC](https://forums.rocket.chat/t/alternative-endpoint-for-create-users-token/20227/2 "2024-07-03T16:47:54Z")

</div>

Hi.

Tell us what you are trying to do and why?

---

<div class="post-metadata">

**Author:** ![mkaanerol](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mkaanerol](https://forums.rocket.chat/u/mkaanerol)\
**Post date:** [July 4, 2024, 8:37am UTC](https://forums.rocket.chat/t/alternative-endpoint-for-create-users-token/20227/3 "2024-07-04T08:37:41Z")

</div>

We want to use rocket.chat as a messaging backend for the application we are developing. Client applications will only connect to the application, the application itself will act as a middleware and can send messages on behalf of the relevant user when necessary.

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [July 4, 2024, 10:35am UTC](https://forums.rocket.chat/t/alternative-endpoint-for-create-users-token/20227/4 "2024-07-04T10:35:26Z")

</div>

I’m not sure but I think you probably need to look at the realtime API:

[https://developer.rocket.chat/docs/api](https://developer.rocket.chat/docs/api)
