---
title: Retrieves all the incidents in your account
slug: retrieves-all-the-incidents-in-your-account
docTags: 
createdAt: 2025-01-28T10:28:11.769Z
---

{
  "id": "E2ZoheqVVCLRR5KaI1lI6",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.waydev.co/v2/incidents",
    "name": "Retrieves all the incidents in your account",
    "description": "<p>By passing in the appropriate options, you can get the available incidents in your account</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "Authorization",
          "type": "string",
          "description": "Your PAT generated in Waydev"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "page",
          "type": "string",
          "description": "The page number to request"
        },
        {
          "kind": "optional",
          "name": "limit",
          "type": "string",
          "description": "The number of items per page. Default 25"
        },
        {
          "kind": "optional",
          "name": "repository_id",
          "type": "integer",
          "description": "A repository ID. Only return incidents for that repository"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Successful operation",
            "schema": [
              {
                "name": "current_page",
                "kind": "optional",
                "type": "integer",
                "example": 1
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "example": "[{\"id\":1,\"developer_id\":null,\"repository_id\":48,\"number\":\"32fe10b0-2404-11ef-a498-319fc8870ea3\",\"title\":\"My first incident\",\"url\":null,\"issued_at\":\"2024-06-06 11:23:45\",\"fixed_at\":\"2024-07-06 11:23:45\"},{\"id\":3,\"developer_id\":2,\"repository_id\":48,\"number\":\"acd4dfe0-2409-11ef-bda5-cdfa6ee26e42\",\"title\":\"My second incident\",\"url\":null,\"issued_at\":\"2024-06-06 11:23:45\",\"fixed_at\":null}]",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "developer_id",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "repository_id",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "number",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "title",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "issued_at",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "fixed_at",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Unauthorized",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "example": "Unauthorized"
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "9AkEXGr9fW8aMMtYUC8Yy",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.waydev.co/v2/incidents \\\n     --header 'accept: application/json' \\\n     --header 'authorization: string'"
        },
        {
          "id": "DietBTxF8dABCp0IlRBdk",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"authorization\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.waydev.co/v2/incidents\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "cf6T7DlgSJf-1-QFwfRk0",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.waydev.co/v2/incidents\")\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\"\nrequest[\"authorization\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "HF97xQUMnfAxRP_UOybbz",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.waydev.co/v2/incidents\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'authorization': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "9AkEXGr9fW8aMMtYUC8Yy"
    },
    "results": {
      "languages": [
        {
          "id": "0emLlDVunYmZLioyzA1ck",
          "language": "200",
          "code": "// Successful operation\n{\n  \"current_page\": 1,\n  \"data\": [\n    {\n      \"id\": 0,\n      \"developer_id\": 0,\n      \"repository_id\": 0,\n      \"number\": \"\",\n      \"title\": \"\",\n      \"url\": \"\",\n      \"issued_at\": \"\",\n      \"fixed_at\": \"\"\n    }\n  ]\n}"
        },
        {
          "id": "rs-OEvTQwDzEbyIYimPpc",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"Unauthorized\"\n}"
        }
      ],
      "selectedLanguageId": "0emLlDVunYmZLioyzA1ck"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}