Users
Get a user by ID
Retrieves a user by the `id` parameter. Only active users belonging to the authenticated group or its descendant groups are returned.
GET
bearerAuthheader
AuthorizationBearer <token>API key sent as Authorization: Bearer <API_KEY>.
id*stringThe ID of the user to retrieve
X-API-KEY*stringThe API key used to authenticate the request
User retrieved successfully
application/json- response
_id?stringUser ID
name?stringThe user's first name
lastname?stringThe user's last name
email?stringThe user's email address
Format
emailphone_work?|The user's work phone number
firstLogin?stringThe date of the user's first login
Format
date-timegroup?stringThe ID of the group to which the user belongs
roles?array<string>The roles assigned to the user
curl -X GET 'https://api.getventia.com/api/v1.0/users/string' \ -H 'X-API-KEY: string'{ "_id": "64b7654c3f3ae9b9d1e7c5d8", "name": "John", "lastname": "Doe", "email": "john.doe@example.com", "phone_work": "+1234567890", "firstLogin": "2024-01-01T12:00:00Z", "group": "64b7654c3f3ae9b9d1e7c5d7", "roles": [ "user", "super" ]}