Skip to main content
Mock API Builder
Learning Center

/ AI Rule Builder

New

AI Rule Builder

Turn a plain-language description into a working mock response rule — open AI Rulesfrom a project's header.

Describe the behavior

Type what you want in natural language, for example:

“Return a 401 with an error message when the Authorization header is missing on GET /profile”

Click Generate to send the description to the AI rule generator (requires GEMINI_API_KEY to be configured on the server).

Review & apply

The generated rule is validated before you can apply it — if it doesn't parse into a valid response rule, you'll see an error instead of a silently broken endpoint. Once it looks right, click Apply to add it to the project.

How this differs from AI fill

AI fill (in Project Integrations) generates example response bodies from an existing OpenAPI schema. The AI rule builder instead generates the conditional logic itself — status codes, headers, and matching rules — from a description you write, with no schema required.

For rules you write by hand instead, see Response Customization.

Previous: Project IntegrationsNext: Multi-Environment Support
Mock API Builder

Built for developers, by developers

DocumentationContactPrivacy PolicyTerms of Service

© 2026 Mock API Builder. All rights reserved.

Double-click for what's new
Learning Center
Learning Center