This endpoint retrieves a user’s public profile by their numeric ID. Given a valid integer user ID, it returns the matching account’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pvnm4/Social-Media-Backend/llms.txt
Use this file to discover all available pages before exploring further.
id, email, and created_at timestamp. No authentication token is required to look up a user profile. If no user exists for the provided ID, the endpoint returns a 404 Not Found error.
Endpoint
Path Parameters
The unique numeric ID of the user to retrieve. This corresponds to the auto-generated primary key assigned when the account was created. Must be a positive integer — passing a non-integer value will result in a
422 Unprocessable Entity response.Response
A successful request returns HTTP 200 OK with the user’s profile.The user’s unique auto-generated integer ID, as assigned by the database at registration time.
The email address associated with the user’s account.
ISO 8601 timestamp (with timezone) indicating when the account was originally created. Example:
"2024-01-15T10:30:00.000000+00:00".Error Responses
| Status Code | Detail Message | Cause |
|---|---|---|
404 Not Found | "User with id: {id} does not exists" | No user record was found in the database for the given ID. |
422 Unprocessable Entity | (Pydantic validation error) | The id path parameter could not be parsed as an integer. |