For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

User authentication and management

Sync authentication token

post

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

post/auth/sync
POST /api/auth/sync HTTP/1.1
Authorization: text
Accept: */*
{}

Get user by ID

get
Query parameters
userIdstringRequired
Responses
200

User found

application/json
idstringOptional
walletAddressstring · nullableOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
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"
}

Create or retrieve a user

post
Body
dynamicUserIdstringRequired
walletAddressstring · nullableOptional
Responses
200

Existing user returned

application/json
idstringOptional
walletAddressstring · nullableOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
isNewUserbooleanOptional
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