MemoryKit

Get User

Retrieve an end-user by their external ID.

GET/v1/users/{userId}

Path parameters

userIdstringrequired

The user's external ID.

Response

Returns 200 OK with the user object.

idstring

The user ID.

emailstring

User's email.

namestring

User's display name.

metadataobject

Arbitrary key-value pairs.

created_atstring

ISO 8601 creation timestamp.

updated_atstring

ISO 8601 last update timestamp.

Example response
{
  "id": "user_123",
  "email": "alice@example.com",
  "name": "Alice",
  "metadata": { "plan": "pro" },
  "created_at": "2025-01-10T08:00:00Z",
  "updated_at": "2025-01-15T12:00:00Z"
}
const user = await mk.users.get("user_123");
Edit on GitHub

On this page