{
  "openapi": "3.1.0",
  "info": {
    "title": "bgp43 customer API",
    "version": "1.0.0",
    "description": "REST API of the BGP43 control plane for customers. Every operation is also an MCP tool at /api/mcp. Guide: https://bgp43.net/docs/api/"
  },
  "servers": [
    {
      "url": "https://bgp43.net/api/v1"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "account",
      "description": "The account the token belongs to, its limits and monthly traffic."
    },
    {
      "name": "partner",
      "description": "Partner accounts only: create and manage client accounts. Every other endpoint acts on a client with the BGP43-Client header or client_id."
    },
    {
      "name": "catalog",
      "description": "Locations, routers, exchanges and BGP communities you can use. The same for every account."
    },
    {
      "name": "asn",
      "description": "Register an ASN and prove you control it, by mail to its registry contacts or with a remarks line in its aut-num object."
    },
    {
      "name": "tunnels",
      "description": "GRE, SIT, VXLAN and WireGuard tunnels to a BGP43 router. A ready tunnel carries BGP sessions or static BYOIP routing."
    },
    {
      "name": "bgp",
      "description": "Transit, peering and BYOIP sessions over a tunnel or an exchange, with their received routes and filters."
    },
    {
      "name": "byoip",
      "description": "Bring your own IP space: request a prefix, pass the RPKI and IRR checks and route it to a tunnel."
    },
    {
      "name": "traffic",
      "description": "Rates, daily and monthly volumes and time series of your tunnels and links."
    },
    {
      "name": "support",
      "description": "Open tickets, read the conversation and reply."
    },
    {
      "name": "rpki",
      "description": "A free hosted Krill CA: connect it to your RIR or LIR, publish ROAs and ASPAs, delegate to child CAs, or publish your own CA in the BGP43 repository."
    },
    {
      "name": "free_ipv6",
      "description": "Apply for a free /48 to /46, register it in the RIPE database and announce it through BGP43 or from your own ASN."
    },
    {
      "name": "tools",
      "description": "The public looking glass on every router."
    }
  ],
  "paths": {
    "/account": {
      "get": {
        "operationId": "get_account",
        "summary": "Get the account",
        "description": "Your account: email, verification, limits, this month's transit traffic against the monthly limit, object counts and the token in use.",
        "tags": [
          "account"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_account"
      }
    },
    "/partner": {
      "get": {
        "operationId": "get_partner",
        "summary": "Get the partnership",
        "description": "The partnership of this account: status, limits and the number of clients.",
        "tags": [
          "partner"
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": false,
        "x-mcp-tool": "get_partner"
      }
    },
    "/partner/clients": {
      "get": {
        "operationId": "list_partner_clients",
        "summary": "List clients",
        "description": "Every client account of the partnership, newest first.",
        "tags": [
          "partner"
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "description": "Only the client with this reference."
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": false,
        "x-mcp-tool": "list_partner_clients"
      },
      "post": {
        "operationId": "create_partner_client",
        "summary": "Create a client",
        "description": "Create a client account owned by the partnership. Use the returned id as BGP43-Client or client_id.",
        "tags": [
          "partner"
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": false,
        "x-mcp-tool": "create_partner_client",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "The client's name, shown to you and to BGP43 staff."
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Your own unique reference for the client."
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/partner/clients/{id}": {
      "delete": {
        "operationId": "delete_partner_client",
        "summary": "Delete a client",
        "description": "Delete the client account with every tunnel, BGP session, ASN, BYOIP prefix, hosted RPKI CA and Free IPv6 block it owns. Routing through them stops.",
        "tags": [
          "partner"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": false,
        "x-mcp-tool": "delete_partner_client",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {
                    "type": "boolean",
                    "description": "Must be true."
                  }
                },
                "required": [
                  "confirm"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_partner_client",
        "summary": "Get a client",
        "description": "One client with its limits, monthly traffic and a summary of its resources.",
        "tags": [
          "partner"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": false,
        "x-mcp-tool": "get_partner_client"
      },
      "patch": {
        "operationId": "update_partner_client",
        "summary": "Update a client",
        "description": "Rename a client or change its reference.",
        "tags": [
          "partner"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": false,
        "x-mcp-tool": "update_partner_client",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "The client's new name."
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "The new reference; an empty string clears it."
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/communities": {
      "get": {
        "operationId": "list_communities",
        "summary": "List BGP communities",
        "description": "Communities you can attach to your announcements to steer them (user) and the informational communities BGP43 sets on routes (system).",
        "tags": [
          "catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_communities"
      }
    },
    "/ixps": {
      "get": {
        "operationId": "list_ixps",
        "summary": "List exchanges",
        "description": "Internet exchanges BGP43 is present at. member tells whether one of your approved ASNs is at the same exchange according to PeeringDB, which an IXP peering session requires.",
        "tags": [
          "catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_ixps"
      }
    },
    "/locations": {
      "get": {
        "operationId": "list_locations",
        "summary": "List locations",
        "description": "Locations where you can create tunnels, with the address families and routers available there.",
        "tags": [
          "catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_locations"
      }
    },
    "/routers": {
      "get": {
        "operationId": "list_routers",
        "summary": "List routers",
        "description": "Every enabled BGP43 router with its ASN, public addresses and supported families.",
        "tags": [
          "catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_routers"
      }
    },
    "/asns": {
      "get": {
        "operationId": "list_asns",
        "summary": "List ASNs",
        "description": "Your ASN requests in every state: awaiting_email, pending_review, approved, rejected or cancelled.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_asns"
      },
      "post": {
        "operationId": "create_asn",
        "summary": "Register an ASN",
        "description": "Start the ownership check for an ASN. BGP43 reads its registry contacts; then prove control with verify_asn_email or verify_asn_remarks. An ASN registered to another account needs transfer: true and the same proof.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "create_asn",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "asn": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "The AS number, such as AS64500 or 64500."
                  },
                  "transfer": {
                    "type": "boolean",
                    "default": false,
                    "description": "Move the ASN from another account to this one after the ownership proof."
                  }
                },
                "required": [
                  "asn"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/asns/{id}": {
      "delete": {
        "operationId": "delete_asn",
        "summary": "Delete an ASN",
        "description": "Remove the ASN from the account, together with its tunnels and BGP sessions. Their router configuration is removed.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_asn"
      },
      "get": {
        "operationId": "get_asn",
        "summary": "Get an ASN",
        "description": "One ASN request. While it awaits verification it includes the verification code, the remarks line and the registry contacts that may answer the verification mail.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_asn"
      }
    },
    "/asns/{id}/cancel": {
      "post": {
        "operationId": "cancel_asn",
        "summary": "Cancel an ASN request",
        "description": "Withdraw an ASN request that is still being verified or reviewed.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "cancel_asn"
      }
    },
    "/asns/{id}/refresh-contacts": {
      "post": {
        "operationId": "refresh_asn_contacts",
        "summary": "Refresh registry contacts",
        "description": "Read the ASN's contact addresses from its registry again, for example after you updated them.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "refresh_asn_contacts"
      }
    },
    "/asns/{id}/refresh-prefix-limits": {
      "post": {
        "operationId": "refresh_asn_prefix_limits",
        "summary": "Refresh prefix limits",
        "description": "Read the ASN's maximum-prefix values from PeeringDB again and redeploy its transit sessions that rely on them.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "refresh_asn_prefix_limits"
      }
    },
    "/asns/{id}/verify/email": {
      "post": {
        "operationId": "verify_asn_email",
        "summary": "Check the verification mail",
        "description": "Look for a reply from a registry contact that contains the verification code. Send the mail first; matched tells whether it arrived.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "verify_asn_email"
      }
    },
    "/asns/{id}/verify/remarks": {
      "post": {
        "operationId": "verify_asn_remarks",
        "summary": "Check the aut-num remarks",
        "description": "Look up the ASN's aut-num object in its registry for the remarks line from get_asn. Add the line first; you can remove it after approval.",
        "tags": [
          "asn"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "verify_asn_remarks"
      }
    },
    "/tunnels": {
      "get": {
        "operationId": "list_tunnels",
        "summary": "List tunnels",
        "description": "Your tunnels with their router, addresses, status and traffic counters.",
        "tags": [
          "tunnels"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "creating",
                "ready",
                "failed",
                "disabled"
              ]
            },
            "description": "Only objects with this status."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_tunnels"
      },
      "post": {
        "operationId": "create_tunnel",
        "summary": "Create a tunnel",
        "description": "Create a tunnel to a BGP43 router. It starts in status creating; poll get_tunnel until it is ready. With create_bgp: true transit sessions for both families are created with it. A BYOIP tunnel (byoip_id) routes an approved prefix instead.",
        "tags": [
          "tunnels"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "create_tunnel",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "gre",
                      "gre6",
                      "sit",
                      "vxlan",
                      "vxlan6",
                      "wireguard",
                      "wireguard6"
                    ],
                    "description": "Tunnel type. The suffix 6 runs the tunnel over IPv6; sit carries IPv6 over IPv4."
                  },
                  "remote_endpoint": {
                    "type": "string",
                    "maxLength": 140,
                    "description": "Your public tunnel endpoint address. Its family must match the tunnel type. Optional for WireGuard, whose peer may connect from anywhere."
                  },
                  "location": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "A location key from list_locations, such as nl|amsterdam; BGP43 picks a router there."
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Tunnel name, up to 64 characters. Generated when omitted."
                  },
                  "asn_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "The ASN the tunnel belongs to. Optional when the account has exactly one approved ASN."
                  },
                  "byoip_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Create the tunnel for an approved BYOIP prefix instead of an ASN."
                  },
                  "routing_mode": {
                    "type": "string",
                    "enum": [
                      "static",
                      "bgp"
                    ],
                    "description": "For a BYOIP tunnel: static or bgp."
                  },
                  "create_bgp": {
                    "type": "boolean",
                    "default": false,
                    "description": "Also create downstream IPv4 and IPv6 BGP sessions over the tunnel."
                  },
                  "wireguard_public_key": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Your WireGuard public key (base64). Omit it to let BGP43 generate a key pair; the private key is then returned by get_tunnel."
                  },
                  "wireguard_connection": {
                    "type": "string",
                    "enum": [
                      "direct",
                      "nat64"
                    ],
                    "default": "direct",
                    "description": "nat64 lets a wireguard6 tunnel reach an IPv4-only endpoint through NAT64."
                  },
                  "remote_port": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 65535,
                    "description": "UDP port of your endpoint (WireGuard, VXLAN)."
                  },
                  "vxlan_id": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 16777215,
                    "description": "VXLAN network identifier. Allocated when omitted."
                  },
                  "mtu": {
                    "type": "integer",
                    "minimum": 1280,
                    "maximum": 9000,
                    "description": "Tunnel MTU."
                  }
                },
                "required": [
                  "type",
                  "location"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/tunnels/{id}": {
      "delete": {
        "operationId": "delete_tunnel",
        "summary": "Delete a tunnel",
        "description": "Delete a tunnel and every BGP session over it. Traffic stops when the router configuration is removed.",
        "tags": [
          "tunnels"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_tunnel"
      },
      "get": {
        "operationId": "get_tunnel",
        "summary": "Get a tunnel",
        "description": "One tunnel with ready-to-paste configuration examples for your side, the WireGuard keys and the IDs of its BGP sessions.",
        "tags": [
          "tunnels"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_tunnel"
      },
      "patch": {
        "operationId": "update_tunnel",
        "summary": "Update a tunnel",
        "description": "Change the name, your endpoint, WireGuard key, port or MTU. The router configuration is redeployed.",
        "tags": [
          "tunnels"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "update_tunnel",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "A display name. Generated when omitted."
                  },
                  "remote_endpoint": {
                    "type": "string",
                    "maxLength": 140,
                    "description": "Your public tunnel endpoint address. Its family must match the tunnel type. Optional for WireGuard, whose peer may connect from anywhere."
                  },
                  "wireguard_public_key": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Your WireGuard public key (base64). Omit it to let BGP43 generate a key pair; the private key is then returned by get_tunnel."
                  },
                  "remote_port": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 65535,
                    "description": "UDP port of your endpoint (WireGuard, VXLAN)."
                  },
                  "mtu": {
                    "type": "integer",
                    "minimum": 1280,
                    "maximum": 9000,
                    "description": "Tunnel MTU."
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/tunnels/{id}/move": {
      "post": {
        "operationId": "move_tunnel",
        "summary": "Move a tunnel",
        "description": "Move a tunnel and its sessions to another location or router. Its addresses on the BGP43 side change; update your configuration from get_tunnel.",
        "tags": [
          "tunnels"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "move_tunnel",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "location": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "A location key from list_locations, such as nl|amsterdam; BGP43 picks a router there."
                  },
                  "router_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "ID of a router from list_routers. Use either router_id or location."
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/bgp-sessions": {
      "get": {
        "operationId": "list_bgp_sessions",
        "summary": "List BGP sessions",
        "description": "Your BGP sessions with addresses, export policy, prefix limits and the latest BIRD state and route counts.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "downstream",
                "byoip",
                "peer",
                "ixp",
                "upstream",
                "ibgp"
              ]
            },
            "description": "Only sessions of this type: downstream (transit), byoip, peer or ixp."
          },
          {
            "name": "tunnel_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Only sessions over this tunnel."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_bgp_sessions"
      },
      "post": {
        "operationId": "create_bgp_session",
        "summary": "Create a BGP session",
        "description": "Create a session over a ready tunnel or at an exchange. transit gets the export_policy you choose; peer exchanges cone routes; byoip announces approved BYOIP prefixes over a BYOIP tunnel in bgp mode and creates a session per family.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "create_bgp_session",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "transit",
                      "peer",
                      "byoip"
                    ],
                    "description": "transit (a downstream session that receives transit), peer (settlement-free peering) or byoip."
                  },
                  "transport": {
                    "type": "string",
                    "enum": [
                      "tunnel",
                      "ixp"
                    ],
                    "default": "tunnel",
                    "description": "tunnel uses tunnel_id; ixp peers over an exchange LAN given by ixp_id."
                  },
                  "tunnel_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "ID of one of your tunnels."
                  },
                  "ixp_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Exchange from list_ixps, for transport ixp."
                  },
                  "asn_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "ID of one of your approved ASNs from list_asns (not the AS number)."
                  },
                  "family": {
                    "type": "string",
                    "enum": [
                      "v4",
                      "v6"
                    ],
                    "description": "v4 or v6. Required when the tunnel carries both families."
                  },
                  "prefixes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "For kind byoip: the approved prefixes to announce."
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "A display name. Generated when omitted."
                  },
                  "bfd": {
                    "type": "boolean",
                    "default": false,
                    "description": "Enable BFD on the session."
                  },
                  "export_policy": {
                    "type": "string",
                    "enum": [
                      "full",
                      "default",
                      "cone",
                      "none"
                    ],
                    "description": "Routes BGP43 exports to you. Defaults to full for transit and cone for peering."
                  },
                  "irr_as_set": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "IRR AS-SET of a transit session, only where the account may set it (Own IRR AS-SET for a partner's client). Peering sessions always use the peer's PeeringDB AS-SET."
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/bgp-sessions/{id}": {
      "delete": {
        "operationId": "delete_bgp_session",
        "summary": "Delete a BGP session",
        "description": "Shut down and remove a BGP session.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_bgp_session"
      },
      "get": {
        "operationId": "get_bgp_session",
        "summary": "Get a BGP session",
        "description": "One BGP session, including its AS-SET check, BFD profile and BYOIP prefixes.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_bgp_session"
      },
      "patch": {
        "operationId": "update_bgp_session",
        "summary": "Update a BGP session",
        "description": "Change the name, BFD or export policy (and the AS-SET of a downstream session, where the partnership allows it). The router configuration is redeployed.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "update_bgp_session",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "A display name. Generated when omitted."
                  },
                  "bfd": {
                    "type": "boolean",
                    "description": "Enable BFD on the session."
                  },
                  "export_policy": {
                    "type": "string",
                    "enum": [
                      "full",
                      "default",
                      "cone",
                      "none"
                    ],
                    "description": "What BGP43 sends you: full table, default route only, the BGP43 cone, or nothing."
                  },
                  "irr_as_set": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "IRR AS-SET of a transit session, only where the account may set it (Own IRR AS-SET for a partner's client). Peering sessions always use the peer's PeeringDB AS-SET."
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/bgp-sessions/{id}/recheck-as-set": {
      "post": {
        "operationId": "recheck_bgp_as_set",
        "summary": "Recheck the AS-SET",
        "description": "Expand the session's AS-SET again and check it for loops through transit-free networks. A session disabled by the check is restored when it passes.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "recheck_bgp_as_set"
      }
    },
    "/bgp-sessions/{id}/refresh-prefix-limits": {
      "post": {
        "operationId": "refresh_bgp_prefix_limits",
        "summary": "Refresh session prefix limits",
        "description": "Read the session's maximum-prefix limits from PeeringDB again.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "refresh_bgp_prefix_limits"
      }
    },
    "/bgp-sessions/{id}/refresh-routes": {
      "post": {
        "operationId": "refresh_bgp_routes",
        "summary": "Refresh received routes",
        "description": "Ask for the received routes of the session's router to be read again soon.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "refresh_bgp_routes"
      }
    },
    "/bgp-sessions/{id}/routes": {
      "get": {
        "operationId": "list_bgp_routes",
        "summary": "List received routes",
        "description": "Routes BGP43 received from you on a session, accepted or rejected by the import filter with the reason, AS path and communities. The list is refreshed periodically; refresh_bgp_routes asks for an update.",
        "tags": [
          "bgp"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "accepted",
                "rejected"
              ]
            },
            "description": "Only accepted or only rejected routes."
          },
          {
            "name": "prefix",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "description": "Only prefixes that start with this text, such as 2001:db8."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 500,
              "minimum": 1,
              "maximum": 5000
            },
            "description": "Maximum number of items to return."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            },
            "description": "Number of items to skip."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_bgp_routes"
      }
    },
    "/byoip": {
      "get": {
        "operationId": "list_byoip",
        "summary": "List BYOIP prefixes",
        "description": "Your BYOIP requests with their review state, RPKI and IRR results and the tunnel they are routed to.",
        "tags": [
          "byoip"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_byoip"
      },
      "post": {
        "operationId": "create_byoip",
        "summary": "Request BYOIP",
        "description": "Ask to announce one of your own prefixes through BGP43; submit one request per prefix. The prefix needs a ROA that makes the BGP43 origin RPKI-valid and an exact IRR route object for that origin; an operator then reviews the request.",
        "tags": [
          "byoip"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "create_byoip",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prefix": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "The prefix to announce: IPv4 /24 or shorter (/23, /22, ...), IPv6 /48 or shorter (/47, /46, ...)."
                  },
                  "usage_type": {
                    "type": "string",
                    "enum": [
                      "anycast",
                      "hosting",
                      "infrastructure",
                      "lab",
                      "other",
                      "personal",
                      "vpn"
                    ],
                    "description": "What the space is used for."
                  },
                  "usage_detail": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "A few words on the network behind the prefix."
                  },
                  "terms_accepted": {
                    "type": "boolean",
                    "description": "Confirms that you are authorised to use the resource and accept the terms of service. Must be true."
                  }
                },
                "required": [
                  "prefix",
                  "usage_type",
                  "terms_accepted"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/byoip/{id}": {
      "delete": {
        "operationId": "delete_byoip",
        "summary": "Delete a BYOIP request",
        "description": "Remove the request. An announced prefix is withdrawn first.",
        "tags": [
          "byoip"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_byoip"
      },
      "get": {
        "operationId": "get_byoip",
        "summary": "Get a BYOIP prefix",
        "description": "One BYOIP request.",
        "tags": [
          "byoip"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_byoip"
      }
    },
    "/byoip/{id}/attach": {
      "post": {
        "operationId": "attach_byoip",
        "summary": "Route BYOIP to a tunnel",
        "description": "Route an approved prefix to one of your ready tunnels, statically or over a BYOIP BGP session.",
        "tags": [
          "byoip"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "attach_byoip",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tunnel_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "ID of one of your tunnels."
                  },
                  "routing_mode": {
                    "type": "string",
                    "enum": [
                      "static",
                      "bgp"
                    ],
                    "description": "static routes the prefix to the tunnel; bgp expects you to announce it over a BYOIP BGP session."
                  }
                },
                "required": [
                  "tunnel_id",
                  "routing_mode"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/byoip/{id}/detach": {
      "post": {
        "operationId": "detach_byoip",
        "summary": "Detach BYOIP from its tunnel",
        "description": "Stop routing the prefix to its tunnel. The announcement is withdrawn.",
        "tags": [
          "byoip"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "detach_byoip"
      }
    },
    "/traffic": {
      "get": {
        "operationId": "get_traffic",
        "summary": "Get traffic overview",
        "description": "Current rate and daily and monthly volume per tunnel and per directly connected link, and the month's total against the monthly transit limit.",
        "tags": [
          "traffic"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_traffic"
      }
    },
    "/traffic/series": {
      "get": {
        "operationId": "get_traffic_series",
        "summary": "Get a traffic time series",
        "description": "Inbound and outbound rates over a time range, for the whole account or one tunnel.",
        "tags": [
          "traffic"
        ],
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1h",
                "6h",
                "24h",
                "7d",
                "30d",
                "month"
              ],
              "default": "24h"
            },
            "description": "Time range."
          },
          {
            "name": "tunnel_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Only this tunnel. Omit for the whole account."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_traffic_series"
      }
    },
    "/tunnels/{id}/traffic": {
      "get": {
        "operationId": "get_tunnel_traffic",
        "summary": "Get tunnel traffic",
        "description": "Traffic graph and totals of one tunnel over a time range.",
        "tags": [
          "traffic"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1h",
                "6h",
                "24h",
                "7d",
                "30d",
                "month"
              ],
              "default": "24h"
            },
            "description": "Time range of the graph."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_tunnel_traffic"
      }
    },
    "/support/tickets": {
      "get": {
        "operationId": "list_tickets",
        "summary": "List support tickets",
        "description": "Your support tickets, newest activity first.",
        "tags": [
          "support"
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "closed"
              ]
            },
            "description": "open (default) or closed tickets."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_tickets"
      },
      "post": {
        "operationId": "create_ticket",
        "summary": "Open a ticket",
        "description": "Open a support ticket. Replies arrive by mail and in get_ticket.",
        "tags": [
          "support"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "create_ticket",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subject": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "A short subject."
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 20000,
                    "description": "Text of the message."
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "general",
                      "request",
                      "bgp",
                      "tunnel",
                      "asn",
                      "byoip",
                      "peering",
                      "sponsorship",
                      "account",
                      "abuse"
                    ],
                    "default": "general",
                    "description": "The topic of the request."
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "high"
                    ],
                    "default": "normal",
                    "description": "high only for outages that affect your traffic."
                  },
                  "related": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "An object the ticket is about, such as a tunnel name, a prefix or an ASN."
                  }
                },
                "required": [
                  "subject",
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/support/tickets/{id}": {
      "get": {
        "operationId": "get_ticket",
        "summary": "Read a ticket",
        "description": "One ticket with its whole conversation. Reading it marks it as seen.",
        "tags": [
          "support"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_ticket"
      }
    },
    "/support/tickets/{id}/reply": {
      "post": {
        "operationId": "reply_ticket",
        "summary": "Reply to a ticket",
        "description": "Add a message to a ticket. A resolved ticket is reopened.",
        "tags": [
          "support"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "reply_ticket",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "type": "string",
                    "maxLength": 20000,
                    "description": "Text of the message."
                  }
                },
                "required": [
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/support/tickets/{id}/resolve": {
      "post": {
        "operationId": "resolve_ticket",
        "summary": "Resolve a ticket",
        "description": "Mark a ticket as resolved when you need no more help.",
        "tags": [
          "support"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "resolve_ticket"
      }
    },
    "/rpki": {
      "get": {
        "operationId": "get_rpki",
        "summary": "Get the hosted RPKI state",
        "description": "Your hosted CA as Krill reports it: setup step, parents, delegated resources, repository, ROAs, ASPAs, children, coverage of your announcements and limits, plus your own CAs that publish in the BGP43 repository.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "overview",
                "roas",
                "aspas",
                "objects",
                "registry",
                "children",
                "repository",
                "publish"
              ],
              "default": "overview"
            },
            "description": "Which part of the CA to include."
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "roa",
                "asa",
                "mft",
                "crl",
                "cer"
              ]
            },
            "description": "For view objects: only published objects of this kind."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_rpki"
      }
    },
    "/rpki/aspas": {
      "delete": {
        "operationId": "delete_rpki_aspa",
        "summary": "Delete an ASPA",
        "description": "Remove the ASPA of a customer ASN.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_rpki_aspa",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "The customer ASN of the ASPA."
                  }
                },
                "required": [
                  "customer"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "post": {
        "operationId": "add_rpki_aspa",
        "summary": "Set an ASPA",
        "description": "Publish or replace the ASPA of a customer ASN with its full list of upstream providers.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "add_rpki_aspa",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "Your ASN the ASPA is for."
                  },
                  "providers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every provider ASN of the customer ASN, such as AS64500."
                  }
                },
                "required": [
                  "customer",
                  "providers"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/rpki/ca": {
      "delete": {
        "operationId": "delete_rpki_ca",
        "summary": "Delete the hosted CA",
        "description": "Delete the CA in Krill with every ROA, ASPA and child. Routes it protected may become RPKI-unknown or invalid.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_rpki_ca",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {
                    "type": "string",
                    "enum": [
                      "delete"
                    ],
                    "description": "The literal string delete, to confirm the removal."
                  }
                },
                "required": [
                  "confirm"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create_rpki_ca",
        "summary": "Reserve a hosted CA",
        "description": "Reserve the account's hosted CA handle. Nothing is created in Krill until provision_rpki_ca.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "create_rpki_ca"
      }
    },
    "/rpki/ca/child-request": {
      "get": {
        "operationId": "get_rpki_child_request",
        "summary": "Get the Child Request",
        "description": "The RFC 8183 Child Request XML to upload to your RIR or LIR portal, which answers with a Parent Response for add_rpki_parent.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_rpki_child_request"
      }
    },
    "/rpki/ca/provision": {
      "post": {
        "operationId": "provision_rpki_ca",
        "summary": "Provision the CA",
        "description": "Create the CA in Krill so that get_rpki_child_request can return its Child Request.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "provision_rpki_ca"
      }
    },
    "/rpki/ca/refresh": {
      "post": {
        "operationId": "refresh_rpki_ca",
        "summary": "Sync with parents",
        "description": "Ask Krill to sync the CA with its parents and repository now.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "refresh_rpki_ca"
      }
    },
    "/rpki/children": {
      "delete": {
        "operationId": "delete_rpki_child",
        "summary": "Remove a child CA",
        "description": "Remove a child and revoke the certificates issued to it.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_rpki_child",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "handle": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "The handle of the parent or child CA, as shown by get_rpki."
                  },
                  "confirm": {
                    "type": "string",
                    "enum": [
                      "delete"
                    ],
                    "description": "The literal string delete, to confirm the removal."
                  }
                },
                "required": [
                  "handle",
                  "confirm"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "update_rpki_child",
        "summary": "Change a child's resources",
        "description": "Replace the resources delegated to a child.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "update_rpki_child",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "handle": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "The handle of the parent or child CA, as shown by get_rpki."
                  },
                  "asn": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "ASNs to delegate, separated by commas or spaces."
                  },
                  "ipv4": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "IPv4 prefixes to delegate, separated by commas or spaces."
                  },
                  "ipv6": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "IPv6 prefixes to delegate, separated by commas or spaces."
                  }
                },
                "required": [
                  "handle"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "post": {
        "operationId": "add_rpki_child",
        "summary": "Add a child CA",
        "description": "Delegate part of your resources to another CA from its Child Request. Needs Child CA access, which support enables on request.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "add_rpki_child",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "handle": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "A handle for the child."
                  },
                  "child_request": {
                    "type": "string",
                    "maxLength": 262144,
                    "description": "The child's Child Request XML, as text."
                  },
                  "asn": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "ASNs to delegate, separated by commas or spaces."
                  },
                  "ipv4": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "IPv4 prefixes to delegate, separated by commas or spaces."
                  },
                  "ipv6": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "IPv6 prefixes to delegate, separated by commas or spaces."
                  }
                },
                "required": [
                  "handle",
                  "child_request"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/rpki/children/parent-response": {
      "get": {
        "operationId": "get_rpki_child_parent_response",
        "summary": "Get a child's Parent Response",
        "description": "The Parent Response XML to give to the child's operator.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "name": "handle",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 160
            },
            "description": "The handle of the parent or child CA, as shown by get_rpki."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_rpki_child_parent_response"
      }
    },
    "/rpki/notes": {
      "put": {
        "operationId": "set_rpki_note",
        "summary": "Set a note",
        "description": "Save a private comment on a ROA, an ASPA, a parent, the repository, or a display name for a parent. Notes stay in BGP43 and never reach Krill.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "set_rpki_note",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "roa",
                      "aspa",
                      "parent",
                      "parent_name",
                      "repository"
                    ],
                    "description": "What the note belongs to."
                  },
                  "key": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "The object: prefix|asn|max_length of a ROA, the customer ASN of an ASPA or the parent handle. Empty for the repository."
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The note. Empty removes it."
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/rpki/parents": {
      "delete": {
        "operationId": "delete_rpki_parent",
        "summary": "Disconnect a parent",
        "description": "Remove a parent. ROAs and ASPAs that depend on its resources are no longer published.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_rpki_parent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "handle": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "The handle of the parent or child CA, as shown by get_rpki."
                  }
                },
                "required": [
                  "handle"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "post": {
        "operationId": "add_rpki_parent",
        "summary": "Connect a parent",
        "description": "Connect the CA to a parent with the Parent Response XML from your RIR or LIR. The resources it delegates become available for ROAs and ASPAs.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "add_rpki_parent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parent_response": {
                    "type": "string",
                    "maxLength": 262144,
                    "description": "The Parent Response XML, as text."
                  }
                },
                "required": [
                  "parent_response"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/rpki/publishers": {
      "get": {
        "operationId": "list_rpki_publishers",
        "summary": "List publishers",
        "description": "Your own CAs that use BGP43 as their publication server.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "list_rpki_publishers"
      },
      "post": {
        "operationId": "create_rpki_publisher",
        "summary": "Add a publisher",
        "description": "Host the repository of a CA you run yourself, from its RFC 8183 Publisher Request. Returns the publisher; fetch the Repository Response with get_rpki_publisher_response.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "create_rpki_publisher",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "publisher_request": {
                    "type": "string",
                    "maxLength": 262144,
                    "description": "The Publisher Request XML, as text."
                  }
                },
                "required": [
                  "publisher_request"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/rpki/publishers/{id}": {
      "delete": {
        "operationId": "delete_rpki_publisher",
        "summary": "Remove a publisher",
        "description": "Remove a publisher and everything it published.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_rpki_publisher",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {
                    "type": "string",
                    "enum": [
                      "delete"
                    ],
                    "description": "The literal string delete, to confirm the removal."
                  }
                },
                "required": [
                  "confirm"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/rpki/publishers/{id}/repository-response": {
      "get": {
        "operationId": "get_rpki_publisher_response",
        "summary": "Get a Repository Response",
        "description": "The Repository Response XML to load into your own CA.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The object ID, as returned by the list and create operations."
          },
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_rpki_publisher_response"
      }
    },
    "/rpki/roas": {
      "delete": {
        "operationId": "delete_rpki_roa",
        "summary": "Delete a ROA",
        "description": "Remove a ROA. Matching announcements may become RPKI-invalid or unknown.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "delete_rpki_roa",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prefix": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "A prefix in CIDR notation."
                  },
                  "asn": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "An AS number such as AS64500 or 64500."
                  },
                  "max_length": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 128,
                    "description": "Maximum prefix length the ROA authorises. Defaults to the prefix length."
                  }
                },
                "required": [
                  "prefix",
                  "asn"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "update_rpki_roa",
        "summary": "Change a ROA",
        "description": "Replace a ROA in one step: the new one is added and the old one removed together.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "update_rpki_roa",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "old_prefix": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Prefix of the ROA to replace."
                  },
                  "old_asn": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "ASN of the ROA to replace."
                  },
                  "old_max_length": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 128,
                    "description": "Max length of the ROA to replace."
                  },
                  "prefix": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "A prefix in CIDR notation."
                  },
                  "asn": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "An AS number such as AS64500 or 64500."
                  },
                  "max_length": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 128,
                    "description": "Maximum prefix length the ROA authorises. Defaults to the prefix length."
                  }
                },
                "required": [
                  "old_prefix",
                  "old_asn",
                  "prefix",
                  "asn"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "post": {
        "operationId": "add_rpki_roa",
        "summary": "Add a ROA",
        "description": "Authorise an ASN to originate a prefix from your delegated resources.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "add_rpki_roa",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prefix": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "A prefix in CIDR notation."
                  },
                  "asn": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "An AS number such as AS64500 or 64500."
                  },
                  "max_length": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 128,
                    "description": "Maximum prefix length the ROA authorises. Defaults to the prefix length."
                  }
                },
                "required": [
                  "prefix",
                  "asn"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/rpki/roas/protect-all": {
      "post": {
        "operationId": "protect_rpki_all",
        "summary": "Protect every announcement",
        "description": "Create exact ROAs for every announcement from your resources that Krill sees as not covered.",
        "tags": [
          "rpki"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "protect_rpki_all"
      }
    },
    "/free-ipv6": {
      "get": {
        "operationId": "get_free_ipv6",
        "summary": "Get Free IPv6",
        "description": "Your Free IPv6 application or block with its review, registration and publication progress, the RIPE objects BGP43 maintains for it, the idle-release deadline and the choices available for the next step.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "get_free_ipv6"
      },
      "post": {
        "operationId": "apply_free_ipv6",
        "summary": "Apply for Free IPv6",
        "description": "Apply for a free IPv6 block. An operator reviews the application and may approve a smaller size; the decision is mailed. An account holds at most one application or block.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "201": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "apply_free_ipv6",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "size": {
                    "type": "integer",
                    "enum": [
                      48,
                      47,
                      46
                    ],
                    "description": "Requested prefix length."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "byoip",
                      "asn"
                    ],
                    "description": "byoip announces the block from the BGP43 network; asn announces it from one of your own approved ASNs (asn_id)."
                  },
                  "asn_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "For mode asn: the approved ASN that will originate the block."
                  },
                  "justification": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "What you will use the space for."
                  },
                  "terms_accepted": {
                    "type": "boolean",
                    "description": "Confirms that you are authorised to use the resource and accept the terms of service. Must be true."
                  }
                },
                "required": [
                  "size",
                  "mode",
                  "justification",
                  "terms_accepted"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/free-ipv6/cancel": {
      "post": {
        "operationId": "cancel_free_ipv6",
        "summary": "Withdraw the application",
        "description": "Withdraw an application that has not been approved yet.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "cancel_free_ipv6"
      }
    },
    "/free-ipv6/details": {
      "put": {
        "operationId": "update_free_ipv6_details",
        "summary": "Update RIPE details",
        "description": "Change netname, country, description, organisation and contacts of a published block.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "update_free_ipv6_details",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "netname": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "The netname of the inet6num object (letters, digits, - and _)."
                  },
                  "country": {
                    "type": "string",
                    "maxLength": 2,
                    "description": "ISO 3166 country code of the network, such as DE."
                  },
                  "descr": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "A description line for the inet6num object."
                  },
                  "org": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Your RIPE organisation (ORG-...). It must carry mnt-ref: BGP43-MNT."
                  },
                  "admin_c": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "NIC handle of the administrative contact (a RIPE person or role)."
                  },
                  "tech_c": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "NIC handle of the technical contact (a RIPE person or role)."
                  }
                },
                "required": [
                  "netname",
                  "country",
                  "org",
                  "admin_c",
                  "tech_c"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/free-ipv6/dns": {
      "put": {
        "operationId": "update_free_ipv6_dns",
        "summary": "Update reverse DNS",
        "description": "Change the nameservers and DNSSEC DS records of the reverse DNS delegation. A /47 or /46 is delegated as its /48 zones, each with its own DS records.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "update_free_ipv6_dns",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nameservers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Nameservers for reverse DNS, at least two to delegate the zone. An empty list removes the delegation."
                  },
                  "ds_records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "DNSSEC: DS or DNSKEY records of the reverse zones in zone-file form (zone. IN DS ... or zone. IN DNSKEY ...), one per item; a DNSKEY becomes its SHA-256 DS. A /48 also takes bare RDATA. An empty list removes every DS record; omitted, the stored records stay."
                  }
                },
                "required": [
                  "nameservers"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/free-ipv6/draft": {
      "put": {
        "operationId": "prepare_free_ipv6",
        "summary": "Save RIPE details as a draft",
        "description": "Check and keep the RIPE details while the application is under review. Nothing is sent to RIPE; every lookup is repeated at registration.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "prepare_free_ipv6",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "netname": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "The netname of the inet6num object (letters, digits, - and _)."
                  },
                  "country": {
                    "type": "string",
                    "maxLength": 2,
                    "description": "ISO 3166 country code of the network, such as DE."
                  },
                  "descr": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "A description line for the inet6num object."
                  },
                  "org": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Your RIPE organisation (ORG-...). It must carry mnt-ref: BGP43-MNT."
                  },
                  "admin_c": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "NIC handle of the administrative contact (a RIPE person or role)."
                  },
                  "tech_c": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "NIC handle of the technical contact (a RIPE person or role)."
                  },
                  "nameservers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Nameservers for reverse DNS, at least two to delegate the zone. An empty list removes the delegation."
                  }
                },
                "required": [
                  "netname",
                  "country",
                  "org",
                  "admin_c",
                  "tech_c"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/free-ipv6/origin": {
      "put": {
        "operationId": "change_free_ipv6_origin",
        "summary": "Change the origin",
        "description": "Announce the block from the BGP43 network or from one of your approved ASNs. The new ROA is signed before the old one is revoked.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "change_free_ipv6_origin",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "byoip",
                      "asn"
                    ],
                    "description": "byoip announces the block from the BGP43 network; asn announces it from one of your own approved ASNs (asn_id)."
                  },
                  "asn_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "For mode asn: the approved ASN that originates the block."
                  },
                  "max_length": {
                    "type": "integer",
                    "minimum": 46,
                    "maximum": 48,
                    "description": "For mode asn: the ROA max length, up to /48."
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/free-ipv6/register": {
      "post": {
        "operationId": "register_free_ipv6",
        "summary": "Register the block",
        "description": "After approval: register the block in the RIPE database and start publishing it. BGP43 signs the ROA, creates inet6num and route6, links BYOIP routing and delegates reverse DNS.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "register_free_ipv6",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "netname": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "The netname of the inet6num object (letters, digits, - and _)."
                  },
                  "country": {
                    "type": "string",
                    "maxLength": 2,
                    "description": "ISO 3166 country code of the network, such as DE."
                  },
                  "descr": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "A description line for the inet6num object."
                  },
                  "org": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Your RIPE organisation (ORG-...). It must carry mnt-ref: BGP43-MNT."
                  },
                  "admin_c": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "NIC handle of the administrative contact (a RIPE person or role)."
                  },
                  "tech_c": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "NIC handle of the technical contact (a RIPE person or role)."
                  },
                  "nameservers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Nameservers for reverse DNS, at least two to delegate the zone. An empty list removes the delegation."
                  },
                  "ds_records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "DNSSEC: DS or DNSKEY records of the reverse zones in zone-file form (zone. IN DS ... or zone. IN DNSKEY ...), one per item; a DNSKEY becomes its SHA-256 DS. A /48 also takes bare RDATA. An empty list removes every DS record; omitted, the stored records stay."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "byoip",
                      "asn"
                    ],
                    "description": "byoip announces the block from the BGP43 network; asn announces it from one of your own approved ASNs (asn_id)."
                  },
                  "asn_id": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "For mode asn: the approved ASN that originates the block."
                  },
                  "max_length": {
                    "type": "integer",
                    "minimum": 46,
                    "maximum": 48,
                    "description": "For mode asn: the ROA max length, up to /48."
                  }
                },
                "required": [
                  "netname",
                  "country",
                  "org",
                  "admin_c",
                  "tech_c",
                  "mode"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/free-ipv6/release": {
      "post": {
        "operationId": "release_free_ipv6",
        "summary": "Release the block",
        "description": "Give the block back. BGP43 withdraws routing, removes the ROA and the RIPE objects and does not reuse the space.",
        "tags": [
          "free_ipv6"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "write",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "release_free_ipv6",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm_prefix": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "The block's prefix, to confirm the release of a registered block."
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/looking-glass": {
      "post": {
        "operationId": "run_looking_glass",
        "summary": "Run the looking glass",
        "description": "Run a read-only looking glass query (BIRD route lookups, ping, traceroute, whois) on one or every router. It shares the per-address limit of the public page.",
        "tags": [
          "tools"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Client"
          }
        ],
        "responses": {
          "200": {
            "description": "The operation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "x-bgp43-scope": "read",
        "x-bgp43-partner-client": true,
        "x-mcp-tool": "run_looking_glass",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "route_for",
                      "route_for_all",
                      "route_origin",
                      "route_where",
                      "protocols",
                      "protocol_detail",
                      "route_protocol",
                      "route_export_protocol",
                      "route_filtered_protocol",
                      "ping",
                      "traceroute",
                      "status",
                      "whois"
                    ],
                    "default": "protocols",
                    "description": "The query to run."
                  },
                  "target": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "The prefix, address, protocol or ASN the action needs."
                  },
                  "router": {
                    "type": "string",
                    "default": "all",
                    "maxLength": 100,
                    "description": "A router name from list_routers, or all."
                  }
                },
                "required": [
                  "action"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "A personal access token from Dashboard → API (starts with bgp43_)."
      }
    },
    "parameters": {
      "Client": {
        "name": "BGP43-Client",
        "in": "header",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "description": "Partners only: act for this client account. Equivalent to the client_id parameter."
      }
    },
    "responses": {
      "Error": {
        "description": "An error with a stable code and a message that is safe to show.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "params": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}