API Documentation
Learn how to consume your WonderIpsum mock API endpoints from any HTTP client.
What is WonderIpsum?
WonderIpsum generates realistic, domain-aware mock data and images for your demos and prototypes. Each resource you create becomes a live REST API endpoint that you can consume from your frontend, Postman, or any HTTP client.
Your API URL
Copy this URL from your resource page. The resource page shows the exact endpoint for each resource.
Image Endpoint
Returns a random image from your collection. Use directly in <img src="..."> tags. The browser displays the image, not JSON.
Authentication
No Authentication (Default)
By default, your API endpoint is open to the public. Anyone with the URL can access your mock data.
Pro+ Domain Whitelist
Restrict your API to specific domains. Requests from unauthorized origins receive a 403 Forbidden response. Ideal for image endpoints (<img> tags can't send auth headers).
Configure allowed domains on your resource page under API Security.
Origin: https://evil.com → 403 Forbidden
Pro+ Bearer Token
Require a token in the Authorization header. Requests without valid tokens receive a 401 Unauthorized response. Available for schema endpoints only (not images).
Rate Limits
All API endpoints are rate limited based on your subscription tier. Limits reset at the start of each calendar month.
| Tier | Monthly Requests | Overage |
|---|---|---|
| Maker ($12/mo) | 1,000 | Upgrade for more |
| Pro ($39/mo) | 10,000 | Upgrade for more |
| Enterprise ($99/mo) | 50,000 | Custom |
When you exceed your limit, the API returns 429 Too Many Requests with a retry_after field indicating when the limit resets.
Endpoints
Image Resources
Returns a random image (binary, image/jpeg). Use in <img src="...">. The browser displays the image directly.
Returns all images as a JSON array with metadata.
Schema Resources
Schema endpoints return your generated mock data. The HTTP methods available depend on your tier and resource configuration.
Returns all generated records as a JSON array.
Returns mock data (simulates creating a resource).
Returns mock data (simulates updating a specific record by ID).
Returns mock data (simulates deleting a specific record by ID).
Pagination & Sorting
All schema GET endpoints support query parameters for controlling the response.
Pagination
| Parameter | Default | Description |
|---|---|---|
| page | 1 | Page number |
| per_page | 20 | Records per page (max 100) |
Sorting
| Parameter | Default | Description |
|---|---|---|
| sort_by | — | Field name to sort by |
| sort_order | asc | asc or desc |
Code Examples
cURL
curl https://wonderipsum.com/api/myteam/01kr.../products
# GET with bearer token
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://wonderipsum.com/api/myteam/01kr.../products
# Use image in HTML
<img src="https://wonderipsum.com/api/myteam/01kr.../photos/image" />
JavaScript (fetch)
const data = await res.json();
console.log(data); // Array of objects
// With pagination
const res2 = await fetch('https://wonderipsum.com/api/.../products?page=2&per_page=10');
React
const [data, setData] = useState([]);
useEffect(() => {
fetch('https://wonderipsum.com/api/.../products')
.then(r => r.json())
.then(setData);
}, []);
return <ul>{data.map(item => <li>{item.name}</li>)}</ul>;
}
Python
r = requests.get('https://wonderipsum.com/api/myteam/01kr.../products')
data = r.json()
for item in data:
print(item['name'])
Error Codes
| Status | Meaning | When |
|---|---|---|
| 200 | OK | Request succeeded |
| 401 | Unauthorized | Missing or invalid bearer token |
| 403 | Forbidden | Domain not whitelisted |
| 404 | Not Found | Resource doesn't exist |
| 422 | Unprocessable | Invalid parameters |
| 429 | Rate Limited | Monthly request quota exceeded |
Tier Comparison
| Feature | Maker ($12/mo) | Pro ($39/mo) | Enterprise ($99/mo) |
|---|---|---|---|
| Monthly API requests | 1,000 | 10,000 | 50,000 |
| Schema: GET | ✅ | ✅ | ✅ |
| Schema: POST/PUT/DELETE | — | ✅ | ✅ |
| Bearer token auth | — | ✅ | ✅ |
| Domain whitelist | ✅ | ✅ | ✅ |
| Images per resource | 50 | 500 | Unlimited |
| Schema nesting depth | 2 | 5 | 10 |
| Code export | ✅ | ✅ | ✅ |