Skip to content

Initialize client session

POST
/initialize
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

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"
}

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
}