[GET] Get sectors

Modified on Tue, 11 Feb at 3:50 AM

https://api.s7risk.com

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

GET /sectorsGet sectors

This endpoint gets all available sectors. The sectors returned can be filtered by adding search parameters to your request.

HTTP Request

curl -X GET 'https://api.s7risk.com/sectors' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {{YOUR_AUTHENTICATION_TOKEN}}' \
  -d 'search=transport' \
  -d 'sort=desc' \
  -d 'page=2' \
  -d 'pageSize=6' \
  --compressed

Headers

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

Query Parameters

NameTypeDescription
searchstringSearch sectors using the given search term
sortstringSort the results by the given properties. Available options asc or 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": "231ae916-c503-4db7-aa5b-8c76f7d79876",
            "name": "Tourism",
            "description": null
        },
        {
            "id": "801ea36b-a610-4ddd-a300-6373fe71c3ba",
            "name": "Transport/Logistics",
            "description": "Land based transportation of goods, services, products, humans, animals, not linked to maritime or aviation."
        },
        {
            "id": "39d8f801-a6be-4d96-afbd-45553ac947e8",
            "name": "Utilities",
            "description": "Electricity, Gas, Water, Waste Services."
        }
    ]
}

Success

CodeStatusDescription
200SuccessReturns a body containing all valid sectors

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