Introduction
User Profiles extend the basic User object with additional information like bio, social links, preferences, detailed statistics, and activity history. Profiles are used to display rich user information on the platform.The backend uses the
/users endpoint for profile operations. The /profiles endpoint mentioned in the frontend is mapped to /users automatically.UserProfile Object
The UserProfile object contains comprehensive user information:Unique identifier for the user
User’s first name
User’s last name
Unique username
User’s email address
User’s role (administrador, editor, autor, comentador)
URL to user’s avatar image
URL to user’s profile cover image
User’s biography or description
User’s personal website URL
User’s location (e.g., “Madrid, España”)
User’s phone number
User’s birth date in ISO 8601 format
Account status:
active, inactive, or suspendedWhether the user’s account is verified
Current online status:
online, offline, or awayISO 8601 timestamp of last login
ISO 8601 timestamp of account creation
ISO 8601 timestamp of last profile update
User preferences (see UserPreferences section)
Array of recent user activities (see UserActivity section)
Get User Profile
Retrieve a complete user profile by user ID.Path Parameters
The unique identifier of the user
Example Request
Example Response
Update User Profile
Update a user’s profile information including bio, location, website, and social links.Path Parameters
The unique identifier of the user
Body Parameters
User’s first name
User’s last name
User’s email address
User biography or description
User’s location
User’s personal website URL
URL to user’s avatar image
Social media links object with keys: twitter, linkedin, github, instagram
Example Request
Example Response
Returns the updated UserProfile object.Upload Avatar
Upload a new avatar image for a user.Path Parameters
The unique identifier of the user
Body Parameters
Image file to upload (JPEG, PNG, GIF). Maximum size: 5MB
Example Request
Example Response
The response format may vary. The URL can be found in
avatar, avatarUrl, secure_url, or secureUrl fields.Upload Cover Image
Upload a new cover image for a user’s profile.Path Parameters
The unique identifier of the user
Body Parameters
Image file to upload (JPEG, PNG, GIF). Maximum size: 10MB. Recommended dimensions: 1200x400px
Example Request
Example Response
Search Users
Search for users by name, username, or email.This is a frontend-only endpoint that uses local search. For production, implement server-side search.
Query Parameters
Search query (matches firstName, lastName, username, or email)
Page number for pagination
Number of results per page
Example Request
Example Response
Get Profile Activity
Retrieve a user’s recent activity history.Path Parameters
The unique identifier of the user
Query Parameters
Page number for pagination
Number of activities per page
Filter by activity type:
all, post_created, post_published, comment_added, profile_updated, follow, like_givenExample Request
Example Response
Get Profile Statistics
Retrieve detailed statistics for a user’s profile.Path Parameters
The unique identifier of the user
Query Parameters
Time range for statistics:
7d, 30d, or 90dExample Request
Example Response
User Preferences Object
Enable email notifications
Enable push notifications
Allow marketing emails
UI theme:
light, dark, or systemPreferred language code (e.g., “es”, “en”)
User’s timezone (e.g., “Europe/Madrid”)
Preferred editor:
markdown, wysiwyg, or hybridEnable auto-save for drafts
Display social links on profile
Display email address on profile
Profile visibility:
public, users, followers, or privateWho can send direct messages:
everyone, followers, or noneShow online/offline status
Allow analytics tracking
Allow search engines to index posts
Allow comments on posts
Require comment moderation
User Statistics Object
Total number of posts created
Total number of published posts
Total views across all content
Total likes received
Total comments received
Number of followers
Number of users following
Total likes received on content
Total comments received
Number of profile page views
Percentage growth in posts (optional)
Percentage growth in views (optional)
Percentage growth in likes (optional)
Percentage growth in followers (optional)
User Activity Object
Unique activity identifier
Activity type:
post_created, post_published, comment_added, profile_updated, follow, or like_givenHuman-readable activity description
Target of the activity (e.g., post title, user name)
Additional content (e.g., comment text)
ISO 8601 timestamp of activity
Additional metadata about the activity
Additional Operations
Check Username Availability
Check Email Availability
Change Password
Export User Data
Request Account Deletion
Related Resources
Users Overview
Learn about the User object and authentication
User CRUD Operations
Manage users, roles, and permissions