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

# Add IP to Whitelist

> Add an IP address to the whitelist for this license.



## OpenAPI

````yaml POST /customer/v2/licenses/{license}/ips
openapi: 3.0.3
info:
  title: OrbitFlare Customer API
  description: >-
    API documentation for the OrbitFlare Customer API. This API allows
    authenticated customers to manage their licenses, whitelist IPs, reset keys,
    and retrieve associated data. Supports v1 (API key only) and v2 (Bearer
    token or API key) with extended features including device/wallet auth, API
    keys management, profile, Solana USDC balance top-up, and RPC plan
    purchasing.
  version: 2.1.0
servers:
  - url: https://orbitflare.com/api
    description: OrbitFlare Production server
security:
  - api_key: []
tags:
  - name: Auth
    description: Authentication (device flow, wallet signature, session)
  - name: Licenses
    description: License management
  - name: API Keys
    description: API key management
  - name: Profile
    description: User profile and balance
  - name: Invoices
    description: Invoice listing, detail, and balance payment
  - name: Top-Up
    description: Balance top-up via Solana USDC
  - name: RPC Plans
    description: Solana RPC plan catalog
  - name: Orders
    description: Order management (validate, purchase, list)
paths:
  /customer/v2/licenses/{license}/ips:
    parameters:
      - name: license
        in: path
        required: true
        schema:
          type: string
    post:
      tags:
        - Licenses
      summary: Add IP to Whitelist
      description: Add an IP address to the whitelist for this license.
      operationId: addLicenseIP
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LicenseIPWhitelistRequest'
      responses:
        '200':
          description: IP added.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2SuccessResponse'
        '400':
          description: Invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2ErrorResponse'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2ErrorResponse'
        '403':
          description: Forbidden.
        '404':
          description: License or location not found.
      security:
        - bearer_token: []
        - api_key: []
components:
  schemas:
    LicenseIPWhitelistRequest:
      type: object
      required:
        - ip_address
        - location_id
      properties:
        ip_address:
          type: string
          format: ipv4
        location_id:
          type: integer
        expires_at:
          type: string
          format: date-time
          description: Optional expiration
    V2SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          type: object
    V2ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
        errors:
          type: object
        error:
          type: string
          description: Error code (e.g. authorization_pending, slow_down)
  securitySchemes:
    api_key:
      type: apiKey
      name: X-ORBIT-KEY
      in: header
      description: API key for v1 and v2 (when not using Bearer token)
    bearer_token:
      type: http
      scheme: bearer
      bearerFormat: Sanctum
      description: Bearer token from device or wallet auth

````