Skip to main content
Every pagerduty.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Incident Notes

create

incidentNotes.create Add a note to an incident Risk: write
await corsair.pagerduty.api.incidentNotes.create({});
Input
NameTypeRequiredDescription
incident_idstringYes
contentstringYes
Output
NameTypeRequiredDescription
noteobjectYes
{
  id: string,
  content?: string,
  created_at?: string,
  user?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  channel?: {
    type?: string,
    name?: string
  }
}

list

incidentNotes.list List notes for an incident Risk: read
await corsair.pagerduty.api.incidentNotes.list({});
Input
NameTypeRequiredDescription
incident_idstringYes
limitnumberNo
offsetnumberNo
Output
NameTypeRequiredDescription
notesobject[]Yes
{
  id: string,
  content?: string,
  created_at?: string,
  user?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  channel?: {
    type?: string,
    name?: string
  }
}[]

Incidents

create

incidents.create Create a new incident Risk: write
await corsair.pagerduty.api.incidents.create({});
Input
NameTypeRequiredDescription
titlestringYes
fromstringYes
serviceobjectYes
urgencyhigh | lowNo
bodyobjectNo
escalation_policyobjectNo
assignmentsobject[]No
{
  id: string,
  type: service_reference
}
{
  type: incident_body,
  details: string
}
{
  id: string,
  type: escalation_policy_reference
}
{
  assignee: {
    id: string,
    type: user_reference
  }
}[]
Output
NameTypeRequiredDescription
incidentobjectYes
{
  id: string,
  incident_number?: number,
  title?: string,
  status?: triggered | acknowledged | resolved,
  urgency?: high | low,
  html_url?: string,
  created_at?: string,
  updated_at?: string,
  resolved_at?: string | null,
  service?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  escalation_policy?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  teams?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  assignments?: {
    at: string,
    assignee: {
      id: string,
      type: string,
      summary?: string,
      html_url?: string | null
    }
  }[],
  body?: {
    type?: string,
    details?: string
  }
}

get

incidents.get Get a single incident by ID Risk: read
await corsair.pagerduty.api.incidents.get({});
Input
NameTypeRequiredDescription
idstringYes
Output
NameTypeRequiredDescription
incidentobjectYes
{
  id: string,
  incident_number?: number,
  title?: string,
  status?: triggered | acknowledged | resolved,
  urgency?: high | low,
  html_url?: string,
  created_at?: string,
  updated_at?: string,
  resolved_at?: string | null,
  service?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  escalation_policy?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  teams?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  assignments?: {
    at: string,
    assignee: {
      id: string,
      type: string,
      summary?: string,
      html_url?: string | null
    }
  }[],
  body?: {
    type?: string,
    details?: string
  }
}

list

incidents.list List incidents with optional filters Risk: read
await corsair.pagerduty.api.incidents.list({});
Input
NameTypeRequiredDescription
limitnumberNo
offsetnumberNo
statusestriggered | acknowledged | resolved[]No
sincestringNo
untilstringNo
urgencieshigh | low[]No
service_idsstring[]No
team_idsstring[]No
sort_bystringNo
Output
NameTypeRequiredDescription
incidentsobject[]Yes
limitnumberNo
offsetnumberNo
morebooleanNo
totalnumberNo
{
  id: string,
  incident_number?: number,
  title?: string,
  status?: triggered | acknowledged | resolved,
  urgency?: high | low,
  html_url?: string,
  created_at?: string,
  updated_at?: string,
  resolved_at?: string | null,
  service?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  escalation_policy?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  teams?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  assignments?: {
    at: string,
    assignee: {
      id: string,
      type: string,
      summary?: string,
      html_url?: string | null
    }
  }[],
  body?: {
    type?: string,
    details?: string
  }
}[]

update

incidents.update Update an incident (acknowledge, resolve, reassign) Risk: write
await corsair.pagerduty.api.incidents.update({});
Input
NameTypeRequiredDescription
idstringYes
statusacknowledged | resolvedNo
urgencyhigh | lowNo
titlestringNo
assignmentsobject[]No
escalation_policyobjectNo
{
  assignee: {
    id: string,
    type: user_reference
  }
}[]
{
  id: string,
  type: escalation_policy_reference
}
Output
NameTypeRequiredDescription
incidentobjectYes
{
  id: string,
  incident_number?: number,
  title?: string,
  status?: triggered | acknowledged | resolved,
  urgency?: high | low,
  html_url?: string,
  created_at?: string,
  updated_at?: string,
  resolved_at?: string | null,
  service?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  escalation_policy?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  teams?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  assignments?: {
    at: string,
    assignee: {
      id: string,
      type: string,
      summary?: string,
      html_url?: string | null
    }
  }[],
  body?: {
    type?: string,
    details?: string
  }
}

Log Entries

get

logEntries.get Get a single log entry by ID Risk: read
await corsair.pagerduty.api.logEntries.get({});
Input
NameTypeRequiredDescription
idstringYes
includestring[]No
Output
NameTypeRequiredDescription
log_entryobjectYes
{
  id: string,
  type?: string,
  summary?: string,
  created_at?: string,
  html_url?: string | null,
  incident?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  service?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  teams?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  agent?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  channel?: {
    type: string,
    name?: string
  }
}

list

logEntries.list List log entries Risk: read
await corsair.pagerduty.api.logEntries.list({});
Input
NameTypeRequiredDescription
limitnumberNo
offsetnumberNo
sincestringNo
untilstringNo
is_overviewbooleanNo
includestring[]No
team_idsstring[]No
Output
NameTypeRequiredDescription
log_entriesobject[]Yes
limitnumberNo
offsetnumberNo
morebooleanNo
totalnumberNo
{
  id: string,
  type?: string,
  summary?: string,
  created_at?: string,
  html_url?: string | null,
  incident?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  service?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  teams?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  agent?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  },
  channel?: {
    type: string,
    name?: string
  }
}[]

Users

get

users.get Get a user by ID Risk: read
await corsair.pagerduty.api.users.get({});
Input
NameTypeRequiredDescription
idstringYes
includestring[]No
Output
NameTypeRequiredDescription
userobjectYes
{
  id: string,
  name?: string,
  email?: string,
  role?: string,
  description?: string | null,
  time_zone?: string,
  html_url?: string,
  avatar_url?: string,
  color?: string,
  contact_methods?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  notification_rules?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[],
  teams?: {
    id: string,
    type: string,
    summary?: string,
    html_url?: string | null
  }[]
}