---
title: /bizops/alerts/all
slug: amberflo-api/bizopsalertsall
docTags: 
createdAt: 2024-11-07T15:10:16.968Z
---

{
  "id": "E91SaSvHQ1EdgY8qoSkql",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/bizops/alerts/all",
    "servers": [
      {
        "url": "https://app.amberflo.io/bizops/alerts/all"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "com.amberflo.bizops.alerts.GameAlert.out[]",
            "schema": [
              {
                "name": "id",
                "kind": "required",
                "type": "string",
                "description": "The id of the alert",
                "example": ""
              },
              {
                "name": "customerId",
                "kind": "optional",
                "type": "string",
                "description": "`customerId` of the account's customer as defined in Customer API.",
                "example": ""
              },
              {
                "name": "customerName",
                "kind": "optional",
                "type": "string",
                "description": "`customerName` of the account's customer as defined in Customer API.",
                "example": ""
              },
              {
                "name": "alertTimeInSeconds",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "`alertTimeInSeconds` is the time in seconds for when the alert was fired",
                "example": 0
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "`message` is the alert message",
                "example": ""
              },
              {
                "name": "currentLevel",
                "kind": "optional",
                "type": "string",
                "description": "`currentLevel` the level at which the alert was fired",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/com.amberflo.bizops.alerts.GameAlert.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "KgRvLKWOGrbevw51zki-n",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://app.amberflo.io/bizops/alerts/all \\\n     --header 'accept: application/json'"
        },
        {
          "id": "FK3JNvVOTThsEJ9JM-ZcU",
          "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://app.amberflo.io/bizops/alerts/all\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "W21t7Sa1tkMyrplsHfN6D",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/bizops/alerts/all\")\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": "5WkJgZCYe97GXmYZx2qtN",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/bizops/alerts/all\"\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": "KgRvLKWOGrbevw51zki-n"
    },
    "results": {
      "languages": [
        {
          "id": "jyU1qpIsdZJQq-mN0vYcL",
          "language": "200",
          "code": "// Successful request\n[\n  {\n    \"id\": \"\",\n    \"customerId\": \"\",\n    \"customerName\": \"\",\n    \"alertTimeInSeconds\": \"\",\n    \"message\": \"\",\n    \"currentLevel\": \"\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "jyU1qpIsdZJQq-mN0vYcL"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}