# Chat GPT for Glide

**URL:** <https://community.glideapps.com/t/chat-gpt-for-glide/57134>\
**Category:** Ask for Help\
**Created:** [January 26, 2023, 11:11am UTC](https://community.glideapps.com/t/chat-gpt-for-glide/57134 "2023-01-26T11:11:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [January 26, 2023, 11:12pm UTC](https://community.glideapps.com/t/chat-gpt-for-glide/57134/4 "2023-01-26T23:12:02Z")

</div>

Hola @Simon_Hill

You can try with this syntax, this should work using JavaScript plugin:

> [@Fetch json with token](https://community.glideapps.com/t/fetch-json-with-token/53097/7):
>
> Hola! I think it’s possible but if you share your cURL command (or Fetch syntax) we can try to fix it. Your JS code might look like: var data= await fetch('YOUR\_URL', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'YOUR\_BearerToken' }, }); const json = await data.text(); // or data.json(); return json Saludos!

Saludos!

---

_[View the full topic](https://community.glideapps.com/t/chat-gpt-for-glide/57134)._
