Users
Get User
Retrieve detailed information about a specific student ambassador
GET
Retrieve detailed information about a specific student ambassador by their unique ID. Use this endpoint when you need complete details about a single user, such as their profile information, program enrollment, and activity statistics.
Overview
The Get User endpoint returns comprehensive information about a single student ambassador. This is useful for:- Displaying user profile pages
- Showing detailed ambassador information
- Fetching user data before making updates
- Building user detail views in dashboards
Authentication
This endpoint requires authentication using a Bearer token in the Authorization header:Path Parameters
string
required
The unique identifier of the user (student ambassador) you want to retrieve. This ID is returned when you list users or create a new user.Example:
user_123abcRequest Example
Response
The API returns a detailed user object containing all available information about the student ambassador:string
required
Unique identifier for the user.
string
required
First name of the student ambassador.
string
required
Last name of the student ambassador.
string
required
Email address of the student ambassador.
string
required
ID of the program this user belongs to.
string
URL to the user’s profile picture, if available.
string
required
ISO 8601 timestamp of when the user was created.
string
ISO 8601 timestamp of when the user was last updated.
object
Additional metadata associated with the user. This can include custom fields you’ve added.
Response Example
Error Responses
object
Unauthorized - Invalid or missing API key
object
Not Found - The user with the specified ID does not exist
Use Cases
Displaying User Profile
Fetch user details to display in a profile page:Validating User Existence
Before performing operations on a user, verify they exist:Building User Detail Components
Use this endpoint to populate user detail views:Best Practices
- Cache user data - User information doesn’t change frequently, so cache responses to reduce API calls
- Handle 404 errors - Always check if the user exists before displaying their information
- Validate user IDs - Ensure the ID format is correct before making the request
- Use error boundaries - Implement proper error handling in your UI components