Mock API Generation
Instant REST APIs from your schema—no backend needed. Unblock frontend and mobile teams immediately.
How It Works
┌─────────────────────────────────────────────────────────────────┐
│ MOCK API GENERATION │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Schema Live API │
│ ┌───────────────┐ ┌───────────────────────────┐ │
│ │ models: │ │ │ │
│ │ User: │ Generate │ GET /users │ │
│ │ id │ ───────────▶ │ GET /users/:id │ │
│ │ name │ │ POST /users │ │
│ │ email │ │ PUT /users/:id │ │
│ │ Product: │ │ DELETE /users/:id │ │
│ │ ... │ │ │ │
│ └───────────────┘ │ Base: api.phony.cloud/ │ │
│ │ your-project │ │
│ └───────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘API Modes
| Mode | Features | Best For |
|---|---|---|
| Read-Only | GET only, deterministic, infinite pagination | Frontend dev, demos, testing |
| Stateful CRUD | Full CRUD, configurable TTL (1h/24h/7d/never) | E2E testing, mobile dev |
Deterministic Pagination
Same request always returns the same data. Page 999 works—generated on-demand, not stored.
Request: GET /users?page=5&per_page=10
Algorithm:
1. page_seed = hash(project_seed + endpoint + page_number)
2. For each item i in page:
item_seed = hash(page_seed + i)
generate(item_seed) → deterministic user
Result:
• Same request always returns same data
• Relationships maintained via FK seeds
• No storage cost (generated on-the-fly)Filtering:
GET /users?age_gt=30
→ Generate candidates, filter, return page_size matches
→ Consistent via deterministic generationFeatures
- Custom subdomain:
my-project.api.phony.cloud - Custom domains: (Team+)
api.yourcompany.com - OpenAPI/Swagger: Auto-generated documentation
- Auth simulation: API key, Bearer token, OAuth mock
- Webhook simulation: Test webhook integrations
- Latency simulation: Test timeout handling
- Nested routes:
/users/1/posts
Tier Limits
| Feature | FREE | STARTER | TEAM | BUSINESS |
|---|---|---|---|---|
| Endpoints | 5 | 30 | 150 | Unlimited |
| Stateful CRUD | ✗ | ✓ | ✓ | ✓ |
| State TTL | - | 24h | 7 days | Unlimited |
| Custom Domain | ✗ | ✗ | 1 | Unlimited |
| Auth Simulation | ✗ | ✓ | ✓ | ✓ |
| Webhook Simulation | ✗ | ✗ | ✓ | ✓ |