{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "SeeNIP API",
    "version": "1.0.0",
    "description": "IP address, header, DNS and bulk lookup tooling for developers. The SeeNIP API is a HTTP/JSON API with predictable resource URLs, Bearer or API-key authentication and published rate limits on every response. All monetary values are in pence; all times are UTC. ",
    "termsOfService": "https://seenip.dev/api-terms",
    "contact": {
      "name": "SeeNIP API Support",
      "url": "https://seenip.dev/docs/"
    }
  },
  "servers": [
    {
      "url": "https://seenip.dev",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Seenip",
      "description": "SeeNIP API endpoints."
    }
  ],
  "paths": {
    "/ip": {
      "get": {
        "operationId": "getMyIp",
        "summary": "Get your IP address",
        "description": "Returns the caller's public IP address as text/plain. No authentication required.",
        "tags": [
          "Seenip"
        ],
        "x-tier": "FREE",
        "responses": {
          "200": {
            "description": "Public IP address (text/plain). Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "examples": {
                  "default": {
                    "value": "203.0.113.42"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          }
        },
        "x-endpoint-aliases": [
          "/json",
          "/api/v1/me"
        ],
        "security": []
      }
    },
    "/api/v1/me": {
      "get": {
        "operationId": "getMe",
        "summary": "Get your IP details",
        "description": "Returns structured details about the caller's public IP address. Aliased at /json.",
        "tags": [
          "Seenip"
        ],
        "x-tier": "FREE",
        "responses": {
          "200": {
            "description": "Successful response. Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ip": {
                      "type": "string",
                      "example": "8.8.8.8"
                    },
                    "country": {
                      "type": "string",
                      "example": "US"
                    },
                    "city": {
                      "type": "string",
                      "example": "Mountain View"
                    },
                    "asn": {
                      "type": "string",
                      "example": "AS15169"
                    },
                    "org": {
                      "type": "string",
                      "example": "Google LLC"
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "ip": "203.0.113.42",
                      "country": "GB",
                      "city": "London",
                      "asn": "AS12345",
                      "org": "Example ISP"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          }
        },
        "x-endpoint-aliases": [
          "/json"
        ],
        "security": []
      }
    },
    "/api/v1/headers": {
      "get": {
        "operationId": "getHeaders",
        "summary": "Inspect request headers",
        "description": "Echoes the HTTP headers received by SeeNIP, useful for debugging proxies and CDNs.",
        "tags": [
          "Seenip"
        ],
        "x-tier": "FREE",
        "responses": {
          "200": {
            "description": "Successful response. Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "headers": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      },
                      "example": {
                        "user-agent": "curl/8.5.0",
                        "accept": "*/*"
                      }
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "headers": {
                        "user-agent": "curl/8.5.0",
                        "accept": "*/*",
                        "host": "seenip.dev"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/lookup/{ip}": {
      "get": {
        "operationId": "lookupIp",
        "summary": "Look up an IP address",
        "description": "Returns geolocation and ASN data for a given IPv4 or IPv6 address. Requires the PRO plan.",
        "tags": [
          "Seenip"
        ],
        "x-tier": "PRO",
        "responses": {
          "200": {
            "description": "Successful response. Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ip": {
                      "type": "string",
                      "example": "8.8.8.8"
                    },
                    "country": {
                      "type": "string",
                      "example": "US"
                    },
                    "city": {
                      "type": "string",
                      "example": "Mountain View"
                    },
                    "asn": {
                      "type": "string",
                      "example": "AS15169"
                    },
                    "org": {
                      "type": "string",
                      "example": "Google LLC"
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "ip": "8.8.8.8",
                      "country": "US",
                      "city": "Mountain View",
                      "asn": "AS15169",
                      "org": "Google LLC"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters or body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "invalid": {
                    "value": {
                      "type": "https://httpstatuses.com/400",
                      "title": "Bad Request",
                      "status": 400,
                      "detail": "ip must be a valid IPv4 or IPv6 address.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "ip",
            "in": "path",
            "description": "IPv4 or IPv6 address.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "ip",
              "example": "8.8.8.8"
            },
            "example": "8.8.8.8"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ]
      }
    },
    "/api/v1/lookup/batch": {
      "post": {
        "operationId": "batchLookup",
        "summary": "Batch IP lookup",
        "description": "Looks up up to 1,000 IP addresses in one request. Requires the PRO plan (SCALE for higher volume).",
        "tags": [
          "Seenip"
        ],
        "x-tier": "PRO",
        "responses": {
          "200": {
            "description": "Successful response. Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ip": {
                            "type": "string",
                            "example": "8.8.8.8"
                          },
                          "country": {
                            "type": "string",
                            "example": "US"
                          },
                          "city": {
                            "type": "string",
                            "example": "Mountain View"
                          },
                          "asn": {
                            "type": "string",
                            "example": "AS15169"
                          },
                          "org": {
                            "type": "string",
                            "example": "Google LLC"
                          }
                        }
                      }
                    },
                    "count": {
                      "type": "integer",
                      "example": 2
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "results": [
                        {
                          "ip": "8.8.8.8",
                          "country": "US",
                          "city": "Mountain View",
                          "asn": "AS15169",
                          "org": "Google LLC"
                        }
                      ],
                      "count": 2
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters or body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "invalid": {
                    "value": {
                      "type": "https://httpstatuses.com/400",
                      "title": "Bad Request",
                      "status": 400,
                      "detail": "ips must contain between 1 and 1000 addresses.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ips": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "ip"
                    },
                    "minItems": 1,
                    "maxItems": 1000,
                    "example": [
                      "8.8.8.8",
                      "1.1.1.1"
                    ]
                  }
                },
                "required": [
                  "ips"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "ips": [
                      "8.8.8.8",
                      "1.1.1.1"
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ]
      }
    },
    "/api/v1/dns-test/sessions": {
      "post": {
        "operationId": "createDnsTestSession",
        "summary": "Create a DNS test session",
        "description": "Starts a DNS propagation test session for a hostname. Requires the PRO plan (SCALE for concurrent sessions).",
        "tags": [
          "Seenip"
        ],
        "x-tier": "PRO",
        "responses": {
          "200": {
            "description": "Successful response. Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "dns_7Rh2"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "running",
                        "complete"
                      ],
                      "example": "pending"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-12-05T10:00:00Z"
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "id": "dns_7Rh2",
                      "status": "pending",
                      "created_at": "2026-12-05T10:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters or body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "invalid": {
                    "value": {
                      "type": "https://httpstatuses.com/400",
                      "title": "Bad Request",
                      "status": 400,
                      "detail": "hostname must be a valid DNS name.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hostname": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253,
                    "example": "example.co.uk"
                  },
                  "record_type": {
                    "type": "string",
                    "enum": [
                      "A",
                      "AAAA",
                      "CNAME",
                      "MX",
                      "TXT"
                    ],
                    "default": "A",
                    "example": "A"
                  },
                  "resolvers": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "ip"
                    },
                    "default": [],
                    "example": [
                      "1.1.1.1",
                      "8.8.8.8"
                    ]
                  }
                },
                "required": [
                  "hostname"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "hostname": "example.co.uk",
                    "record_type": "A",
                    "resolvers": [
                      "1.1.1.1"
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ]
      }
    },
    "/api/v1/dns-test/sessions/{id}": {
      "get": {
        "operationId": "getDnsTestSession",
        "summary": "Get a DNS test session",
        "description": "Returns the state and resolver results of a DNS test session. Requires the PRO plan.",
        "tags": [
          "Seenip"
        ],
        "x-tier": "PRO",
        "responses": {
          "200": {
            "description": "Successful response. Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "dns_7Rh2"
                    },
                    "status": {
                      "type": "string",
                      "example": "complete"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "resolver": {
                            "type": "string",
                            "example": "1.1.1.1"
                          },
                          "answer": {
                            "type": "string",
                            "example": "93.184.215.14"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "id": "dns_7Rh2",
                      "status": "complete",
                      "results": [
                        {
                          "resolver": "1.1.1.1",
                          "answer": "93.184.215.14"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Session identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "dns_7Rh2"
            },
            "example": "dns_7Rh2"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ]
      }
    },
    "/json": {
      "get": {
        "operationId": "getMeJson",
        "summary": "Get your IP details",
        "description": "Alias of GET /api/v1/me. Returns structured details about the caller's public IP address.",
        "tags": [
          "Seenip"
        ],
        "x-tier": "FREE",
        "responses": {
          "200": {
            "description": "Successful response. Rate-limit and monthly-quota headers are returned on every 200.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 59
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              },
              "X-Quota-Monthly-Limit": {
                "description": "Total requests included in the plan for this calendar month.",
                "schema": {
                  "type": "integer",
                  "example": 10000
                }
              },
              "X-Quota-Monthly-Remaining": {
                "description": "Monthly quota remaining after this request.",
                "schema": {
                  "type": "integer",
                  "example": 9940
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ip": {
                      "type": "string",
                      "example": "8.8.8.8"
                    },
                    "country": {
                      "type": "string",
                      "example": "US"
                    },
                    "city": {
                      "type": "string",
                      "example": "Mountain View"
                    },
                    "asn": {
                      "type": "string",
                      "example": "AS15169"
                    },
                    "org": {
                      "type": "string",
                      "example": "Google LLC"
                    }
                  }
                },
                "examples": {
                  "default": {
                    "value": {
                      "ip": "203.0.113.42",
                      "country": "GB",
                      "city": "London",
                      "asn": "AS12345",
                      "org": "Example ISP"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed or invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "type": "https://httpstatuses.com/401",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "Provide a valid Bearer token or X-API-Key header.",
                      "instance": "/api/v1/"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Plan Upgrade Required — the endpoint or requested option is not on the current plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanUpgradeRequired"
                },
                "examples": {
                  "upgrade_required": {
                    "value": {
                      "type": "https://httpstatuses.com/403",
                      "title": "Plan Upgrade Required",
                      "status": 403,
                      "detail": "This operation requires a higher plan tier.",
                      "instance": "/api/v1/",
                      "upgrade_url": "https://seenip.dev/pricing",
                      "required_plan": "PRO"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — RFC 9457 problem+json with a Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 §10.2.3).",
                "schema": {
                  "type": "integer",
                  "example": 30
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 60
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Zero while throttled.",
                "schema": {
                  "type": "integer",
                  "example": 0
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix seconds when the current window resets.",
                "schema": {
                  "type": "integer",
                  "example": 1764931200
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                },
                "examples": {
                  "throttled": {
                    "value": {
                      "type": "https://httpstatuses.com/429",
                      "title": "Too Many Requests",
                      "status": 429,
                      "detail": "Rate limit exceeded for the current window.",
                      "instance": "/api/v1/",
                      "retry_after_seconds": 30
                    }
                  }
                }
              }
            }
          }
        },
        "x-endpoint-aliases": [
          "/json"
        ],
        "security": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API token",
        "description": "Send `Authorization: Bearer <token>`."
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Send `X-API-Key: <key>` as an alternative to Bearer auth."
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "example": "https://httpstatuses.com/429"
          },
          "title": {
            "type": "string",
            "example": "Too Many Requests"
          },
          "status": {
            "type": "integer",
            "example": 429
          },
          "detail": {
            "type": "string",
            "example": "Rate limit exceeded for the current window."
          },
          "instance": {
            "type": "string",
            "example": "/api/v1/"
          },
          "retry_after_seconds": {
            "type": "integer",
            "example": 30
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ]
      },
      "PlanUpgradeRequired": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "example": "https://httpstatuses.com/403"
          },
          "title": {
            "type": "string",
            "example": "Plan Upgrade Required"
          },
          "status": {
            "type": "integer",
            "example": 403
          },
          "detail": {
            "type": "string",
            "example": "This operation requires a higher plan tier."
          },
          "upgrade_url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.co.uk/pricing"
          },
          "required_plan": {
            "type": "string",
            "enum": [
              "PRO",
              "AGENCY",
              "FRANCHISE",
              "GROUP",
              "SCALE"
            ],
            "example": "PRO"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "upgrade_url"
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    },
    {
      "apiKeyHeader": []
    }
  ]
}
