Tutorial

Generate API Body with AI

Accelerate prototyping by letting AI draft a JSON body from a short prompt, then refine fields as needed.

1) Open Generate with AI

Go to Generate with AI. Fill the form to let AI propose a JSON response for a new mock API.

AI form with name, description and bearer flag
Form fields: API Name, Description for AI (prompt), and optional Protected with Bearer flag.

2) Review the generated body

Click Generate. The AI proposes a JSON body you can edit before creating the endpoint.

Generated JSON body preview
Edit field names and types as needed; keep it valid JSON.
Tip: Keep arrays small, use realistic sample values, and consider adding {{uuid}} or {{timestamp}} placeholders later with scenarios.

3) Create the mock

Proceed to create the endpoint. You’ll get the URL (and token if protected). Test it from your app or the Request Tester.

About AI access

The AI generator uses a server-side endpoint (/generate-api-mock) and may be premium-only. If not available on your plan, you’ll see an upgrade notice.

Next: Mock API Guide