REST Endpoint

/users
Mock User Data Endpoint

Generate realistic user profiles with names, emails, avatars, and more. Perfect for testing user lists, profiles, and authentication flows.

GET/api/your-project/users
Parameters

Request Parameters

NameTypeRequiredDescription
limitnumberOptionalNumber of users to return (default: 10, max: 100)
pagenumberOptionalPage number for pagination (default: 1)
includestringOptionalComma-separated fields to include (e.g., 'avatar,address')
Response

Response Schema

Response Fields

idstring (UUID)

Unique identifier for the user

firstNamestring

User's first name

lastNamestring

User's last name

emailstring

User's email address

avatarstring (URL)

URL to user's avatar image

createdAtstring (ISO date)

User creation timestamp

Example Response

{
  "data": [
    {
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john.doe@example.com",
      "avatar": "https://avatars.example.com/u/12345",
      "createdAt": "2024-01-15T10:30:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 100
  }
}
Integration

Code Examples

Copy and paste these examples to get started quickly

Fetch APIJavaScript
const response = await fetch(
  'https://mngoapi.laclass.dev/api/your-project/users?limit=10'
);
const users = await response.json();
console.log(users.data);
cURLcURL
curl -X GET "https://mngoapi.laclass.dev/api/your-project/users?limit=10" \
  -H "Content-Type: application/json"
FAQ

Common Questions

Related Endpoints

Ready to build?

Create your mock API with this endpoint and start testing immediately.