Refresh an expired session
Exchanges the current trepa-refresh cookie for a fresh trepa-token and a new trepa-refresh.
POST
/
auth
/
refresh
Refresh an expired session
curl --request POST \
--url https://api.trepa.app/auth/refreshconst options = {method: 'POST'};
fetch('https://api.trepa.app/auth/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST'};
fetch('https://api.trepa.app/auth/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trepa.app/auth/refresh"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trepa.app/auth/refresh"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Response
The access token has been refreshed successfully.
Last modified on August 12, 2026
⌘I
Refresh an expired session
curl --request POST \
--url https://api.trepa.app/auth/refreshconst options = {method: 'POST'};
fetch('https://api.trepa.app/auth/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST'};
fetch('https://api.trepa.app/auth/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trepa.app/auth/refresh"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trepa.app/auth/refresh"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}