Main Site HUB Security Scorecard API 8.2 Get A List of All Your Grade Based Alerts

HUB

8.2 Get A List of All Your Grade Based Alerts

Get A List of All Your Grade Based Alerts

This API endpoint allows you to get a list of all your current grade based alert. You can check out the full specification for this endpoint here

Resource URI

/users/by-username/{username}/alerts/grade

Parameters:

Name Required Description
Username Y The username of a user (ex: [email protected])

Sample Code:


            curl -X GET \
                https://api.securityscorecard.io/users/by-username/[email protected]/alerts/grade \
                -H 'Accept: application/json' \
                -H 'Authorization: Token <Your API Key>' \
                -H 'Content-Type: application/json' \
                -H 'cache-control: no-cache'
        

Sample Response:


{
    "entries": [
        {
            "change_direction": "drops",
            "created_at": "2018-12-19T05:32:32.913Z",
            "id": "472ffccf-4686-11e9-83dd-19ee9dc51302",
            "score_types": [
                "overall"
            ],
            "target": [
                "my_scorecard"
            ],
            "updated_at": "2019-01-07T16:34:19.022Z"
        },
        {
            "change_direction": "rises",
            "created_at": "2019-05-15T22:25:13.261Z",
            "id": "4eb5bdd0-7760-11e9-9f8e-b9b95bc7cb61",
            "score_types": [
                "network_security"
            ],
            "target": [
                "my_scorecard"
            ],
            "updated_at": "2019-05-15T22:25:13.261Z"
        },
        {
            "change_direction": "rises",
            "created_at": "2019-06-10T15:37:25.017Z",
            "id": "a53d8090-8b95-11e9-9888-af96bfb808eb",
            "score_types": [
                "overall",
                "ip_reputation",
                "application_security"
            ],
            "target": [
                "my_scorecard",
                "5be6fb72e4b07c6244a26d41",
                "5bfc367ce4b024701dcc19db"
            ],
            "updated_at": "2019-06-10T15:44:35.422Z"
        }
    ]
}