Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Zabbix Hosts API

Host configuration and management

Zabbix Hosts API is one of 10 APIs that Zabbix publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Hosts. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, authentication docs, and a changelog.

This API exposes 4 operations across 4 paths, and defines 7 schemas. It is described by OpenAPI 3.1.0, at version 7.0.

Requests are made against a single base URL, https://{host}/zabbix/api_jsonrpc.php.

4 operations 4 paths 7 schemas 4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
7.0
Base URL
https://{host}/zabbix/api_jsonrpc.php
Authentication
API Key
License
Resource Areas
1

Authentication & Security 1

Zabbix Hosts API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (ApiToken).

  • ApiToken — Zabbix API token obtained via user.login. Pass as "Bearer {token}" in the Authorization header (Zabbix 5.4+), or in the auth field of the JSON-RPC request body.

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 POST. Each is listed below with its method, path, parameters, and response codes.

Hosts 4

Host configuration and management

POST
/host.get
Get Hosts
host-get body → 200
POST
/host.create
Create Host
host-create body → 200
POST
/host.update
Update Host
host-update body → 200
POST
/host.delete
Delete Host
host-delete body → 200

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are HostInterface (8 properties), Host (6 properties), JsonRpcRequest (5 properties), JsonRpcIdsResponse (4 properties). Each schema is shown below with its type and property counts.

HostListResponse
object
4 properties
HostInterface
object
8 properties
HostGroup
object
2 properties
JsonRpcError
object
3 properties
JsonRpcIdsResponse
object
4 properties
JsonRpcRequest
object
5 properties 3 required
Host
object
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

zabbix-hosts-api-openapi.yml Raw ↑

Other APIs Zabbix publishes across the network.

Zabbix Actions API
Zabbix Authentication API
Zabbix Events API
Zabbix History API
Zabbix Host Groups API
Zabbix Items API
Zabbix Problems API
Zabbix Triggers API
Zabbix Users API