> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rdp.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get IP Change Options

> Lists the /24 subnets in the server's location that have a free IPv4 address,
the price of a change, and the latest IP change of the server. An address
cannot be changed while the server is suspended, expired, being installed or
moved, while a backup runs, or while another change is on its way. An address
with open abuse reports is changed by our support team instead.




## OpenAPI

````yaml get /servers/{server}/ip-changes
openapi: 3.1.0
info:
  title: APIFiddle Sample Definition
  version: 0.0.0
  description: Example workspace
servers:
  - url: https://rdp.sh/api/v1
    description: Default production endpoint.
security: []
paths:
  /servers/{server}/ip-changes:
    get:
      summary: Get IP change options
      description: >
        Lists the /24 subnets in the server's location that have a free IPv4
        address,

        the price of a change, and the latest IP change of the server. An
        address

        cannot be changed while the server is suspended, expired, being
        installed or

        moved, while a backup runs, or while another change is on its way. An
        address

        with open abuse reports is changed by our support team instead.
      operationId: getIpChangeOptions
      parameters:
        - $ref: '#/components/parameters/server'
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                title: GetIpChangeOptionsOk
                required:
                  - status
                  - available
                  - price
                  - subnets
                properties:
                  status:
                    type: boolean
                    examples:
                      - true
                  available:
                    type: boolean
                    description: Whether the server's IP address can be changed right now.
                    examples:
                      - true
                  unavailable_reason:
                    type:
                      - string
                      - 'null'
                    description: Why the address cannot be changed right now, or `null`.
                    examples:
                      - >-
                        This server is suspended, so its IP address cannot be
                        changed.
                  price:
                    type: object
                    properties:
                      amount:
                        type: number
                        description: What the change costs, VAT of your country included.
                        examples:
                          - 2.5
                      net:
                        type: number
                        examples:
                          - 2.1
                      vat_rate:
                        type: number
                        examples:
                          - 19
                      currency:
                        type: string
                        examples:
                          - EUR
                  current_ip:
                    type:
                      - string
                      - 'null'
                    examples:
                      - 203.0.113.10
                  subnets:
                    type: array
                    description: >
                      The /24 subnets in the server's location that have a free
                      address,

                      the server's current subnet included.
                    items:
                      type: object
                      properties:
                        subnet:
                          type: string
                          examples:
                            - 198.51.100.0/24
                        free:
                          type: integer
                          description: How many addresses of the subnet are free.
                          examples:
                            - 12
                        current:
                          type: boolean
                          description: >-
                            Whether the server's current address is in this
                            subnet.
                          examples:
                            - false
                  latest_ip_change:
                    oneOf:
                      - $ref: '#/components/schemas/ipChange'
                      - type: 'null'
          description: The subnets a new address can come from, and the price.
        '403':
          content:
            application/json:
              schema:
                type: object
                title: GetIpChangeOptionsUnauthorized
                properties:
                  status:
                    type: boolean
                    examples:
                      - false
                  error:
                    type: string
                    examples:
                      - This action is unauthorized
          description: User does not own the server.
        '404':
          description: Server not found.
      security:
        - Authorization: []
components:
  parameters:
    server:
      in: path
      name: server
      schema:
        type: string
      required: true
  schemas:
    ipChange:
      type: object
      required:
        - id
        - server_id
        - status
        - subnet
      properties:
        id:
          type: integer
          examples:
            - 42
        server_id:
          type: integer
          examples:
            - 123
        status:
          type: string
          enum:
            - awaiting_payment
            - pending
            - running
            - completed
            - failed
          description: >
            `awaiting_payment` is only seen for a change ordered on the server
            page

            whose invoice is still open.
          examples:
            - running
        step:
          type: string
          description: What the change is doing right now.
          examples:
            - Waiting for the server on its new address
        progress:
          type: integer
          minimum: 0
          maximum: 100
          examples:
            - 80
        subnet:
          type: string
          description: The /24 the new address is taken from.
          examples:
            - 198.51.100.0/24
        old_ip:
          type:
            - string
            - 'null'
          examples:
            - 203.0.113.10
        new_ip:
          type:
            - string
            - 'null'
          description: >
            The address the server is moving to, once it has been reserved.
            `null`

            again if the change failed.
          examples:
            - 198.51.100.20
        invoice_id:
          type:
            - integer
            - 'null'
        refunded:
          type: boolean
          description: Whether the fee was credited back to your balance.
        error:
          type:
            - string
            - 'null'
          description: Why the change failed, once it has.
        created_at:
          type: string
          examples:
            - '2026-10-22T12:00:00+00:00'
        finished_at:
          type:
            - string
            - 'null'
      description: A change of a server's IPv4 address.
  securitySchemes:
    Authorization:
      in: header
      name: Authorization
      type: apiKey
      description: |
        Your API key as it is, without `Bearer`. API access is off for new
        accounts: until it is turned on under Settings > API, every request
        answers `403` with `API access is turned off for this account. Turn it
        on under Settings > API.` If the account lists allowed IPs, a request
        from any other address answers `403` with `This API key is not allowed
        from <address>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.