curl --request DELETE \
--url https://api.mountthor.com/v1/admin/sessions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountthor.com/v1/admin/sessions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountthor.com/v1/admin/sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountthor.com/v1/admin/sessions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mountthor.com/v1/admin/sessions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.mountthor.com/v1/admin/sessions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountthor.com/v1/admin/sessions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"actor_type": "api-key",
"created_at": "2026-05-25T17:30:00Z",
"expires_at": "2026-05-25T17:45:00Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scopes": [
"compute:read",
"compute:write"
],
"status": "active",
"token_fingerprint": "sha256:0123456789abcdef",
"last_used_at": "2026-05-25T17:42:00Z"
}"<string>"Revoke Session
Revokes one active session by id within the requesting actor scope. Returns 404 when the session is absent or belongs to another actor.
curl --request DELETE \
--url https://api.mountthor.com/v1/admin/sessions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountthor.com/v1/admin/sessions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountthor.com/v1/admin/sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountthor.com/v1/admin/sessions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mountthor.com/v1/admin/sessions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.mountthor.com/v1/admin/sessions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountthor.com/v1/admin/sessions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"actor_type": "api-key",
"created_at": "2026-05-25T17:30:00Z",
"expires_at": "2026-05-25T17:45:00Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scopes": [
"compute:read",
"compute:write"
],
"status": "active",
"token_fingerprint": "sha256:0123456789abcdef",
"last_used_at": "2026-05-25T17:42:00Z"
}"<string>"Authorizations
Bearer scheme name used by typed customer admin operations.
Path Parameters
Session UUID
Response
Session revoked
One row of GET /v1/admin/sessions. Returns metadata only — never
the session token, the SHA-256 digest, or any field that would let
a reader re-use the session.
human, workload, or api-key. Matches the underlying actor
that minted the session.
"api-key"
RFC 3339 timestamp when the session was created.
"2026-05-25T17:30:00Z"
RFC 3339 timestamp when the session expires.
"2026-05-25T17:45:00Z"
Stable UUID for the session.
Scopes granted to the session.
["compute:read", "compute:write"]
Session lifecycle state. Active sessions can authenticate compute calls.
"active"
sha256: prefix + the first 16 hex digits of the token digest.
Safe for display; not a credential.
"sha256:0123456789abcdef"
Last successful use timestamp, if observed.
"2026-05-25T17:42:00Z"