Authentication
User authentication and management
Syncs a Privy access token with the MeshMap auth service to obtain a session token.
Header parameters
AuthorizationstringRequired
Bearer token (Privy access token)
Responses
200
Token synced successfully
application/json
objectOptional
Session token response from auth service
401
Missing or invalid token
application/json
500
Auth service not configured
application/json
503
Auth service unavailable
application/json
post/auth/sync
POST /api/auth/sync HTTP/1.1
Authorization: text
Accept: */*
{}Query parameters
userIdstringRequired
Responses
200
User found
application/json
idstringOptional
walletAddressstring · nullableOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
400
Bad request
application/json
404
Resource not found
application/json
500
Internal server error
application/json
get/auth/user
GET /api/auth/user?userId=text HTTP/1.1
Accept: */*
{
"id": "text",
"walletAddress": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Body
dynamicUserIdstringRequired
walletAddressstring · nullableOptional
Responses
200
Existing user returned
application/json
idstringOptional
walletAddressstring · nullableOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
isNewUserbooleanOptional
201
New user created
application/json
400
Bad request
application/json
500
Internal server error
application/json
post/auth/user
POST /api/auth/user HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"dynamicUserId": "text",
"walletAddress": "text"
}{
"id": "text",
"walletAddress": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"isNewUser": true
}Last updated