curl --request GET \
--url https://api.lynkwell.com/incident-management/v1/incidents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lynkwell.com/incident-management/v1/incidents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lynkwell.com/incident-management/v1/incidents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lynkwell.com/incident-management/v1/incidents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lynkwell.com/incident-management/v1/incidents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lynkwell.com/incident-management/v1/incidents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lynkwell.com/incident-management/v1/incidents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"id": "<string>",
"networkId": "<string>",
"detectedAt": "2023-11-07T05:31:56Z",
"status": "NEW",
"summary": "<string>",
"description": "<string>",
"alertType": "<string>",
"affectedStationCount": 123,
"faults": [
{
"id": "<string>",
"errorCode": "<string>",
"vendorErrorCode": "<string>",
"vendorId": "<string>",
"faultCatalogEntryId": "<string>",
"mergedFromIncidentId": "<string>"
}
],
"faultInstances": [
{
"incidentFaultId": "<string>",
"stationId": "<string>",
"connectorId": 123,
"firstReportedAt": "2023-11-07T05:31:56Z",
"lastReportedAt": "2023-11-07T05:31:56Z",
"occurrenceCount": 123,
"mergedFromIncidentId": "<string>"
}
],
"slaState": "ON_TRACK",
"slaBreached": true,
"linkedIncidentIds": [
"<string>"
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"autoResolved": true,
"locationId": "<string>",
"rootCause": "<string>",
"resolutionNotes": "<string>",
"assigneeUserId": "<string>",
"slaResolutionDeadline": "2023-11-07T05:31:56Z",
"mergedIntoIncidentId": "<string>",
"lastActivityAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true
}
}{
"type": "BAD_REQUEST",
"code": "<string>",
"message": "<string>"
}{
"message": "<string>"
}"<string>"{
"type": "INTERNAL_ERROR",
"message": "<string>"
}List incidents
Returns a network’s incidents, newest-detected first, keyset-paginated. Merged-away incidents are excluded unless includeMerged is true.
curl --request GET \
--url https://api.lynkwell.com/incident-management/v1/incidents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lynkwell.com/incident-management/v1/incidents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lynkwell.com/incident-management/v1/incidents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lynkwell.com/incident-management/v1/incidents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lynkwell.com/incident-management/v1/incidents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lynkwell.com/incident-management/v1/incidents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lynkwell.com/incident-management/v1/incidents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"id": "<string>",
"networkId": "<string>",
"detectedAt": "2023-11-07T05:31:56Z",
"status": "NEW",
"summary": "<string>",
"description": "<string>",
"alertType": "<string>",
"affectedStationCount": 123,
"faults": [
{
"id": "<string>",
"errorCode": "<string>",
"vendorErrorCode": "<string>",
"vendorId": "<string>",
"faultCatalogEntryId": "<string>",
"mergedFromIncidentId": "<string>"
}
],
"faultInstances": [
{
"incidentFaultId": "<string>",
"stationId": "<string>",
"connectorId": 123,
"firstReportedAt": "2023-11-07T05:31:56Z",
"lastReportedAt": "2023-11-07T05:31:56Z",
"occurrenceCount": 123,
"mergedFromIncidentId": "<string>"
}
],
"slaState": "ON_TRACK",
"slaBreached": true,
"linkedIncidentIds": [
"<string>"
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"autoResolved": true,
"locationId": "<string>",
"rootCause": "<string>",
"resolutionNotes": "<string>",
"assigneeUserId": "<string>",
"slaResolutionDeadline": "2023-11-07T05:31:56Z",
"mergedIntoIncidentId": "<string>",
"lastActivityAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true
}
}{
"type": "BAD_REQUEST",
"code": "<string>",
"message": "<string>"
}{
"message": "<string>"
}"<string>"{
"type": "INTERNAL_ERROR",
"message": "<string>"
}Authorizations
OAuth2 Client Credentials Flow
Query Parameters
Page size (1–100, default 20).
^[1-9][0-9]?$|^100$The id of the last incident in the previous page; results start after it.
Lifecycle state. NEW, INVESTIGATING, MITIGATING, WAITING_ON_OEM, POST_MORTEM, RESOLVED, MERGED. RESOLVED and MERGED are terminal; MERGED is set only by a merge, never by a status update.
NEW, INVESTIGATING, MITIGATING, WAITING_ON_OEM, POST_MORTEM, RESOLVED, MERGED Where the incident stands against its resolution deadline.
ON_TRACK, AT_RISK, PAUSED, BREACHED, RESOLVED Include merged-away incidents (excluded by default).
Start of a detectedAt range (ISO-8601). Must be sent with dateTo.
End of a detectedAt range (ISO-8601). Must be sent with dateFrom.
Required for machine callers whose token carries no network claim.
Response
A page of incidents.
Show child attributes
Show child attributes