> 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/adapters/l/lookout-mobile-risk-api.md).

# Lookout Mobile Risk API

|                            |                                            |
| -------------------------- | ------------------------------------------ |
| Category                   | Mobile threat defense                      |
| Asset types                | Devices (with vulnerabilities)             |
| Authentication             | Application key (OAuth client credentials) |
| Direction                  | OctoXLabs → Lookout (read only)            |
| Supported Lookout versions | Not specified                              |
| Available since            | Not specified                              |

Lookout is a mobile endpoint security platform. OctoXLabs reads the devices from the Lookout Mobile Risk API and adds them to the device inventory, with the vulnerabilities that Lookout reports on each device.

## Use cases

* **Find mobile devices with vulnerabilities.** List Lookout devices that carry at least one vulnerability.

```
Adapters = lookout-mobile-risk-api AND Vulnerabilities = *
```

* **Find devices by owner email.** Look up the devices of one user.

```
Adapters = lookout-mobile-risk-api AND Email = <email>
```

## Before you begin

### Network

| Source              | Destination                        | Port | Protocol |
| ------------------- | ---------------------------------- | ---- | -------- |
| OctoXLabs connector | api.lookout.com (Domain parameter) | 443  | HTTPS    |

Clear **Is Secure** to use HTTP. If a proxy is set, requests go through it.

### Required permissions

The baseline says to make sure the application key has valid API permissions. It does not name them. Not verified.

## Create credentials in Lookout

{% stepper %}
{% step %}

### Get an application key

Create or copy an application key for the Lookout Mobile Risk API in your Lookout console.
{% endstep %}

{% step %}

### Check its permissions

Make sure the application key has valid API permissions. The connector reads devices.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter       | Required | Type    | Default         | Description                                                 |
| --------------- | -------- | ------- | --------------- | ----------------------------------------------------------- |
| Domain          | No       | String  | api.lookout.com | API domain used for Lookout.                                |
| Application Key | Yes      | String  | None            | Authentication key for the Lookout API.                     |
| Proxy           | No       | String  | None            | Proxy address, used as `http://<value>` for HTTP and HTTPS. |
| Timeout         | No       | Integer | 30              | Seconds to wait for an API response.                        |
| Is Secure       | No       | Boolean | True            | Connect over HTTPS.                                         |

## What the connection test does

The test gets an access token with the application key and requests one device (`limit` 1). It passes when the response is not empty.

## API endpoints called

| Method | Path                | Purpose                                                                                                   |
| ------ | ------------------- | --------------------------------------------------------------------------------------------------------- |
| POST   | /oauth2/token       | Gets an access token. The application key is sent as a Bearer token with `grant_type=client_credentials`. |
| GET    | /mra/api/v2/devices | Lists devices, 1000 per page, using the last device `oid` as the cursor.                                  |

On 401 the connector gets a new token and retries. On 429 it waits 60 seconds and retries. Both have a limit of 3 attempts.

## Fields fetched

| Lookout field                                                         | OctoXLabs field                                          |
| --------------------------------------------------------------------- | -------------------------------------------------------- |
| customer\_device\_id                                                  | Hostname (primary identifier)                            |
| activated\_at                                                         | First seen                                               |
| software.os\_version                                                  | OS.Version                                               |
| platform                                                              | Category                                                 |
| email                                                                 | Email                                                    |
| hardware.manufacturer                                                 | DeviceManufacturer                                       |
| hardware.model                                                        | DeviceModel                                              |
| updated\_time                                                         | LastUpdateTime                                           |
| client.lookout\_sdk\_version                                          | AgentVersions (lookout-mobile-risk-api)                  |
| device\_vulns.vulnerabilities (name, category, description, severity) | Vulnerabilities (title, category, description, severity) |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                                                            |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Request failed after {n} retries for url {url}                 | The API answered 401 or 429 on every attempt, or a status other than 200.               | Check the application key and its permissions, or run discovery again later.                   |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history
