max developers SDK 0.4.0
API reference

Export Bytes

GET /v1/max-code/creations/{project_id}/runs/{run_id}/exports/{format}

Request fields

FieldLocationTypeRequired
project_idpathstringRequired
run_idpathstringRequired
formatpathstringRequired

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.getV1MaxCodeCreationsProjectIdRunsRunIdExportsFormat({
  "path": {
    "project_id": "icp_example",
    "run_id": "run_example",
    "format": "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_creations_project_id_runs_run_id_exports_format(**{'path': {'project_id': 'icp_example',
          'run_id': 'run_example',
          'format': 'example'}})
    print(result)

Errors and recovery