OPNsense Core API

Core OPNsense service controllers.

GitHub OpenAPI
Business capability
IT Operations Management BC-600.40

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /core/service/search Search OPNsense services · Search services #
Ask an LLM
“Which services are running on my firewall?”
“Can I search the list of OPNsense services?”
Tell an agent
Search OPNsense services for {searchPhrase}.
List the services matching {searchPhrase}, {rowCount} per page.
GET /core/firmware/status Check the firmware status · Get firmware status #
Ask an LLM
“Is my firewall firmware up to date?”
“What is the current firmware status of the system?”
Tell an agent
Show the firmware status.
Check whether the system firmware is current.
GET /core/system/status Get overall system status · Get system status #
Ask an LLM
“What is the overall system status of the firewall?”
“Can I get a summary of system status?”
Tell an agent
Show the system status.
Get overall system status information.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/opnsense:opnsense-core-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

opnsense-core-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OPNsense REST Core API
  description: 'REST API for OPNsense, an open source FreeBSD-based firewall and routing platform.

    The API follows a uniform URL pattern:

    `/api////[//...]`

    and uses HTTP Basic Authentication where the API key is supplied as the

    username and the API secret as the password.


    Only GET and POST verbs are used: GET retrieves data, POST creates,

    updates, or executes actions.'
  version: 1.0.0
  contact:
    name: OPNsense
    url: https://opnsense.org
  license:
    name: BSD 2-Clause
    url: https://opensource.org/licenses/BSD-2-Clause
servers:
- url: https://{host}/api
  description: OPNsense host API base path
  variables:
    host:
      default: opnsense.local
      description: Hostname or IP of the OPNsense firewall
security:
- basicAuth: []
tags:
- name: Core
  description: Core OPNsense service controllers.
paths:
  /core/service/search:
    post:
      tags:
      - Core
      summary: Search services
      description: Search the list of OPNsense services with grid parameters.
      operationId: searchCoreServices
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GridSearchRequest'
      responses:
        '200':
          description: Search result set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GridSearchResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /core/firmware/status:
    get:
      tags:
      - Core
      summary: Get firmware status
      description: Returns the current firmware status of the system.
      operationId: getFirmwareStatus
      responses:
        '200':
          description: Firmware status payload.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
  /core/system/status:
    get:
      tags:
      - Core
      summary: Get system status
      description: Returns overall system status information.
      operationId: getSystemStatus
      responses:
        '200':
          description: System status payload.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    GridSearchResponse:
      type: object
      properties:
        total:
          type: integer
        rowCount:
          type: integer
        current:
          type: integer
        rows:
          type: array
          items:
            type: object
            additionalProperties: true
    GridSearchRequest:
      type: object
      properties:
        current:
          type: integer
          description: Current page number (1-based).
          default: 1
        rowCount:
          type: integer
          description: Rows per page.
          default: 20
        sort:
          type: object
          additionalProperties:
            type: string
        searchPhrase:
          type: string
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
        message:
          type: string
  responses:
    Unauthorized:
      description: Authentication failed or missing.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: 'HTTP Basic Authentication with the API key as username and the

        API secret as password.

        '
externalDocs:
  description: OPNsense API Documentation
  url: https://docs.opnsense.org/development/api.html