# Security

## Display your current risk score.

<mark style="color:blue;">`GET`</mark> `https://api.halosecurity.com/api/v1/security/risk-score.json`

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "request": {
        "target_count": 1,
        "sort": "1"
    },
    "risk_score": 1000
}
```

{% endtab %}
{% endtabs %}

## Display trends of your risk score, target, port, and issue counts over time.

<mark style="color:blue;">`GET`</mark> `https://api.halosecurity.com/api/v1/security/trend.json`

api

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "request": {
        "target_count": 1,
        "sort": "1"
    },
    "days": [
        {
            "date": "2022-01-22",
            "target_count": 0,
            "issue_count": 0,
            "risk_score": 0,
            "port_count": 0
        },
        {
            "date": "2022-01-23",
            "target_count": 0,
            "issue_count": 0,
            "risk_score": 0,
            "port_count": 0
        },
        {
            "date": "2022-01-24",
            "target_count": 0,
            "issue_count": 0,
            "risk_score": 0,
            "port_count": 0
        },
        {
            "date": "2022-04-22",
            "target_count": 1,
            "issue_count": 3,
            "risk_score": 1000,
            "port_count": 4
        }
}
```

{% endtab %}
{% endtabs %}

## Display a list of platforms that were detected.

<mark style="color:blue;">`GET`</mark> `https://api.halosecurity.com/api/v1/security/platform-list.json`

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "request": {
        "target_count": 1,
        "sort": "1"
    },
    "pagination": {
        "total": 1,
        "start": 0,
        "limit": 100
    },
    "list": [
        {
            "target_count": 1,
            "platform_id": 29,
            "platform_display": "AWS CloudFront"
        }
    ]
}
```

{% endtab %}
{% endtabs %}
