---
title: List alerts
slug: andrei/list-alerts
createdAt: 2026-10-05T10:36:01.732Z
---

{
  "id": "h_bowdk-eCZLA4p_UN85J",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.detected.app/api/v2/public/alerts",
    "servers": [
      {
        "url": "https://api.detected.app/api/v2/public/alerts",
        "description": "Production"
      }
    ],
    "name": "List alerts",
    "description": "<p>Returns the alerts raised for profiles in your account, most recent first. An alert is raised when monitored information about a profile changes. Use the query parameters to filter the results.</p>\n<p>This endpoint is paginated. Use the <code>page</code> parameter to request further pages. The <code>meta</code> and <code>links</code> objects in the response describe the current page and link to the others.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "page",
          "type": "string",
          "description": "<p>Page number of the results to return, starting from 1. The number of items per page is returned in <code>meta.per_page</code>.</p>"
        },
        {
          "kind": "optional",
          "name": "acknowledged",
          "type": "string",
          "description": "<p>Filter by acknowledgement status: <code>cleared</code> for alerts that a user has cleared. The other listed value, <code>uncleared</code>, is currently rejected as an invalid filter. These values differ from the values returned in the alert's <code>acknowledged</code> property.</p>",
          "enum": [
            "cleared",
            "uncleared"
          ]
        },
        {
          "kind": "optional",
          "name": "profile_id",
          "type": "string<uuid>",
          "description": "Filter by profile UUID.",
          "format": "uuid"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "AccessToken",
          "name": "AccessToken",
          "kind": "optional",
          "type": "http",
          "description": "<p>The API uses OAuth 2.0. Request an access token from <code>POST /oauth/token</code> with the client ID and client secret of your integration client, and your account slug. Send the access token in the <code>Authorization</code> header of every request, in the format <code>Authorization: Bearer &#x3C;access_token></code>. The access token carries the scopes set on your integration client in the dashboard. Access tokens expire. When one expires, request a new one.</p>",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "headers": [
          {
            "kind": "optional",
            "name": "X-RateLimit-Limit",
            "description": ""
          },
          {
            "kind": "optional",
            "name": "X-RateLimit-Remaining",
            "description": ""
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "description": "List of alerts",
                "modelRef": "#/components/schemas/ProfileNotificationAlertsResourceResponse",
                "customType": "ProfileNotificationAlertsResourceResponse[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Alert ID."
                  },
                  {
                    "name": "profile_id",
                    "kind": "optional",
                    "type": "string",
                    "description": "The profile ID."
                  },
                  {
                    "name": "attribute",
                    "kind": "optional",
                    "type": "string",
                    "description": "Name of the attribute that changed."
                  },
                  {
                    "name": "change",
                    "kind": "optional",
                    "type": "object",
                    "description": "Details of the change.",
                    "example": "",
                    "schema": [
                      {
                        "name": "current",
                        "kind": "optional",
                        "type": "string",
                        "description": "Value after the change."
                      },
                      {
                        "name": "previous",
                        "kind": "optional",
                        "type": "string",
                        "description": "Value before the change."
                      }
                    ]
                  },
                  {
                    "name": "acknowledged",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Acknowledgement status of the alert: <code>acknowledged</code> if a user has acknowledged the alert, <code>cleared</code> if a user has cleared it. These values differ from the values accepted by the <code>acknowledged</code> filter on <code>GET /alerts</code>.</p>"
                  },
                  {
                    "name": "acknowledged_by",
                    "kind": "optional",
                    "type": "string",
                    "description": "The user that acknowledged the alert."
                  },
                  {
                    "name": "acknowledged_at",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "Date and time the alert was acknowledged.",
                    "format": "date-time"
                  },
                  {
                    "name": "created_at",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "Date and time the alert was created.",
                    "format": "date-time"
                  }
                ]
              },
              {
                "name": "links",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/LinksResource",
                "customType": "LinksResource",
                "schema": [
                  {
                    "name": "first",
                    "kind": "optional",
                    "type": "string",
                    "description": "URL of the first page of results."
                  },
                  {
                    "name": "last",
                    "kind": "optional",
                    "type": "string",
                    "description": "URL of the last page of results."
                  },
                  {
                    "name": "prev",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>URL of the previous page of results, or null if there is none.</p>"
                  },
                  {
                    "name": "next",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>URL of the next page of results, or null if there is none.</p>"
                  }
                ]
              },
              {
                "name": "meta",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/MetaResource",
                "customType": "MetaResource",
                "schema": [
                  {
                    "name": "current_page",
                    "kind": "optional",
                    "type": "number",
                    "description": "Number of the current page."
                  },
                  {
                    "name": "from",
                    "kind": "optional",
                    "type": "number",
                    "description": "<p>Position of the first item on this page, counted across all pages.</p>"
                  },
                  {
                    "name": "last_page",
                    "kind": "optional",
                    "type": "number",
                    "description": "Number of the last page."
                  },
                  {
                    "name": "links",
                    "kind": "optional",
                    "type": "array",
                    "description": "<p>Pagination links, including links to the previous and next pages.</p>",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "url",
                        "kind": "optional",
                        "type": "string",
                        "description": "<p>URL of the page, or <code>null</code> if there is no such page.</p>"
                      },
                      {
                        "name": "label",
                        "kind": "optional",
                        "type": "string",
                        "description": "<p>Text to display for the link, for example a page number or \"Previous\".</p>"
                      },
                      {
                        "name": "active",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Whether this link is for the current page."
                      }
                    ]
                  },
                  {
                    "name": "path",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Base URL of the endpoint, without query parameters.</p>"
                  },
                  {
                    "name": "per_page",
                    "kind": "optional",
                    "type": "number",
                    "description": "Number of items per page."
                  },
                  {
                    "name": "to",
                    "kind": "optional",
                    "type": "number",
                    "description": "<p>Position of the last item on this page, counted across all pages.</p>"
                  },
                  {
                    "name": "total",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total number of items across all pages."
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized. The access token is missing, invalid or has expired.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "<p>A human-readable description of the error.</p>"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "422",
        "description": "Unprocessable Content. The request was understood but failed validation. The response lists the fields that failed and why.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "<p>A human-readable description of the error.</p>"
              },
              {
                "name": "example_field",
                "kind": "optional",
                "type": "array",
                "description": "<p>Validation errors for one field of the request body. The property name is the name of the field that failed validation (<code>example_field</code> is a placeholder).</p>",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "429",
        "description": "<p>Too Many Requests. You have exceeded the rate limit. Wait for the number of seconds given in the <code>Retry-After</code> header before trying again.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "<p>A human-readable description of the error.</p>"
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.detected.app/api/v2/public/alerts \\\n     --header 'accept: application/json'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.detected.app/api/v2/public/alerts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.detected.app/api/v2/public/alerts\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.detected.app/api/v2/public/alerts\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// OK\n{\n  \"data\": [\n    {\n      \"id\": 0,\n      \"profile_id\": \"\",\n      \"attribute\": \"\",\n      \"change\": {\n        \"current\": \"\",\n        \"previous\": \"\"\n      },\n      \"acknowledged\": \"\",\n      \"acknowledged_by\": \"\",\n      \"acknowledged_at\": \"\",\n      \"created_at\": \"\"\n    }\n  ],\n  \"links\": {\n    \"first\": \"\",\n    \"last\": \"\",\n    \"prev\": \"\",\n    \"next\": \"\"\n  },\n  \"meta\": {\n    \"current_page\": 0,\n    \"from\": 0,\n    \"last_page\": 0,\n    \"links\": [\n      {\n        \"url\": \"\",\n        \"label\": \"\",\n        \"active\": false\n      }\n    ],\n    \"path\": \"\",\n    \"per_page\": 0,\n    \"to\": 0,\n    \"total\": 0\n  }\n}"
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// Unauthorized. The access token is missing, invalid or has expired.\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "response-2-422",
          "language": "422",
          "code": "// Unprocessable Content. The request was understood but failed validation. The response lists the fields that failed and why.\n{\n  \"message\": \"\",\n  \"example_field\": [\n    \"\"\n  ]\n}"
        },
        {
          "id": "response-3-429",
          "language": "429",
          "code": "// Too Many Requests. You have exceeded the rate limit. Wait for the number of seconds given in the Retry-After header before trying again.\n{\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}