GET

Get a user

One end user, by their usr_… id or by your own id for them.

View as Markdown
GEThttps://api.muzekit.com/v1/users/{id}
curl https://api.muzekit.com/v1/users/user_42 \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"

{id} is the user's usr_… id or the id your server gave them (external_id), URL-encoded. A value that reads as a usr_… id is looked up as one first; if no user has that id, it is tried as your own id. The user must be in this key's environment: a Test key doesn't see Live users. A user that isn't there answers 404 user_not_found.

Examples

Look a user up by your own id

Your ids may hold characters that aren't safe in a path, such as | or @. Encode them.

curl "https://api.muzekit.com/v1/users/$(jq -rn --arg id 'auth0|5f1c' '$id|@uri')" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"

Reading a user never creates one and doesn't change last_active_at. To create or update a user, use Create or update a user.

Response

JSON
{
  "object": "user",
  "id": "usr_8fK2mQ1xZpR",
  "external_id": "user_42",
  "name": "Ada",
  "email": "[email protected]",
  "locale": "en",
  "metadata": { "plan": "pro" },
  "last_active_at": "2026-10-16T21:35:00.000Z",
  "created_at": "2026-10-02T09:12:44.000Z"
}