Public content API
Use this read-only API to list public pages on the MagicBox website and retrieve their text. For example, a help centre can display a link to the current privacy policy or read its Markdown. No API key is required.
| Request | Response |
|---|---|
GET https://magicboxai.in/api/md/_catalog |
JSON with a routes array. Each entry includes the page path, title, canonical URL, Markdown URL and last-modified date. |
GET https://magicboxai.in/api/md/privacy |
The public privacy policy as Markdown. Use the apiMarkdown URL from a catalog entry to read another page. |
Example
Section titled “Example”const catalog = await fetch("https://magicboxai.in/api/md/_catalog");if (!catalog.ok) throw new Error(`Catalog request failed (${catalog.status})`);
const { routes } = await catalog.json();const privacy = routes.find((page) => page.path === "/privacy");if (!privacy) throw new Error("Privacy page is missing from the catalog");
const page = await fetch(privacy.apiMarkdown);if (!page.ok) throw new Error(`Page request failed (${page.status})`);console.log(await page.text());A registered page returns 200. An unknown Markdown page returns 404. The API also accepts HEAD if you only need response headers.
Creating content from another app
Section titled “Creating content from another app”MagicBox does not currently offer customer API keys for generating Reels, accessing private Brand Kits or scheduling posts. Those workflows are available when you sign in to the MagicBox app.