Back to DocumentationDocumentation
Data APIs
Mock JSON endpoints for users, products, posts, todos, recipes, and more.
Base URL
https://mockly.meReturns a rich randomly generated user profile.
Example Response
{
"id": "4821",
"name": "Jane Smith",
"username": "janesmith42",
"email": "[email protected]",
"avatar": "https://mockly.me/avatar?name=Jane+Smith",
"age": 34,
"job_title": "Product Manager",
"company": "TechCorp"
}Returns a user profile for a specific ID.
Parameters
| Name | Type | Description |
|---|---|---|
user_id | string | User identifier |
Example Response
{
"id": "4821",
"name": "Jane Smith",
"username": "janesmith42",
"email": "[email protected]",
"avatar": "https://mockly.me/avatar?name=Jane+Smith",
"age": 34,
"job_title": "Product Manager",
"company": "TechCorp"
}Returns a minimal user object with core fields only.
Example Response
{
"id": "1",
"name": "Jane Doe",
"email": "[email protected]"
}Mock login endpoint that accepts any credentials and returns a token.
https://mockly.me/auth/loginParameters
| Name | Type | Description |
|---|---|---|
email | string | Body param — any email |
password | string | Body param — any password |
Example Response
{
"token": "mock-jwt-token",
"user": {
"id": "1",
"email": "[email protected]"
}
}