Docs
UI Response Builder
UI Response Builder
MaskAPI’s UI Response Builder makes it easy to reshape any JSON response. Available in Mock, Mask, and Database modes right in the Studio.
Response Builder customizations apply only to application/json
responses.
📘 What Is UI Response Builder?
In the Response Builder, you can:
- Rename any output key
- Add new fields from existing data
- Remap which original field feeds each output
- Nest or flatten objects and arrays
- Preview every change instantly
🧩 How to Use the Response Builder
- Select your project.
- Go to the Studio tab.
- Switch the mode dropdown to Mock (or Mask/Database).
- Click the Configs tab.
- Toggle Response Builder on.
- Click Run Mask to initialize the builder data.
- In the Response Builder top-bar, click Fill Builder.
- Make visual edits:
- Rename: click a Name cell and type a new key.
- Add: hit the green ➕, choose Type and Source.
- Remap: in Source, pick a same‑type field.
- Remove: click the red ⛔ to delete any field (except an array’s
ITEMS
). - Restructure: add or remove object/array nodes to nest or flatten.
- Arrays: under each array’s
ITEMS
node, configure fields for every entry.
- After each change, click Run Mask to refresh the preview.
- Enter your API Route name.
- Click Launch to deploy your endpoint.
Response Builder is available in all API modes.
Switching API modes will reset your Response Builder data.
🔄 Reset Response Builder
To reset all edits, click the red Reset & Refresh button in the Response Builder top-bar.
🛠️ Before & After Example
Before (raw response):
{
"id": 1,
"name": "Alice",
"company": { "name": "Acme Corp" }
}
After (renamed & flattened):
{
"employeeId": 1,
"fullName": "Alice",
"companyName": "Acme Corp"
}