This is the documentation for Wazuh 3.9. Check out the docs for the latest version of Wazuh!

Using the Wazuh API

Wazuh API allows to register a Wazuh agent by running a single requests from the any host. This request will return the key for that agent, and then, you must manually add this key to the agent using manage_agents.

In this example, we will register a Wazuh agent in a Wazuh manager whose IP is 192.168.1.2.

Scripts to register the agents automatically

We have prepared a few scripts in different programming languages to help with the task of registering an agent with the API: