Welcome to Quantum Studio
The Quantum Studio API provides programmatic access to our entire suite of neural marketing tools. Whether you are building a custom dashboard for your agency or integrating our tools into your SaaS product, our endpoints are designed to be fast, reliable, and easy to use.
All API responses are formatted as JSON and require active user sessions or valid API keys depending on your integration method.
Base URL
Make sure to direct all requests to the root directory where your API PHP files are hosted.
Authentication
Currently, the API endpoints utilize standard PHP Session-based authentication. The API scripts automatically verify that the user making the request has an active login session.
Paywall Limits
Our endpoints have built-in metered paywalls to prevent abuse:
- Guest Users: Limited to 1 generation per tool. Returns a `limit_guest` string when exhausted.
- Free Accounts: Limited to 3 generations per tool. Returns a `limit_free` string when exhausted.
- Pro Accounts: Unlimited access. Requires
$_SESSION['is_pro'] === 1.
Growth Toolkit API
A multi-purpose endpoint that handles Viral Hooks, Profile Bios, Smart Replies, and Email Subject extraction based on the provided toolType.
Core Request Parameters
| Parameter | Type | Description |
|---|---|---|
toolType | String | Required. Must be one of: hook, bio, reply, or email. |
Depending on the toolType, specific additional parameters are required:
- hook: requires
topic,platform, andtone. - bio: requires
nameandniche. - reply: requires
messageandtone. - email: requires
content.
Example Request (Viral Hooks)
const response = await fetch('api_growth_toolkit.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
toolType: "hook",
topic: "Why most startups fail in 6 months",
platform: "TikTok / Reels",
tone: "Controversial"
})
});
Error Handling
The API uses standard HTTP status codes to indicate the success or failure of an API request. Failed requests will always return a JSON object containing an error message.
| Code | Meaning |
|---|---|
200 OK | The request was successful and data is returned. |
400 Bad Request | Missing required parameters (e.g., missing the core topic). |
403 Forbidden | User is not logged in, or has hit their Free/Guest generation limits. |
500 Server Error | Internal server failure or cURL connection to OpenAI failed. |