---
title: "Reserve a floating IP"
method: POST
path: "/api/v1/ips/reserve"
tags: ["Networking"]
---

# Reserve a floating IP

`POST /api/v1/ips/reserve`

Reserve a floating public IP. The IP is allocated immediately and held for your account until you release it.

## Billing

Reserved IPs are billed. For subscription accounts the IP price is charged from the account balance up front for the chosen `billing_period` (default monthly):

- **Insufficient balance** for the subscription returns `402`. Top up the balance and retry.

For pay-as-you-go (PAYG) accounts no upfront charge happens — usage accrues hourly.

## Headers

- `X-Project-ID` string, uuid, required

## Request body

- ReserveIPRequest — Optional fields for IP reservation. Send an empty body to use defaults.
  - `type` 'IPv4' | 'IPv6' — IP family to reserve. Defaults to IPv4.
  - `region` 'us-east' — Region. Defaults to the project's default region.
  - `billing_period` 'monthly' | 'yearly' | 'twenty_four_month' — Subscription billing period. Ignored for PAYG accounts.

## Response `201`

IP reserved

- object
  - `success` boolean
  - `data` FloatingIP — A floating public IP address.
    - `id` string, uuid, required — IP identifier.
    - `account_id` string, uuid
    - `project_id` string, uuid
    - `created_by` string, uuid — User who reserved the IP.
    - `ip_address` string, required — The IP address.
    - `type` 'IPv4' | 'IPv6', required — IP family.
    - `status` 'free' | 'in-use', required — - `free` — IP is in the pool, not currently attached to any VM. - `in-use` — currently attached to a VM.
    - `reserved` boolean, required — Whether the IP is reserved (held for the account regardless of VM attachment). A reserved IP can be either `free` (held but not attached) or `in-use` (held and attached).
    - `region` 'us-east'
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication required
- `402` — Account balance is insufficient for this operation. Top up the balance and retry.
- `403` — Billing validation failed. The account is not in good standing. Check the `reason` field: - `banned` — account suspended - `failed` — last payment failed; top up the account balance - `no_billing_customer` — billing not set up

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
