max developers SDK 0.4.0
API reference

Create Max Code Project

POST /v1/max-code/projects

This operation can change data. Use resources you control.

Request fields

FieldLocationTypeRequired
api_key_idbodystring | nullOptional
api_key_namebodystring | nullOptional
beta_acknowledgedbodybooleanOptional
creation_modebodyroom | world | game | app | nullOptional
difficultybodystring | nullOptional
goalbodystring | nullOptional
idempotency_keybodystring | nullOptional
initial_ideabodystring | nullOptional
mission_enabledbodybooleanOptional
selected_assetsbodyobject | nullOptional
stackbodystring | nullOptional
template_idbodystring | nullOptional
themebodystring | nullOptional
titlebodystring | nullOptional
vehicle_enabledbodybooleanOptional
website_brandbodystring | nullOptional
website_motionbodystring | nullOptional
website_palettebodystring | nullOptional
website_purposebodystring | nullOptional
website_stylebodystring | nullOptional
website_typographybodystring | nullOptional

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)
Response fields

Errors and recovery