---
title: "Extend session REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Extend session, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiauthsessionextend/"
---

# Extend session REST API

POST

/api/auth/session/extend

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/auth/session/extend';
const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request POST \
  --url http://127.0.0.1:25737/api/auth/session/extend \
  --cookie hk_token=<hk_token>
```

-

Issues a fresh session cookie and returns the updated expiry policy.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Responses

### 200

Auth session

application/json

object

**duration_seconds**

integer

**expires_at**

string format: date-time

**extendable**

boolean

**issued_at**

string format: date-time

**remember_expires_at**

string format: date-time

**remember_me_duration_days**

integer

**remembered**

boolean

**timing_adjustable**

boolean

**warning_seconds**

integer

##### Examplegenerated

```
{
  "duration_seconds": 1,
  "expires_at": "2026-04-15T12:00:00Z",
  "extendable": true,
  "issued_at": "2026-04-15T12:00:00Z",
  "remember_expires_at": "2026-04-15T12:00:00Z",
  "remember_me_duration_days": 1,
  "remembered": true,
  "timing_adjustable": true,
  "warning_seconds": 1
}
```

[Previous Get session policy](https://hitkeep.com/api/operations/apiauthsession/)[Next Complete social login](https://hitkeep.com/api/operations/apiauthsocialcomplete/)
