Revoke this browser account session
curl --request DELETE \
--url https://build.vibechain.com/api/vibemarket2/account/session \
--header 'Authorization: Bearer <token>' \
--header 'Origin: <origin>'import requests
url = "https://build.vibechain.com/api/vibemarket2/account/session"
headers = {
"Origin": "<origin>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Origin: '<origin>', Authorization: 'Bearer <token>'}
};
fetch('https://build.vibechain.com/api/vibemarket2/account/session', 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://build.vibechain.com/api/vibemarket2/account/session",
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>",
"Origin: <origin>"
],
]);
$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://build.vibechain.com/api/vibemarket2/account/session"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Origin", "<origin>")
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://build.vibechain.com/api/vibemarket2/account/session")
.header("Origin", "<origin>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/vibemarket2/account/session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Origin"] = '<origin>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Accounts
Revoke this browser account session
Revoke this token for its bound origin. Missing token is idempotent. The website proxy also clears its session cookies. Does not delete the hosted account.
DELETE
/
account
/
session
Revoke this browser account session
curl --request DELETE \
--url https://build.vibechain.com/api/vibemarket2/account/session \
--header 'Authorization: Bearer <token>' \
--header 'Origin: <origin>'import requests
url = "https://build.vibechain.com/api/vibemarket2/account/session"
headers = {
"Origin": "<origin>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Origin: '<origin>', Authorization: 'Bearer <token>'}
};
fetch('https://build.vibechain.com/api/vibemarket2/account/session', 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://build.vibechain.com/api/vibemarket2/account/session",
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>",
"Origin: <origin>"
],
]);
$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://build.vibechain.com/api/vibemarket2/account/session"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Origin", "<origin>")
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://build.vibechain.com/api/vibemarket2/account/session")
.header("Origin", "<origin>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/vibemarket2/account/session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Origin"] = '<origin>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Origin-bound account token. Also send Origin and X-VM2-Wallet. First-party website proxies use the HttpOnly vm2-session cookie; arbitrary third-party origins are not supported.
Headers
Must match the approved origin in the signed consent.
Available options:
https://vibechain.com, https://www.vibechain.com, https://vibe.market, https://www.vibe.market Response
Successful response.