# API, possible to request shorter "expirationsec" then 8h?

**URL:** https://forum.remote.it/t/api-possible-to-request-shorter-expirationsec-then-8h/193
**Category:** API
**Created:** [June 4, 2020, 9:51am UTC](https://forum.remote.it/t/api-possible-to-request-shorter-expirationsec-then-8h/193 "2020-06-04T09:51:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mats404](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mats404](https://forum.remote.it/u/mats404)
#### Post date: [June 4, 2020, 9:51am UTC](https://forum.remote.it/t/api-possible-to-request-shorter-expirationsec-then-8h/193/1 "2020-06-04T09:51:04Z")

</div>

When doing connection to service via API the default expiration time for a http proxy is 8h. Would it be possible to request a shorter expiration time than that during the connection request? Today the request has deviceaddress, wait and hostip as “variables” in the API call.

---

<div class="post-metadata">

### Author: ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forum.remote.it/u/gary)
#### Post date: [August 1, 2020, 3:40pm UTC](https://forum.remote.it/t/api-possible-to-request-shorter-expirationsec-then-8h/193/2 "2020-08-01T15:40:58Z")

</div>

Sorry for the delay in response!

You can’t adjust the timeout, but you can call another API to terminate the connection when you are done. See:

[https://link.remote.it/connections-log](https://link.remote.it/connections-log)
