Complete reference for MockBoost REST API endpoints and request/response formats.
https://api.mockboost.com/v1All API requests should be made to this base URL followed by the specific endpoint path.
Note: Configure NEXT_PUBLIC_API_URL environment variable for your deployment.
MockBoost uses HTTP-only cookies for session management. After logging in, your session cookie is automatically included in requests.
// Login request
POST /auth/login
{ "email": "user@example.com", "password": "yourpassword" }
API key authentication for server-to-server requests will be available in a future update.
/workspaces/:workspaceId/:pathFetch mock data from a specific endpoint in your workspace.
workspaceId - Your workspace IDpath - The endpoint path (e.g., users, products)page - Page number for paginationlimit - Number of items per pagesort - Field to sort byorder - Sort order (asc/desc)curl -X GET \ 'https://api.mockboost.com/v1/workspaces/abc123/users?page=1&limit=10' \ --cookie 'session=your-session-cookie'
{
"data": [
{
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"role": "developer"
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 50
}
}/endpointsCreate a new mock endpoint in your workspace.
{
"name": "Users API",
"path": "users",
"method": "GET",
"statusCode": 200,
"responseData": {
"users": [
{
"id": 1,
"name": "John Doe"
}
]
},
"workspaceId": "abc123"
}{
"id": "endpoint-xyz789",
"name": "Users API",
"path": "users",
"method": "GET",
"statusCode": 200,
"url": "https://api.mockboost.com/v1/workspaces/abc123/users",
"createdAt": "2026-01-22T00:00:00.000Z"
}/endpoints/:endpointIdUpdate an existing endpoint's configuration or data.
{
"statusCode": 404,
"responseData": {
"error": "Not Found"
}
}{
"id": "endpoint-xyz789",
"statusCode": 404,
"updatedAt": "2026-01-22T01:00:00.000Z"
}/endpoints/:endpointIdDelete an endpoint permanently.
No response body returned.
/endpoints/:endpointId/logsRetrieve request logs for a specific endpoint.
{
"logs": [
{
"id": "log-123",
"method": "GET",
"path": "/users",
"statusCode": 200,
"ip": "192.168.1.1",
"userAgent": "Mozilla/5.0...",
"timestamp": "2026-01-22T00:30:00.000Z"
}
],
"total": 100
}400 Bad RequestInvalid request parameters or malformed JSON
{ "error": "Invalid request body" }401 UnauthorizedMissing or invalid authentication
{ "error": "Unauthorized" }404 Not FoundEndpoint or resource not found
{ "error": "Endpoint not found" }500 Internal Server ErrorServer error - contact support
{ "error": "Internal server error" }Monthly API request limits vary by plan. When you exceed your limit, the runtime returns 429 Too Many Requests with a JSON body explaining the limit.
429 Response (limit reached)
HTTP 429 Too Many Requests
{ "code": "REQUEST_LIMIT_REACHED", "message": "Monthly API request limit reached. Upgrade your plan or wait until next month.", "current": 5000, "limit": 5000 }
Check your usage in the Dashboard. Limits reset at the start of each calendar month.