List Incidents
List service incidents with pagination and filtering
/api/v1/incidents/Authentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Query parameters
page
integer | null
query
optional
The page number from which to start (0-based)
0Minimum 0Example 0limit
integer
query
optional
The maximum number of items to return
25Minimum 0Example 25search_fields
enum<string>[]
query
optional
String names of fields to search. Correspond by index to search field values
[]Example nameItem schema
itemsenum<string>requiredNames of agent fields supported for filtering/sorting on list endpoint.
["id","description","impact_category","sessions_impacted","markdown","created_at","updated_at","organization_id","sub_organization_id","start_datetime","end_datetime","resolution_datetime"]search_field_values
string[]
query
optional
Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list
[]Example Some Object NameItem schema
itemsstringrequiredorder_by
enum<string> | null
query
optional
The field whose value should be used to order the results
["id","description","impact_category","sessions_impacted","markdown","created_at","updated_at","organization_id","sub_organization_id","start_datetime","end_datetime","resolution_datetime"]Example nameorder_by_direction
enum<string> | null
query
optional
The direction in which to order the results
["asc","desc"]fields
enum<string>[] | null
query
optional
The fields to include in the response
[]Example []Item schema
itemsenum<string>requiredNames of agent fields supported for filtering/sorting on list endpoint.
["id","description","impact_category","sessions_impacted","markdown","created_at","updated_at","organization_id","sub_organization_id","start_datetime","end_datetime","resolution_datetime"]start_datetime
string | null
query
optional
The start datetime for filtering results
2023-01-01T00:00:00Zend_datetime
string | null
query
optional
The end datetime for filtering results
2024-01-01T00:00:00ZResponses
200Successful Response
application/json
response
ListResponse_IncidentResponse_
required
5 fields
itemsIncidentResponse[]requiredList of items returned from the query
Item schema
itemsIncidentResponserequiredResponse model for service incident operations.
13 fields
descriptionstringrequiredDescription of the service incident
start_datetimestring (date-time)requiredStart time of the incident
resolution_datetimestring (date-time)requiredResolution time of the incident
impact_categorystringrequiredCategory of the impact
sessions_impactedintegerrequiredNumber of sessions impacted
markdownstringrequiredDetailed markdown description of the incident
organization_idinteger | nulloptionalThe ID of the organization
sub_organization_idinteger | nulloptionalThe ID of the sub-organization
sub_organizationstring | nulloptionalThe name of the sub-organization (DEPRECATED)
idintegerrequiredThe ID of the incident to update
created_atstring (date-time) | nulloptionalCreation time of the incident
updated_atstring (date-time) | nulloptionalLast update time of the incident
last_updated_bystring | nullrequiredThe email of the user who last updated the incident
pageintegerrequiredThe page number of the results (0-based)
page_sizeintegerrequiredThe number of items returned per page
total_pagesinteger | nulloptionalThe total number of pages of results given the indicated page size
total_countinteger | nulloptionalThe total number of items returned from the query
Response example
{
"items": [
{
"description": "string",
"start_datetime": "string",
"resolution_datetime": "string",
"impact_category": "string",
"sessions_impacted": 0,
"markdown": "string",
"organization_id": "string",
"sub_organization_id": "string",
"sub_organization": "string",
"id": 0,
"created_at": "string",
"updated_at": "string",
"last_updated_by": "string"
}
],
"page": 0,
"page_size": 0,
"total_pages": "string",
"total_count": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
