[GET] Get incident types

Modified on Tue, 11 Feb at 3:46 AM

https://api.s7risk.com

The Incident API provides well constructed high-quality, highly-tailored and scalable threat intelligence data.

GET /incident-typesGet incident types

This endpoint gets all available incident types. The incident types returned can be filtered in scope by adding a search parameter or Category ID to your request.

HTTP Request

curl -X GET 'https://api.s7risk.com/incident-types' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {{YOUR_AUTHENTICATION_TOKEN}}' \
  -d 'search=attack' \
  -d 'category=eq:f88942c1-eadb-4b2e-b462-2bc68f38a9a2' \
  -d 'sort=icon:asc' \
  -d 'page=1' \
  -d 'pageSize=3' \
  --compressed

Headers

NameTypeRequiredDescription
Authorizationstring✔️Your authentication token (see the Auth API section for more information)

Query Parameters

NameTypeDescription
searchstringSearch using the given search term
categorystringFilter the results by Category ID. Supports the following operators: eq, neq, in or nin.
sortstringSort the results by the given properties. Available options name:asc or name:desc, id:asc or id:desc, severity:asc or severity:desc and icon:asc or icon:desc. If no sort order is specified then results are sorted by their relevancy
pageintA paginated result set. Defaults to 1
pageSizeintA limited result set. Defaults to 100

HTTP Response

{
    "data": [
        {
            "id": "252dcf0f-b272-4c06-80b0-ae0976822c89",
            "name": "Air to Air Attack",
            "icon": "air-to-air-attack",
            "severity": "high",
            "category": {
                "id": "f88942c1-eadb-4b2e-b462-2bc68f38a9a2",
                "name": "Air",
                "colour": "#3498DB"
            }
        },
        {
            "id": "8bdac3ea-62c7-41d4-93f3-4b9989084248",
            "name": "Attack Helicopter",
            "icon": "attack-helicopter",
            "severity": "high",
            "category": {
                "id": "f88942c1-eadb-4b2e-b462-2bc68f38a9a2",
                "name": "Air",
                "colour": "#3498DB"
            }
        },
        {
            "id": "5c6aac97-df30-4759-80da-6f39b6a4d1fc",
            "name": "Drone Attack",
            "icon": "drone-attack",
            "severity": "high",
            "category": {
                "id": "f88942c1-eadb-4b2e-b462-2bc68f38a9a2",
                "name": "Air",
                "colour": "#3498DB"
            }
        }
    ]
}

Success

CodeStatusDescription
200SuccessReturns a body containing all requested incident types

Errors

CodeStatusDescription
401UnauthorizedExpired or Invalid Authentication token
422Unprocessable EntityIncorrect or invalid search parameter

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article