---
title: "PUT /usage/v2/upgrade-to-payg/"
method: PUT
path: "/usage/v2/upgrade-to-payg/"
tags: ["usage"]
---

# PUT /usage/v2/upgrade-to-payg/

`PUT /usage/v2/upgrade-to-payg/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/usage/v2/upgrade-to-payg/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Confirm upgrade after Stripe Checkout succeeds.

## Request body

- UpgradeToPaygConfirmRequest
  - `session_id` string, required

## Response `200`

OK

- PlanResponse
  - `status` boolean, required
  - `result` PlanResult, required
    - `plan` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
