Log out
curl --request POST \
--url https://api.pid.peridotvault.com/v1/auth/logoutconst options = {method: 'POST'};
fetch('https://api.pid.peridotvault.com/v1/auth/logout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/auth/logout"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/auth/logout"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}auth
Log out
Revokes the current refresh token and clears both session cookies. Idempotent — safe to call when already logged out.
POST
/
auth
/
logout
Log out
curl --request POST \
--url https://api.pid.peridotvault.com/v1/auth/logoutconst options = {method: 'POST'};
fetch('https://api.pid.peridotvault.com/v1/auth/logout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/auth/logout"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/auth/logout"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Response
Session ended and cookies cleared