# How to use discourse api in react native?

**URL:** https://meta.discourse.org/t/how-to-use-discourse-api-in-react-native/349356
**Category:** Support
**Tags:** rest-api
**Created:** [January 28, 2025, 11:42am UTC](https://meta.discourse.org/t/how-to-use-discourse-api-in-react-native/349356 "2025-01-28T11:42:49Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Lexicon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lexicon/32/347938_2.png) [@Lexicon](https://meta.discourse.org/u/Lexicon)
#### Post date: [January 28, 2025, 5:29pm UTC](https://meta.discourse.org/t/how-to-use-discourse-api-in-react-native/349356/3 "2025-01-28T17:29:58Z")

</div>

Thanks for the mention. We are actually getting ready to release version 3 of Lexicon with some changes that are relevant to this topic.

Up until now Lexicon was relying on the `_t` cookie auth tokens for authenticating users to the target Discourse site. In version 3 we are switching to the officially supported approach with User API keys.

@Tarun_Sharma if you’re looking to do it yourself, we’d recommend following that approach, which is outlined here: [User API keys specification](https://meta.discourse.org/t/user-api-keys-specification/48536).

Also, Lexicon is open-source, so feel free to clone / fork the project and adapt it to your needs.

Best of luck!

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-discourse-api-in-react-native/349356)._
