Add a new agent.
External DocumentationTo learn more, visit the Wazuh Server documentation.

Parameters

ParameterDescription
IPThe IP of the agent. Allowed values: IP, IP/NET, ANY.

Note: If this is not included, the API will get the IP automatically.
NameThe name of the agent.
PrettySelect to show results in human-readable format.
Wait For CompleteSelect to disable timeout response.

Example Output

{
	"data": {
		"id": "009",
		"key": "MDA5IE5ld0hvc3RfMiAxMC4wLjEwLjExIDhkNjllMzRiYTM2ZjcwMzgzZmVkNTIyNzk4MzFiZDg2NWQzZGRkZjJhMTkwZWR jMjY5YmRhOTY1ODU4M2JkMjg="
	},
	"error": 0
}

Workflow Library Example

Add Agent with Wazuh Server and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop