Person Details
GET /api/users/{id}
Returns one stored person record. A valid MongoDB ObjectID is looked up as _id; other values are looked up as usernames.
Parameters
| Parameter | Type | Description |
|---|---|---|
id (path) |
string | Required person ObjectID or username. |
apikey |
string | API key, if required. Alternatively use the X-API-Key header. |
columns[] |
array | Optional stored fields to include. Adds id as a string; _id is retained. |
Example Request
1 | |
Example Response
1 2 3 4 5 6 7 8 9 10 11 12 | |
Response Behavior
data is a single object, not an array. Without columns[], it contains the complete stored person document, including _id in Extended JSON form; a separate string id is not automatically added. With columns[], only the projection's requested fields plus _id and id are returned. Missing stored fields may be omitted.
count is 1. limit and offset do not slice this object. full, json, and filter are not supported.
Errors
Unknown ID or username:
1 2 3 4 5 6 | |