MonstarX Platform API
要点独自のスクリプトやサービスからMonstarXを自動化できます。アカウントAPIキーでリクエストし、ジョブを確認してください。公開前にアプリをレビューします。
設定 → API & MCPでアカウントキーを作成し、サーバーの秘密情報としてMONSTARX_API_KEYに保存します。ブラウザーのコードには含めないでください。
export MONSTARX_API_KEY='your-account-key'export MONSTARX_API_BASE='https://monstarx.com/api/v1'curl --fail-with-body "$MONSTARX_API_BASE/account" \ -H "Authorization: Bearer $MONSTARX_API_KEY"import jsonimport osimport urllib.request
request = urllib.request.Request( "https://monstarx.com/api/v1/account", headers={"Authorization": "Bearer " + os.environ["MONSTARX_API_KEY"]},)with urllib.request.urlopen(request, timeout=30) as response: print(json.load(response))const response = await fetch('https://monstarx.com/api/v1/account', { headers: { Authorization: `Bearer ${process.env.MONSTARX_API_KEY}` },});const data = await response.json();if (!response.ok) throw new Error(JSON.stringify(data));console.log(data);APIとMCPの使い分け
Section titled “APIとMCPの使い分け”APIはスクリプト、サービス、CI向けです。MCPはClaude Code、Codex、Cursorなどの会話型コーディングエージェント向けです。どちらも通常の利用枠を使います。
技術リファレンス(英語)
Section titled “技術リファレンス(英語)”エンドポイント、ジョブの状態、再試行、承認した版の公開、Webhook署名の検証については英語の完全ガイドをご覧ください。