---
title: "Select a machine plan"
method: POST
path: "/api/v1/machines/plan/select"
tags: ["Machines"]
---

# Select a machine plan

`POST /api/v1/machines/plan/select`

Select a machine plan.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: May mutate server state.

## Headers

- `Accept` string

## Response `200`

OK

- SelectPlanResponse — SelectPlanResponse schema
  - `balance_after_cents` integer, nullable
  - `charged_cents` integer, nullable
  - `error` string, nullable
  - `message` string
  - `period_end` string, nullable
  - `plan` object, nullable
    - `id` string, uuid
    - `monthly_cost_cents` integer
    - `monthly_cost_usd` string
    - `name` string
    - `ram_mb` integer
    - `storage_mb` integer
    - `tier` string
    - `vcpu` integer
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.net/nixopus/apis/openapi.md) · [All operations](https://skmtc.net/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nixopus/openapi/versions/c5bacaea7239/schema)
