> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/general/run-webhook.md).

# Run Webhook

Calls a web address with an HTTP request that carries the workflow and its collected assets as JSON. Use it to hand a workflow's result to your own service or to any tool that accepts webhooks.

### Before you begin

* A reachable URL that accepts the request. The job sends no authentication header, so put any token in the URL if your endpoint needs one.
* Asset types: device, user, application, vulnerability, certificate, service, source\_code, ai, domain, license and policy. You pick them in the inventory selector at the top of the node form. A new job defaults to `device`.
* Columns: the columns you set per inventory with **Edit Columns** on the canvas toolbar.
* Job defaults: URL and Method can be saved in [Action Center Settings](broken://pages/755d278168b34a2a36cc8fe8c7533f44c34683ff).

### Settings

| Setting | Type   | Required | Default | Description                                                |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------- |
| URL     | Text   | Yes      | None    | The address to call. Not validated as a URL when you save. |
| Method  | Choice | No       | `post`  | Choices: `get`, `post`, `put`.                             |

### How it works

* Makes one request per workflow run, with a timeout of 10 seconds. The JSON body is a list with one object per selected inventory, whatever the method.
* Each object has: `asset_type`, `event` (the workflow trigger), `name` (workflow title), `description`, `count`, `ids` (asset IDs), `columns` and `assets` (one object per asset with a value for each column, `null` for empty values, list values joined with commas).
* The job does not check the HTTP status of the answer, so an error response such as 404 or 500 does not fail it. A connection error or a timeout does.
* It passes the same assets it received to the next node.

### Example

Set **URL** to `https://example.com/hooks/octoxlabs` and **Method** to `post`. The request body looks like this (values are placeholders; the `event` value depends on the workflow trigger):

```json
[
  {
    "asset_type": "device",
    "event": "manual",
    "name": "Hosts without agent",
    "description": "Weekly check",
    "count": 1,
    "ids": ["ASSET_ID"],
    "columns": ["Hostname"],
    "assets": [{"Hostname": "host-01.example.com"}]
  }
]
```

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/9322454bfeab680217d5354297769cc715319217">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values for this job.</td><td><a href="broken://pages/755d278168b34a2a36cc8fe8c7533f44c34683ff">Broken link</a></td></tr><tr><td><strong>Send Mail</strong></td><td>Send the assets by mail.</td><td><a href="broken://pages/5fe495f9a0fa90c866ef8901d9c2ee317b2b5c1c">Broken link</a></td></tr><tr><td><strong>Send Notification (Slack)</strong></td><td>Post a summary to Slack.</td><td><a href="broken://pages/54177332e840c988150b4d6db75198900ea29f82">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 2.5.0.
{% endhint %}
