Galon Cloud
Galon API v1

/deploy/production/plan

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

POST /deploy/production/plan

Choose a production plan

Scope deploy:create. Write: live key required (403 deploy_production_live_key_required with a test key). Served only when Galon Deploy is open to the account (404 otherwise). Errors {"detail": {"code"}}.

API key (Bearer), on the public API endpoint.

Request body

application/json

FieldTypeDescription
plan_idstring · required

Responses

StatusDescriptionBody
200Plan chosenobject
422deploy_plan_unknownError
401Key missing or invalidError

Examples

curl

curl -X POST "$GALON_API_BASE/deploy/production/plan" \
  -H "Authorization: Bearer $GALON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"plan_id": "string"}'

Node.js (SDK)

import { Galon } from "galon";

const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.production.choosePlan({"plan_id": "string"});

Python (SDK)

from galon import Galon

galon = Galon()  # reads GALON_API_KEY
result = galon.production.choose_plan({"plan_id": "string"})