# HTTP RESTlet connection

**URL:** <https://connective.celigo.com/t/http-restlet-connection/1160>\
**Category:** Integrator.io\
**Tags:** connection, authentication, http, netsuite\
**Created:** [March 24, 2021, 11:46pm UTC](https://connective.celigo.com/t/http-restlet-connection/1160 "2021-03-24T23:46:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danbystrm](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@danbystrm](https://connective.celigo.com/u/danbystrm)\
**Post date:** [March 24, 2021, 11:46pm UTC](https://connective.celigo.com/t/http-restlet-connection/1160/1 "2021-03-24T23:46:21Z")

</div>

Need to create a HTTP or REST API connection to trigger a RESTlet script. Assume I'm not the first one to use RESTlets but I can't find documentation. Who can help me configure OAuth 2.0 for Netsuite REST web service?

Some steps are covered here

[https://docs.celigo.com/hc/en-us/articles/360039586072-Set-up-an-OAuth-2-0-HTTP-connection](https://docs.celigo.com/hc/en-us/articles/360039586072-Set-up-an-OAuth-2-0-HTTP-connection%C2%A0)

Tnx  
Dan

---

<div class="post-metadata">

**Author:** ![courtneyjordan](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@courtneyjordan](https://connective.celigo.com/u/courtneyjordan)\
**Post date:** [March 26, 2021, 11:37pm UTC](https://connective.celigo.com/t/http-restlet-connection/1160/2 "2021-03-26T23:37:40Z")

</div>

Hi @danbystrm,

We're looking into the answer for this for you, but would recommend that you enter a support ticket to get this figured out quickly. Thank you for letting us know about this need and we'll try to get documentation created as soon as possible.

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [July 15, 2023, 2:11am UTC](https://connective.celigo.com/t/http-restlet-connection/1160/3 "2023-07-15T02:11:13Z")

</div>

@danbystrm you can't really use NetSuite's Oauth 2 for this exact reason. The access token you get after initially authenticating only lasts for 60 minutes and the refresh token only lasts for 7 days. After the 7 days, you would be required to reauth the connection. Having to do this makes it non ideal to use Oauth 2 for integrations. Instead of Oauth 2, you should use Oauth 1 TBA and here is an article on how to set it up: [https://docs.celigo.com/hc/en-us/articles/14349054963995-Set-up-an-OAuth-1-0-connection-to-NetSuite-SuiteTalk-APIs-including-SuiteQL-](https://docs.celigo.com/hc/en-us/articles/14349054963995-Set-up-an-OAuth-1-0-connection-to-NetSuite-SuiteTalk-APIs-including-SuiteQL-)

Docs discussing refresh token 7 day limit on Oauth 2:

- [https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section\_158081952044.html#subsect\_158100057130](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_158081952044.html#subsect_158100057130)
- [https://www.reddit.com/r/Netsuite/comments/yd8yv6/renewing\_refresh\_token/](https://www.reddit.com/r/Netsuite/comments/yd8yv6/renewing_refresh_token/)
- [https://chamilelle.medium.com/setup-rest-web-service-and-oauth-2-0-in-your-netsuite-account-c4243240bc3f](https://chamilelle.medium.com/setup-rest-web-service-and-oauth-2-0-in-your-netsuite-account-c4243240bc3f)

 ![5301043caa20740200000001-75c6217136a34aea91ffcc94d7ff76e6.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/5/51997f0feba02aa0c28189aadfa8e6b9d8a4ad84.png)

---

<div class="post-metadata">

**Author:** ![steveklett](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@steveklett](https://connective.celigo.com/u/steveklett)\
**Post date:** [July 15, 2023, 4:36am UTC](https://connective.celigo.com/t/http-restlet-connection/1160/4 "2023-07-15T04:36:17Z")

</div>

Hi @tylerlamparter,

I appreciate this reply from you, nice to have the info in one place. I recall reading something here that Celigo had plans to better support connecting to RESTlets. Does that ring a bell? Is there anything coming that will simplify interacting with RESTlets?

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [July 15, 2023, 5:28pm UTC](https://connective.celigo.com/t/http-restlet-connection/1160/5 "2023-07-15T17:28:24Z")

</div>

@steveklett are you referring to the Oauth1 authentication type that was added to the universal HTTP connector in January? Here is the article on how to use it for SuiteTalk apis, but the authentication would just about be the same for RESTlets. [https://docs.celigo.com/hc/en-us/articles/14349054963995-Set-up-an-OAuth-1-0-connection-to-NetSuite-SuiteTalk-APIs-including-SuiteQL-](https://docs.celigo.com/hc/en-us/articles/14349054963995-Set-up-an-OAuth-1-0-connection-to-NetSuite-SuiteTalk-APIs-including-SuiteQL-)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [July 15, 2023, 4:36am UTC](https://connective.celigo.com/t/http-restlet-connection/1160/6 "2023-07-15T04:36:17Z")

</div>

Hi @tylerlamparter,

I appreciate this reply from you, nice to have the info in one place. I recall reading something here that Celigo had plans to better support connecting to RESTlets. Does that ring a bell? Is there anything coming that will simplify interacting with RESTlets?
