Authentication

User authentication and management

Get user by ID

get
Query parameters
userIdstringRequired
Responses
200

User found

application/json
get
GET /api/auth/user?userId=text HTTP/1.1
Host: 
Accept: */*
{
  "id": "text",
  "walletAddress": "text",
  "createdAt": "2025-10-09T00:12:28.327Z",
  "updatedAt": "2025-10-09T00:12:28.327Z"
}

Create or retrieve a user

post
Body
dynamicUserIdstringRequired
walletAddressstring | nullableOptional
Responses
200

Existing user returned

application/json
Responseall of
post
POST /api/auth/user HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "dynamicUserId": "text",
  "walletAddress": "text"
}
{
  "id": "text",
  "walletAddress": "text",
  "createdAt": "2025-10-09T00:12:28.327Z",
  "updatedAt": "2025-10-09T00:12:28.327Z",
  "isNewUser": true
}