Create Max Code Project
POST /v1/max-code/projects
This operation can change data. Use resources you control.
Request fields
| Field | Location | Type | Required |
|---|---|---|---|
api_key_id | body | string | null | Optional |
api_key_name | body | string | null | Optional |
beta_acknowledged | body | boolean | Optional |
creation_mode | body | room | world | game | app | null | Optional |
difficulty | body | string | null | Optional |
goal | body | string | null | Optional |
idempotency_key | body | string | null | Optional |
initial_idea | body | string | null | Optional |
mission_enabled | body | boolean | Optional |
selected_assets | body | object | null | Optional |
stack | body | string | null | Optional |
template_id | body | string | null | Optional |
theme | body | string | null | Optional |
title | body | string | null | Optional |
vehicle_enabled | body | boolean | Optional |
website_brand | body | string | null | Optional |
website_motion | body | string | null | Optional |
website_palette | body | string | null | Optional |
website_purpose | body | string | null | Optional |
website_style | body | string | null | Optional |
website_typography | body | string | null | Optional |
Examples
Use the environment settings from Quickstart. Replace sample resource IDs with your own. The examples show the required request shape.
import { MaxClient } from "@elmax/api";
const max = new MaxClient({
baseURL: process.env.MAX_API_URL,
apiKey: process.env.MAX_API_KEY,
});
const result = await max.api.postV1MaxCodeProjects({
"body": {
"title": "Support dashboard",
"stack": "vanilla",
"idempotency_key": "support-example-001"
}
});
console.log(result);import os
from elmax_ai import MaxClient
with MaxClient(base_url=os.environ["MAX_API_URL"], api_key=os.environ["MAX_API_KEY"]) as max:
result = max.api.post_v1_max_code_projects(**{'body': {'title': 'Support dashboard',
'stack': 'vanilla',
'idempotency_key': 'support-example-001'}})
print(result)