API Reference · Incident workflows · Schemas
Get schema version
Query
incidentSchemaVersionReturns an incident schema version with its states, priorities and impacts.
incidentSchemaVersion(
organizationId: ID!
schemaVersionId: ID!
): IncidentSchemaVersion!Arguments
Field
Type
Returns
Field
Type
Example
query IncidentSchemaVersion($organizationId: ID!, $schemaVersionId: ID!) {
incidentSchemaVersion(organizationId: $organizationId, schemaVersionId: $schemaVersionId) {
id
version
schema {
id
name
type
createdAt
}
states {
id
name
order
icon
color
isDefault
isAcknowledged
isResolved
}
priorities {
id
name
order
color
icon
}
impactLinks {
id
}
taskTemplates {
linkId
}
}
}Example response
{
"data": {
"incidentSchemaVersion": {
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"version": 1,
"schema": {
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"name": "Example name",
"type": "INCIDENT",
"createdAt": "2026-01-01T12:00:00Z"
},
"states": [
{
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"name": "Example name",
"order": 1,
"icon": "Example icon",
"color": "#666bff",
"isDefault": true,
"isAcknowledged": true,
"isResolved": true
}
],
"priorities": [
{
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"name": "Example name",
"order": 1,
"color": "#666bff",
"icon": "Example icon"
}
],
"impactLinks": [
{
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6"
}
],
"taskTemplates": [
{
"linkId": "01JB3X7T9QK2M4N6P8R0S2T4V6"
}
]
}
}
}Related
More in Schemas