---
title: third-party integration
slug: neurons-api/third-party-integration
createdAt: 2026-08-19T08:34:10.075Z
---

The following lists the HTTP methods, their descriptions, and expected results returned when the third-party integration is completed successfully.

**HTTP Method - GET**

Returns a resource and resource collection.

- [/api/external/on-demand-bots](docId\:HfaZZElI2d_fo3U1fuj0j)
- [/api/external/getBotInputs/ ](docId\:HfaZZElI2d_fo3U1fuj0j)
- [/api/external/getLogMessages/  / ](docId\:HfaZZElI2d_fo3U1fuj0j)
- [/api/external/getResults/ ](docId\:HfaZZElI2d_fo3U1fuj0j)

**HTTP Method - POST**

Returns an action and creates a new resource (ID set by service).

- [/api/external/runBot](docId\:HfaZZElI2d_fo3U1fuj0j)

## GET Method

### Request URI

Example request uri: `https://assistants-nvu.ivanticloud.com`

**/api/external/on-demand-bots**

This request gets all the on-demand bots.

### Example Response

```xml
[
  {
    "name": "Juan Bot",
    "description": "",
    "getBotInputs": {
      "verb": "GET",
      "url": "/api/external/getBotInputs/642d4d01091245ad5c98c90c"
    },
    "runBot": {
      "verb": "POST",
      "url": "/api/external/runBot",
      "body": {
        "botDefinitionId": "642d4d01091245ad5c98c90c",
        "agentIds": [],
        "inputs": []
      }
    }
  }
]
```

**/api/external/getBotInputs/**

Gets all the inputs that are needed to run the bot.

| Name               | Type   | Description                                  |
| ------------------ | ------ | -------------------------------------------- |
| botDefinitionId \* | String | The unique identifier of the bot definition. |

### Example Response

```xml
[
  {
    "name": "Antivirus Name",
    "optional": false,
    "type": "string",
    "choices": [],
    "inputId": "acd5ac4a-15cc-4cf8-b79e-57bcfa01a5b4",
    "inputValue": null
  }
]
```

**/api/external/getLogMessages//**

Gets all log messages for a given device.

| Name                    | Type   | Description                                    |
| ----------------------- | ------ | ---------------------------------------------- |
| workflowInvocationId \* | String | The unique identifier of the bot invocation.   |
| deviceId \*             | String | The unique identifier of the Ivanti device id. |

### Example Response

```xml
{
  "state": "Success",
  "messages": [
    {
      "created": "2023-10-26T10:12.010Z",
      "message": "Initiating Antivirus stage"
    },
    {
      "created": "2023-10-26T10:13.042Z",
      "message": "Completed Antivirus stage"
    }
  ]
}
```

**/api/external/getResults/**

Gets the results for a bot when provided with the workflowInvocationId.

| Name                    | Type   | Description                                  |
| ----------------------- | ------ | -------------------------------------------- |
| workflowInvocationId \* | String | The unique identifier of the bot invocation. |

### Response Output Example

```xml
{
  "tenantId": "11111111-1111-1111-1111-84ba20252626",
  "workflowInvocationId": "4cb2a32d-0d38-49a0-b5e2-3aaaca32edff",
  "workflowDefinitionId": "642d4d01091245ad5c98c90c/2",
  "botName": "Juan",
  "invocationDate": "2023-04-05T11:05:41.050Z",
  "state": "Success",
  "started": "2023-04-05T11:05:46.798Z",
  "finished": "2023-04-05T11:06:00.511Z",
  "targeting": {
    "agentGroups": [],
    "devices": [
      {
        "id": "P1CO76D75AF6094D2817EDC446C2088621535DDC",
        "name": "JG-VM"
      }
    ]
  },
  "inputs": [
    {
      "inputId": "acd5ac4a-15cc-4cf8-b79e-57bcfa01a5b4",
      "inputValue": "Microsoft Defender"
    }
  ],
  "results": [
    {
      "deviceId": "P1CO76D75AF6094D2817EDC446C2088621535DDC",
      "deviceName": "JG-VM",
      "state": "Complete"
    }
  ]
}
```

## POST Method

### Request URI

Example request uri: `https://assistants-nvu.ivanticloud.com`

```bash
https://assistants-nvu.ivanticloud.com
```

**/api/external/runBot**

Runs an on-demand bot when provided with the botDefinitionId, agentIds, and inputs.

### Response Output Example

```xml
{
  "botDefinitionId": "642d4d01091245ad5c98c90c",
  "agentIds": [
    "agent-1",
    "agent-2"
  ],
  "inputs": [
    {
      "inputId": "acd5ac4a-15cc-4cf8-b79e-57bcfa01a5b4",
      "inputValue": "Microsoft Defender"
    }
  ]
}
```
