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.getV1MaxCodeProjectsProjectId({
"path": {
"project_id": "icp_example"
}
});
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.get_v1_max_code_projects_project_id(**{'path': {'project_id': 'icp_example'}})
print(result)
Response fields
access
string
asset_bindings
object
asset_import_error
string | null
category
string | null
chat_session_key
string | null
composed_plan_brief
string | null
created_at
string | null
creation_mode
document | room | world | game | app | null
current_version_id
string
document_kind
string | null
entry
string
entry_path
string
files
List of MaxCodeFileItem
has_public_listing
boolean
id
string
is_republish_archived
boolean
listing_count
integer
origin_session_id
string | null
owner_user_id
string
public_listing_count
integer
republish_lineage_id
string | null
runtime_contract_version
string
sha256
string
source
string
stack
string
stack_experimental
boolean
template_id
string | null
template_prefs
object
title
string
title_locked
boolean
updated_at
string | null
version_id
string
version_number
integer
workspace_revision
integer
Errors and recovery
401
Supply a valid credential for this route.
403
Check the credential's scopes, project, audience, ownership and current access.
404
Check the resource ID and workspace. A route may conceal private resources.
409
Refresh the resource or reuse the same request ID and request body for a retry.
422
Compare the request body and parameters with the published schema.
429
Wait for capacity or credits. Check the original operation before retrying a write.