> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.withverifa.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.withverifa.com/_mcp/server.

# Refresh the dashboard session cookie

POST https://api.withverifa.com/api/v1/auth/refresh

Issues a fresh `vk_org_token` cookie for the currently authenticated
dashboard user, extending the session for another 8 hours from now.

The dashboard SPA calls this on a periodic timer (and on focus/route
change) so users actively working in the app are not hard-logged-out
when their original 8h JWT expires mid-task.

The request body is empty — the caller is identified by the existing
`vk_org_token` cookie. On success, the response sets a new
`vk_org_token` cookie (httpOnly, Secure, SameSite=Lax, Max-Age=28800).


Reference: https://docs.withverifa.com/api-reference/authentication/refresh-auth-session

## Request

### Headers

- `Verifa-Version` (date, optional) — API version date string (e.g. `2026-02-01`). If omitted, the version pinned to your API key is used.

## Response

### 200

Session extended; a fresh `vk_org_token` cookie is set.

- `refreshed` (boolean, required)

## Errors

### 401 Unauthorized Error

No active session cookie, or the cookie is invalid/expired.

- `error` (string, required) — Short error code.
- `status_code` (integer, required) — HTTP status code.
- `detail` (string, optional) — Human-readable error description.

## Examples

**Response**

```json
{
  "refreshed": true
}
```

**SDK Code**

```python
import requests

url = "https://api.withverifa.com/api/v1/auth/refresh"

response = requests.post(url)

print(response.json())
```

```javascript
const url = 'https://api.withverifa.com/api/v1/auth/refresh';
const options = {method: 'POST'};

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

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.withverifa.com/api/v1/auth/refresh"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.withverifa.com/api/v1/auth/refresh")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.withverifa.com/api/v1/auth/refresh")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.withverifa.com/api/v1/auth/refresh');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.withverifa.com/api/v1/auth/refresh");
var request = new RestRequest(Method.POST);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.withverifa.com/api/v1/auth/refresh")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```