Initialize client session
POST
/initialize
const url = 'http://localhost:3001/initialize';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"first_name":"example","last_name":"example","message":"example","signature":"example","username":"example","wallet_address":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/initialize \ --header 'Content-Type: application/json' \ --data '{ "first_name": "example", "last_name": "example", "message": "example", "signature": "example", "username": "example", "wallet_address": "example" }'Create a new client session with wallet-based authentication
Request Bodyrequired
Section titled “Request Bodyrequired”Initialize request with wallet signature
Media typeapplication/json
object
first_name
First name (for new users)
string
last_name
Last name (for new users)
string
message
Message that was signed
string
signature
Optional signature for wallet verification
string
username
Display username (optional for returning users)
string
wallet_address
Ethereum wallet address (0x…)
string
Examplegenerated
{ "first_name": "example", "last_name": "example", "message": "example", "signature": "example", "username": "example", "wallet_address": "example"}Responses
Section titled “Responses”Session initialized successfully
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Invalid request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized - invalid signature
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}