curl --request GET \
--url https://api.vane.xyz/api/auth/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vane.xyz/api/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vane.xyz/api/auth/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"username": null,
"role": "user",
"address": "0xa1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
}{
"message": "Access token not found in cookies or authorization header.",
"error": "Unauthorized",
"statusCode": 401
}Get current user
Returns the authenticated user as {id, username, role, address}, with address lowercased. Requires a JWT access token, sent as Authorization: Bearer <accessToken> or as the access_token cookie. A tenant API key alone returns 401 “Access token not found in cookies or authorization header.” because the tenant key never identifies a user.
curl --request GET \
--url https://api.vane.xyz/api/auth/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vane.xyz/api/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vane.xyz/api/auth/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"username": null,
"role": "user",
"address": "0xa1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
}{
"message": "Access token not found in cookies or authorization header.",
"error": "Unauthorized",
"statusCode": 401
}Authorizations
JWT from SIWX wallet-signature authentication, sent as Authorization: Bearer <token> or automatically through HttpOnly cookies in browsers. Access tokens last 15 minutes and refresh tokens last 30 days.
Response
The authenticated user.
The authenticated user.
User id. Appears as userId on orders created while signed in.
Username for the account; may be null.
User role. Standard accounts have role user.
Wallet address the account was created with, returned lowercased (not EIP-55 checksummed).

