> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Agent

Add a new agent.

<Note>
  External Documentation

  To learn more, visit the [Wazuh Server documentation](https://documentation.wazuh.com/current/user-manual/api/reference.html#operation/api.controllers.agent_controller.add_agent).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter         | Description                                                                                                                                |
  | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
  | IP                | The IP of the agent. Allowed values: IP, IP/NET, ANY.<br /><br />**Note:** If this is not included, the API will get the IP automatically. |
  | Name              | The name of the agent.                                                                                                                     |
  | Pretty            | Select to show results in human-readable format.                                                                                           |
  | Wait For Complete | Select to disable timeout response.                                                                                                        |
</div>

## Example Output

```json theme={"dark"}
{
	"data": {
		"id": "009",
		"key": "MDA5IE5ld0hvc3RfMiAxMC4wLjEwLjExIDhkNjllMzRiYTM2ZjcwMzgzZmVkNTIyNzk4MzFiZDg2NWQzZGRkZjJhMTkwZWR jMjY5YmRhOTY1ODU4M2JkMjg="
	},
	"error": 0
}
```

## Workflow Library Example

[Add Agent with Wazuh Server and Send Results Via Email](https://library.blinkops.com/workflows/add-agent-with-wazuh-server-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/add-agent-with-wazuh-server-and-send-results-via-email/canvas" />
</div>
