β MASTER BETA
REST API · v1

Now you are the master.

Pre-launch tools for web developers

Use this ground to test Master Beta’s public endpoints. It sends real requests to the endpoint you choose, so use a development site key and a valid Turnstile token when testing submissions.

For local development, use your Wrangler address, for example http://127.0.0.1:8787.

No request sent.

Submit a form

Request / response
Fill in a development site key, then submit.

Your site must allow this documentation origin in its exact CORS allow-list. Production submissions also require a server-verified Turnstile token.

Redeem an invite

No request sent.

Copyable browser integration

const xhr = new XMLHttpRequest();
xhr.open("POST", "https://masterbeta.dev/v1/submit");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.onload = () => console.log(xhr.status, xhr.responseText);
xhr.send(JSON.stringify({
  siteKey: "mb_pub_...", form: "alpha", email: "ada@example.com",
  turnstileToken: "<Turnstile token>", website: ""
}));

Admin endpoints

Admin endpoints are intentionally not runnable from this browser page: an admin credential must never be stored in frontend JavaScript. Use a terminal or server-side integration instead.

curl -H "Authorization: Bearer $ADMIN_API_KEY" \
  "https://masterbeta.dev/v1/admin/export.csv?site=storylore&form=alpha"