Retrieves all the incidents in your account
1 min
GET
https://api.waydev.co/v2/incidents
Query Parameters
- pagestringDescription
- limitstringDescription
- repository_idintegerDescription
Header Parameters
- AuthorizationstringrequiredDescription
Responses
200
- objectDescription
- current_pageintegerExample
- dataobject[]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 } ]- idinteger
- developer_idinteger
- repository_idinteger
- numberstring
- titlestring
- urlstring
- issued_atstring
- fixed_atstring
401
- objectDescription
- messagestringExample
curl
curl --request GET \
--url https://api.waydev.co/v2/incidents \
--header 'accept: application/json' \
--header 'authorization: string'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.waydev.co/v2/incidents", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.waydev.co/v2/incidents")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["authorization"] = "string"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.waydev.co/v2/incidents"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'authorization': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful operation
{
"current_page": 1,
"data": [
{
"id": 0,
"developer_id": 0,
"repository_id": 0,
"number": "",
"title": "",
"url": "",
"issued_at": "",
"fixed_at": ""
}
]
}401
// Unauthorized
{
"message": "Unauthorized"
}