---
title: "Create a short checkout URL for upgrading to Pro"
method: POST
path: "/api/v1/account/upgrade"
tags: ["Account"]
---

# Create a short checkout URL for upgrading to Pro

`POST /api/v1/account/upgrade`

## Request

- Base URL: `https://workers.miniurl.com`
- URL: `https://workers.miniurl.com/api/v1/account/upgrade`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Headers

- `Idempotency-Key` string

## Request body

- UpgradeAccountRequest
  - `interval` 'monthly' | 'yearly'

## Response `200`

Checkout URL created

- UpgradeAccountResponse
  - `success` boolean, required
  - `data` object, required
    - `checkout_url` string, required
    - `interval` string, required
    - `price` string, required
  - `meta` Meta
    - `account_type` string
    - `hint` string
    - `usage` object
    - `notices` object[]
    - `limitations` string[]
    - `upgrade` object

## Other responses

- `400`: Invalid input or malformed JSON
- `401`: Missing, invalid, expired, or wrong bearer token for this endpoint
- `404`: Requested resource not found

---

[API](https://skmtc.dev/miniurl/apis/miniurl-agent-first-api.md) · [All operations](https://skmtc.dev/miniurl/apis/miniurl-agent-first-api/llms.txt) · [OpenAPI document](https://skmtc.dev/miniurl/apis/miniurl-agent-first-api/revisions/1d12196927db?raw)
