Get user
Returns one user by id or identifier.
This endpoint returns a single user from your project by id or identifier.
It’s possible to fetch anonymous, as well as identified users with this endpoint.
Bearer token for a project API key. This endpoint returns data for that project only.
Example: Bearer vem_abcdefghijklmnopqrstuvwxyz123456
Query Parameters
Vemetric's internal user ID. You have to either provide id or identifier.
Example: 123
identifier
string
optional
User identifier value. You have to either provide identifier or id.
Example: your-user-id
Responses
200 Success
application/json
user
Description
Resolved user row. id
Description
Vemetric's internal user ID.
identifier
Description
User identifier if available (the value you provided to identify the user).
displayName
Description
User display name if available.
country
Description
ISO-3166 alpha-2 country code, or null when unknown.
city
Description
User city, or null when unknown.
lastSeenAt
Description
UTC timestamp of the latest activity for this user within the selected period. Type
string<pattern:^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$> | null
Example
"2026-01-19T12:30:00Z"
avatarUrl
Description
Avatar URL if available. Example
"https://cdn.example.com/avatar.png"
data
Description
Data attributes collected for this user. Example
{"plan":"pro","company":"Vemetric"}
anonymous
Description
Whether the user is anonymous (not identified).
400 Bad request - invalid request payload or parameters
application/json
error
Description
Validation error details. code
Description
Machine-readable validation error code.
message
Description
Human-readable validation summary.
details
Description
Per-field validation issues.
Show nested properties (2)
field
Description
Path to the invalid request field.
message
Description
Validation error message for the field.
401 Unauthorized - invalid or revoked API key
application/json
error
Description
Error details. code
Description
Machine-readable error code.
message
Description
Human-readable error message.
404 User was not found
application/json
error
Description
Error details. code
Description
Machine-readable error code.
message
Description
Human-readable error message.
429 Rate limit exceeded
application/json
error
Description
Error details. code
Description
Machine-readable error code. Type
"RATE_LIMIT_EXCEEDED"
message
Description
Human-readable error message.
500 Unexpected internal error
application/json
error
Description
Error details. code
Description
Machine-readable error code. Type
"INTERNAL_SERVER_ERROR"
message
Description
Human-readable error message.