Create a wallet-authorized account session
curl --request POST \
--url https://build.vibechain.com/api/vibemarket2/account/session \
--header 'Content-Type: application/json' \
--header 'Origin: <origin>' \
--data '
{
"address": "<string>",
"nonce": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires": 123,
"signature": "<string>"
}
'import requests
url = "https://build.vibechain.com/api/vibemarket2/account/session"
payload = {
"address": "<string>",
"nonce": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires": 123,
"signature": "<string>"
}
headers = {
"Origin": "<origin>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Origin: '<origin>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
nonce: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
expires: 123,
signature: '<string>'
})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'nonce' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'expires' => 123,
'signature' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://build.vibechain.com/api/vibemarket2/account/session"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"nonce\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires\": 123,\n \"signature\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Origin", "<origin>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://build.vibechain.com/api/vibemarket2/account/session")
.header("Origin", "<origin>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"nonce\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires\": 123,\n \"signature\": \"<string>\"\n}")
.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::Post.new(url)
request["Origin"] = '<origin>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"nonce\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires\": 123,\n \"signature\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"address": "<string>",
"expiresAt": 123,
"token": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Accounts
Create a wallet-authorized account session
Sign the exact marketSessionMessage documented in Authentication and consent. Only the four approved production website origins are accepted; this is not arbitrary third-party login. Expiry is future milliseconds within five minutes, nonce UUID v4. Direct backend returns a token; the first-party website proxy stores vm2-session HttpOnly and strips token from JSON. Maximum body 8192 bytes. Consent lasts up to 30 days and cannot spend or transact.
POST
/
account
/
session
Create a wallet-authorized account session
curl --request POST \
--url https://build.vibechain.com/api/vibemarket2/account/session \
--header 'Content-Type: application/json' \
--header 'Origin: <origin>' \
--data '
{
"address": "<string>",
"nonce": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires": 123,
"signature": "<string>"
}
'import requests
url = "https://build.vibechain.com/api/vibemarket2/account/session"
payload = {
"address": "<string>",
"nonce": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires": 123,
"signature": "<string>"
}
headers = {
"Origin": "<origin>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Origin: '<origin>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
nonce: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
expires: 123,
signature: '<string>'
})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'nonce' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'expires' => 123,
'signature' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://build.vibechain.com/api/vibemarket2/account/session"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"nonce\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires\": 123,\n \"signature\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Origin", "<origin>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://build.vibechain.com/api/vibemarket2/account/session")
.header("Origin", "<origin>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"nonce\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires\": 123,\n \"signature\": \"<string>\"\n}")
.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::Post.new(url)
request["Origin"] = '<origin>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"nonce\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires\": 123,\n \"signature\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"address": "<string>",
"expiresAt": 123,
"token": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}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 Body
application/json
Sign the exact endpoint-specific message. A syntactically valid signature alone is not authorization.
Pattern:
^0x[0-9a-fA-F]{40}$Fresh UUID v4, never reused.
Unix milliseconds; future and no more than five minutes from the server clock.
Pattern:
^0x[0-9a-fA-F]{130}$Available options:
https://vibechain.com, https://www.vibechain.com, https://vibe.market, https://www.vibe.market