MemoryKit

Upsert User

Create or update a user. Upsert is idempotent.

Request body

FieldTypeRequiredDescription
idstringYesYour app's user ID
namestringNoUser's display name
emailstringNoUser's email
metadataobjectNoArbitrary key-value pairs

Response

{
  "id": "user_123",
  "name": "Alice",
  "email": "alice@example.com",
  "metadata": { "plan": "pro" },
  "created_at": "2025-01-15T10:30:00Z"
}

On this page