Skip to main content
Mock API Builder
LearnAboutContact
Learning Center/FAQ & Support/Common Questions
FAQ

Frequently Asked Questions

Quick answers to common questions about Mock API Builder. Find solutions to the most frequently asked questions from our community.

Can't find what you're looking for?

Use the search function or browse through the categories below. Still need help? Check our Getting Help page for support options.

Browse by Category

Getting Started

Account setup, project creation, and basic usage

Data & Schemas

Schema definition, data generation, and customization

API Features

Endpoints, methods, authentication, and responses

Security & Limits

Authentication, rate limiting, and usage quotas

Getting Started

Do I need to create an account to use Mock API Builder?

Account is optional but recommended. You have two ways to use the platform:

  • Guest Mode: Create projects instantly without an account. Projects expire after 24 hours.
  • Free Account: Save projects permanently, access them from any device, and use advanced features like request logging.

Learn more about Guest Mode or Create an Account.

How do I create my first mock API?

Creating your first API is easy:

  1. Log in to your account and go to the Dashboard
  2. Click the "Create Project" button
  3. Give your project a name and description
  4. Define your data schema using the schema editor
  5. Configure your endpoints (GET, POST, PUT, DELETE)
  6. Start using your API with the generated URL

Check out our Quick Start Guide for detailed step-by-step instructions.

Can I import an existing API specification?

Yes! Mock API Builder supports importing OpenAPI (Swagger) specifications in JSON or YAML format. You can:

  • Upload an OpenAPI 3.0+ specification file
  • Paste the specification content directly
  • Import from a URL pointing to your spec

The system will automatically parse your spec and create corresponding endpoints and schemas. Learn more in our OpenAPI Import Guide.

What's the difference between a project and an endpoint?
Project: A container for your entire API. Think of it as your application (e.g., "Todo App", "E-commerce API"). Each project has its own base URL and settings.
Endpoint: A specific API route within your project (e.g., /users, /posts). Each endpoint can support different HTTP methods (GET, POST, etc.).

Example: Project "Blog API" might have endpoints like /posts, /comments, and /authors.

How long do guest projects last?

Guest projects expire exactly 24 hours after they are created. A countdown banner on the project dashboard shows the remaining time. Once expired, the project and all its data are permanently deleted.

Can I save a guest project to my account?

Yes! You can convert a guest project to a permanent one by clicking "Save Project" in the countdown banner. This will prompt you to create an account (or log in), and your project will be preserved permanently.

How can I collaborate with my team?

You have two main options for collaboration:

  • Project Sharing: Share individual projects via a public or private link. Perfect for quick feedback.
  • Workspaces (Coming Soon): A dedicated space for your team to manage multiple projects with role-based permissions (Owner, Editor, Viewer).

Check out our Sharing Guide and Workspaces Preview.

Data & Schemas

How does data generation work?

Mock API Builder uses Faker.js to generate realistic mock data based on your schema. When you define a field type, the system automatically generates appropriate data:

Field TypeExample Data
internet.emailjohn.doe@example.com
person.fullNameJane Smith
lorem.sentenceLorem ipsum dolor sit amet.
datatype.number42, 1337, 999

See our Mock Data Generation guide for all available data types and options.

Can I use custom static data instead of generated data?

Yes! You have several options for data:

  • Static Values: Use literal values in your schema (e.g., "status": "active")
  • Enum Values: Define a list of possible values with helpers.arrayElement
  • Seeded Data: Use a seed value to generate consistent data across requests
  • Custom JSON: Upload your own JSON data file for complete control

Learn more about data customization in our Schema Design Guide.

How many records can my API return?

By default, list endpoints generate and return 10 records. You can control this with query parameters:

bash

Limits: Maximum 100 records per request to ensure good performance. Use pagination for larger datasets.

Is the generated data persistent?

It depends on your configuration.

  • Default Behavior: Data is generated on-the-fly and is not persistent. POST/DELETE requests simulate success but don't change data.
  • Stateful Mocking: You can enable Stateful Mocking to make your API remember changes (creates, updates, deletes) during your session.

Learn more: Check out our Stateful Mocking Guide to learn how to build realistic CRUD APIs.

Can I manage different environments (Dev, Staging, Prod)?

Yes! Mock API Builder supports Multi-Environment configurations. You can:

  • Create separate environments (e.g., Development, Staging, Production)
  • Define environment-specific variables (URLs, API keys)
  • Override mock data and behavior per environment

Learn more in our Environments Guide.

API Features

What HTTP methods are supported?

Mock API Builder supports all standard RESTful HTTP methods:

GETRetrieve resources or lists
POSTCreate new resources
PUTUpdate entire resources
PATCHPartial updates
DELETERemove resources
OPTIONSCORS preflight

Each endpoint can be configured to support one or more of these methods.

How do I handle CORS in my application?

CORS is automatically enabled for all Mock API Builder endpoints. The API includes:

  • Access-Control-Allow-Origin: *
  • Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
  • Access-Control-Allow-Headers: Content-Type, Authorization

This means you can call your mock API from any frontend application without CORS issues. For production APIs, you should configure CORS more restrictively.

Can I simulate different response status codes?

Yes! You can configure different status codes for various scenarios:

  • Default Behavior: Returns appropriate codes (200 OK, 201 Created, 204 No Content, 404 Not Found)
  • Custom Errors: Configure endpoints to return specific error codes (400, 401, 403, 500, etc.)
  • Query Parameter: Use ?status=500 to test error handling
  • Delays: Add ?delay=2000 to simulate slow responses (milliseconds)
bash
Does the API support filtering and sorting?

Yes! Use query parameters to filter and sort results:

bash

The filtering behavior depends on your schema configuration. Check our Query Parameters Guide for more advanced filtering options.

Security & Limits

How do I enable authentication for my API?

To add authentication to your mock API:

  1. Go to your project settings
  2. Enable "Require Authentication"
  3. Generate an API token in your profile
  4. Include the token in request headers
bash

Learn more in our Authentication Guide.

What are the rate limits?

All users share the same rate limit: 60 requests per minute with a daily cap of 5,000 requests.

When you exceed the rate limit, you'll receive a 429 Too Many Requests response with a Retry-After header.

Can I use my mock API in production?

Not Recommended: Mock API Builder is designed for development and testing, not production use.

Here's why you shouldn't use it in production:

  • Data is not persistent (generated on-the-fly)
  • No real database or data integrity
  • Limited by rate limits and quotas
  • No uptime SLA or guaranteed availability
  • Mock responses may not match real business logic

Best Practice: Use Mock API Builder during development and testing, then switch to a real backend API for production. You can export your schema and use it as a foundation for building your actual API.

How do I secure my API tokens?

Follow these security best practices:

  • Never commit tokens to version control - Use environment variables instead
  • Rotate tokens regularly - Generate new tokens every few months
  • Use different tokens - Separate tokens for dev/staging/production
  • Revoke unused tokens - Delete old or compromised tokens immediately
  • Store securely - Keep tokens in .env files, never in code
bash

Still Have Questions?

Check out these additional resources:

Known Issues & LimitationsRequest a FeatureGet SupportBrowse All Documentation
Previous: Common Issues & SolutionsNext: Error Handling
Mock API Builder

Built for developers, by developers

LearnSupport / ContactPrivacy PolicyTerms of Service

© 2026 Mock API Builder. All rights reserved.

Learning Center
← Back to Dashboard
Learning Center
← Back to Dashboard