API documentation
The Mockfile API
Base URL: https://mockfile.com. Authenticate with your account API key (on your account page) in the x-api-key header. Without a key, the public limits apply (10 files/day, 1,000 rows).
POST /api/generate
curl -X POST https://mockfile.com/api/generate \
-H "content-type: application/json" \
-H "x-api-key: mf_live_…" \
-d '{
"schema": [
{"name": "firstName", "type": "firstName"},
{"name": "email", "type": "email"},
{"name": "joined", "type": "date"}
],
"format": "csv", // csv | json | xml | pdf | png | svg
"rows": 500, // tabular formats; free ceiling 1,000
"seed": "checkout-tests", // optional; deterministic output
"width": 640, "height": 400, "label": "SAMPLE" // image formats
}' -o users.csv
Returns the file as the response body with a content-disposition filename. Errors are JSON: {"error": "…"} with a 4xx status. Rate-limit errors name the ceiling that was hit and the plan that raises it.
Limits by plan
| Anonymous | Free account | Pro | Team | |
|---|---|---|---|---|
| Rows per file | 1,000 | 1,000 | 100,000 | 100,000 |
| Files per day | 10 | 25 | 500 | 2,000 |
| API key | — | yes | yes | multiple (soon) |
| Price | $0 | $0 | $12/mo | $29/mo |
Paid tiers bill through Stripe under Neat Circle LLC — see pricing for the current checkout state, stated plainly.