π€ User APIs_
The User APIs provide access to public user profile information and achievements. All endpoints respect user privacy settings and only return data for users with public profiles.
Overview
The User APIs provide access to public user profile information and achievements. All endpoints respect user privacy settings and only return data for users with public profiles.
Endpoints
Get Public User Profile
Endpoint: GET /users/public/{userId}
Retrieves public information about a user profile. Only works for users with public profiles.
Parameters:
userId(path) - The user's ID
Response:
<code>{
"success": true,
"user": {
"id": 123,
"name": "John Doe",
"avatar_url": "https://example.com/avatar.jpg",
"company": {
"id": 456,
"name": "Example Company",
"role": "Driver"
},
"roles": [
{
"id": 1,
"name": "Member",
"hierarchy": 1
}
],
"created_at": "2023-01-01T00:00:00Z"
}
}
</code>Error Responses:
404- User not found403- Profile is private
Get User Achievements
Endpoint: GET /users/{userId}/achievements
Retrieves all achievements unlocked by a specific user. Only works for users with public profiles.
Parameters:
userId(path) - The user's ID
Response:
<code>{
"success": true,
"achievements": [
{
"achievement": {
"id": 1,
"name": "First Steps",
"description": "Complete your first drive",
"icon": "first_steps.png",
"type": "driving",
"tier": 1,
"points": 10
},
"tier": 1,
"unlocked_at": "2023-01-01T00:00:00Z"
}
]
}
</code>Error Responses:
404- User not found403- Profile is private
β API Status: Operational |
β Version: v2.1.0 |
β Last updated: Sep 2, 2025
dbus-api:~ $
API Documentation: All API documentation is provided in English for consistency and technical accuracy. This approach saves valuable work for translators.