openapi: 3.1.0 info: title: Vibranium Public API version: 1.0.0 description: |- Public REST API for accessing teams, team members, organization members, on-call schedules, escalation policies, service catalog services, maintenance windows, chat channels, alert sources, alert routings, incidents, alerts, paging history, and automation actions. Authentication is performed via API key using the Authorization header with a Bearer token. You can obtain an API key from your Vibranium account settings. contact: name: Vibranium Labs Support email: hello@vibraniumlabs.ai servers: - url: https://api-prod.vibraniumlabs.ai/api/v1 description: API server tags: - name: Teams description: Operations related to teams and their members. - name: Members description: Operations related to organization members. - name: Schedules description: Operations related to on-call schedules. - name: Escalation Policies description: Operations related to escalation policies. - name: Escalations description: Page existing alerts and incidents through escalation policies. - name: Labels description: Operations related to incident labels. - name: Services description: Operations related to service catalog services. - name: Maintenance Windows description: Operations related to maintenance windows, which suppress automatic paging for a planned period. - name: Chat Integrations description: Channels of the chat platform (Slack or Microsoft Teams) the organization is connected to. - name: Automation Actions description: Operations related to automation actions and execution logs. - name: Alert Sources description: Endpoints monitoring tools deliver alerts to, each handled by one alert routing. - name: Alert Routings description: "How a team handles the alerts its sources receive: ordered rules that page, or silence." - name: Incidents description: Operations related to incidents. - name: Alerts description: Operations related to alerts. - name: Paging description: Who was paged, when, through which channel, and the delivery outcome. components: securitySchemes: ApiKeyAuth: type: apiKey in: header name: Authorization description: "API key provided via the Authorization header using the Bearer scheme, e.g. `Authorization: Bearer API_KEY`." schemas: TeamOnCallPolicySummary: type: object properties: id: type: integer description: Unique identifier of the escalation policy. format: int32 name: type: string description: Name of the escalation policy used to resolve on-call responders. isDefault: type: boolean description: Whether this escalation policy is the team default policy. required: - id - name - isDefault ScheduleTeamRef: type: object properties: shortId: type: string description: Short identifier of the team associated with the schedule. name: type: string description: Name of the team associated with the schedule. required: - shortId - name PageUser: type: object properties: id: type: integer email: type: string fullName: type: - string - "null" required: - id - email - fullName IncidentCommentAuthor: oneOf: - type: object properties: type: type: string enum: - user userId: type: integer email: type: - string - "null" fullName: type: - string - "null" required: - type - userId - email - fullName - type: object properties: type: type: string enum: - text text: type: string required: - type - text - type: object properties: type: type: string enum: - api_key apiKeyId: type: integer required: - type - apiKeyId AlertTeam: type: object properties: id: type: integer name: type: string shortId: type: string description: type: - string - "null" required: - id - name - shortId - description AlertUser: type: object properties: id: type: integer email: type: string fullName: type: - string - "null" required: - id - email - fullName AlertAcknowledger: type: object properties: id: type: integer email: type: - string - "null" fullName: type: - string - "null" required: - id - email - fullName MemberRole: type: object properties: id: type: integer description: Unique identifier of the organization role. format: int32 name: type: string description: Name of the organization role. builtInKey: type: - string - "null" enum: - admin - member - read_only description: Key of the built-in role (admin, member, read_only), or null for a custom role. required: - id - name - builtInKey MicrosoftTeamsTeam: type: object properties: id: type: string description: Microsoft Teams team ID. name: type: string description: Microsoft Teams team display name. required: - id - name AlertSourceDeduplication: type: string maxLength: 500 description: Email sources only. Null uses the provider default ({{subject}}); an empty string disables matching. Templates support {{subject}}, {{sender}} and {{body}}. Template and populated key are limited to 500 characters. Matching is scoped to this source. Omit on create for the default; omit on update to preserve the setting. TeamsListResponse: type: object properties: total: type: integer description: Total number of teams for the organization. format: int32 hasMore: type: boolean description: Whether there are more teams available beyond the current page. teams: type: array items: $ref: "#/components/schemas/TeamSummary" required: - total - hasMore - teams TeamSummary: type: object properties: id: type: integer description: Unique identifier of the team. format: int32 name: type: string description: Name of the team. description: type: - string - "null" description: Description of the team. shortId: type: string description: Short identifier of the team. inboundEmailAddress: type: - string - "null" format: email description: Deprecated. No longer used for alert setup; configure email destinations through alert sources. Null when no enabled email alert source exists. deprecated: true externalProvider: type: - string - "null" description: External source provider for imported teams. externalTeamId: type: - string - "null" description: External source identifier for imported teams. required: - id - name - description - shortId - inboundEmailAddress - externalProvider - externalTeamId ValidationErrorResponse: type: object properties: error: type: array items: type: object properties: code: type: string description: Validation error code. message: type: string description: Human-readable error message. path: type: array items: type: string description: Path to the field that caused the error. description: Details about the validation errors. required: - error description: Validation error response from the API. ErrorResponse: type: object properties: message: type: string description: Human-readable error message. required: - message description: Generic error response. TeamResponse: type: object properties: id: type: integer description: Unique identifier of the team. format: int32 name: type: string description: Name of the team. description: type: - string - "null" description: Description of the team. shortId: type: string description: Short identifier of the team. inboundEmailAddress: type: - string - "null" format: email description: Deprecated. No longer used for alert setup; configure email destinations through alert sources. Null when no enabled email alert source exists. deprecated: true externalProvider: type: - string - "null" description: External source provider for imported teams. externalTeamId: type: - string - "null" description: External source identifier for imported teams. required: - id - name - description - shortId - inboundEmailAddress - externalProvider - externalTeamId ApiKeyDenialResponse: type: object properties: message: type: string description: Human-readable error message. example: "API key permission denied for action: incident.comment" missingActions: type: array items: type: string description: The actions this API key would need; absent when the key is read-only. example: - incident.comment required: - message description: Why the API key was refused. CreateTeamRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 description: type: - string - "null" externalProvider: type: string minLength: 1 maxLength: 32 externalTeamId: type: string minLength: 1 maxLength: 128 required: - name UpdateTeamRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 description: type: - string - "null" externalProvider: type: string minLength: 1 maxLength: 32 externalTeamId: type: string minLength: 1 maxLength: 128 TeamMutationSuccessResponse: type: object properties: success: type: boolean description: Whether the mutation completed successfully. required: - success TeamMembersResponse: type: object properties: users: type: array items: $ref: "#/components/schemas/TeamMemberSummary" total: type: integer description: Total number of members in the team. format: int32 hasMore: type: boolean description: Whether there are more members available beyond the current page. required: - users - total - hasMore TeamMemberSummary: type: object properties: id: type: integer description: Unique identifier of the user. format: int32 email: type: string description: Email address of the user. fullName: type: - string - "null" description: Full name of the user. status: type: - string - "null" enum: - active - pending - revoked description: Account status of the user in the organization (active, pending, revoked). role: type: string enum: - admin - member description: Membership role of the user in this team (admin or member). This is not the organization role returned by the members endpoints. required: - id - email - fullName - status - role TeamMemberAssignmentResponse: type: object properties: success: type: boolean description: Whether the assignment completed successfully. userId: type: integer description: ID of the assigned user. format: int32 role: type: string enum: - admin - member description: Role assigned to the user. required: - success - userId - role AssignTeamMemberRequest: type: object properties: userId: type: integer exclusiveMinimum: 0 description: ID of the user to assign to the team. format: int32 role: type: string enum: - admin - member description: Team membership role. Defaults to member. required: - userId TeamOnCallResponse: type: object properties: team: type: object properties: id: type: integer description: Unique identifier of the team. format: int32 shortId: type: string description: Short identifier of the team. name: type: string description: Name of the team. required: - id - shortId - name escalationPolicy: description: Escalation policy used to resolve the team on-call responders, if one exists. anyOf: - $ref: "#/components/schemas/TeamOnCallPolicySummary" - type: "null" responders: type: array items: $ref: "#/components/schemas/TeamOnCallResponderSummary" description: Current Tier 1 on-call responders for the team. resolution: type: string enum: - default_policy - team_policy_fallback - none description: How the team on-call responders were resolved. required: - team - escalationPolicy - responders - resolution TeamOnCallResponderSummary: type: object properties: id: type: integer description: Unique identifier of the user. format: int32 email: type: string description: Email address of the on-call responder. fullName: type: - string - "null" description: Full name of the on-call responder. required: - id - email - fullName PublicScheduleListResponse: type: object properties: schedules: type: array items: $ref: "#/components/schemas/PublicScheduleResponse" total: type: integer minimum: 0 format: int32 hasMore: type: boolean required: - schedules - total - hasMore PublicScheduleResponse: type: object properties: name: type: string minLength: 1 maxLength: 255 timezone: type: string minLength: 1 description: IANA time zone for this schedule, such as America/New_York. teamId: type: - integer - "null" exclusiveMinimum: 0 description: "Deprecated: use teamIds. The lowest owning team ID, or null for a global schedule." format: int32 deprecated: true teamIds: type: array items: type: integer exclusiveMinimum: 0 format: int32 maxItems: 100 description: Every owning team ID in ascending order. Empty for a global schedule. rotations: type: array items: $ref: "#/components/schemas/PublicScheduleRotationResponse" id: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: - name - timezone - teamId - teamIds - rotations - id additionalProperties: false PublicScheduleRotationResponse: type: object properties: name: type: string minLength: 1 maxLength: 255 startAt: type: string format: date description: First date this rotation takes effect, in YYYY-MM-DD format. example: 2026-09-01 rotationConfig: $ref: "#/components/schemas/PublicScheduleRotationConfig" participants: type: array items: type: integer exclusiveMinimum: 0 minItems: 1 description: Ordered user IDs; each ID must appear only once. id: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: - name - startAt - rotationConfig - participants - id additionalProperties: false PublicScheduleRotationConfig: oneOf: - type: object properties: type: type: string enum: - daily payload: type: object properties: startTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ endTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ required: - startTime - endTime additionalProperties: false required: - type - payload additionalProperties: false title: Daily rotation - type: object properties: type: type: string enum: - weekly payload: anyOf: - type: object properties: startTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ endTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ startDay: type: integer minimum: 0 maximum: 6 endDay: type: integer minimum: 0 maximum: 6 dailyStartTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ dailyEndTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ handOffDay: type: integer minimum: 0 maximum: 6 description: Participant handoff weekday, 0 (Sunday) through 6 (Saturday), at handOffTime (default 00:00) in the schedule timezone, independent of coverage. Omit it to hand off at the range start (startDay at startTime). handOffTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ description: Participant handoff time on handOffDay, 24-hour HH:MM in the schedule timezone. Requires handOffDay. Defaults to 00:00. required: - startTime - endTime - startDay - endDay additionalProperties: false title: Weekly range - type: object properties: windows: type: array items: type: object properties: startTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ endTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ startDay: type: integer minimum: 0 maximum: 6 endDay: type: integer minimum: 0 maximum: 6 required: - startTime - endTime - startDay - endDay additionalProperties: false minItems: 1 handOffDay: type: integer minimum: 0 maximum: 6 description: Participant handoff weekday, 0 (Sunday) through 6 (Saturday), at handOffTime (default 00:00) in the schedule timezone, independent of coverage. Omit it to hand off at the start of the earliest window in the Sunday-to-Saturday week. handOffTime: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ description: Participant handoff time on handOffDay, 24-hour HH:MM in the schedule timezone. Requires handOffDay. Defaults to 00:00. required: - windows additionalProperties: false title: Weekly windows required: - type - payload additionalProperties: false title: Weekly rotation description: "Public daily and weekly types use the custom coverage-window payloads. Daily requires startTime and endTime; weekly accepts a day/time range or windows. Without handOffDay, a weekly rotation hands off to the next participant at the range start, or at the earliest window start in the Sunday-to-Saturday week. A range whose start and end share the same weekday and time covers a full seven days: startDay 3, startTime 12:00, endDay 3, endTime 12:00 gives continuous coverage with a Wednesday-noon handoff. With handOffDay, the handoff happens on that weekday at handOffTime (default 00:00) instead, independent of coverage; a window that crosses the handoff is split between the outgoing and incoming participant. handOffTime requires handOffDay. Turns follow the midnight handoff and handOffTime only moves the boundary: coverage on the handoff day between 00:00 and handOffTime stays with the outgoing participant, and other coverage keeps its participant. Coverage between startAt and a first handoff after it joins the first turn. Handoffs keep their local clock time in the schedule timezone across daylight-saving changes. Times are 24-hour HH:MM; weekdays are 0 (Sunday) through 6 (Saturday)." CreatePublicScheduleRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 timezone: type: string minLength: 1 description: IANA time zone for this schedule, such as America/New_York. teamId: type: - integer - "null" exclusiveMinimum: 0 description: "Deprecated: use teamIds. A single owning team ID, or null for a global schedule. Cannot be sent with teamIds." format: int32 deprecated: true teamIds: type: array items: type: integer exclusiveMinimum: 0 format: int32 maxItems: 100 description: Owning team IDs. An empty array, or omitting both teamIds and teamId, creates a global schedule. rotations: type: array items: $ref: "#/components/schemas/PublicScheduleRotationInput" minItems: 1 required: - name - timezone - rotations additionalProperties: false PublicScheduleRotationInput: type: object properties: name: type: string minLength: 1 maxLength: 255 startAt: type: string format: date description: First date this rotation takes effect, in YYYY-MM-DD format. example: 2026-09-01 rotationConfig: $ref: "#/components/schemas/PublicScheduleRotationConfig" participants: type: array items: type: integer exclusiveMinimum: 0 minItems: 1 description: Ordered user IDs; each ID must appear only once. required: - name - startAt - rotationConfig - participants additionalProperties: false UpdatePublicScheduleRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 timezone: type: string minLength: 1 description: IANA time zone for this schedule, such as America/New_York. additionalProperties: false ReplacePublicScheduleTeamsRequest: type: object properties: teamIds: type: array items: type: integer exclusiveMinimum: 0 format: int32 maxItems: 100 description: The complete set of owning team IDs. An empty array makes the schedule global. required: - teamIds additionalProperties: false PublicRotationIdResponse: type: object properties: id: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: - id PublicScheduleRotationUpdateInput: type: object properties: name: type: string minLength: 1 maxLength: 255 startAt: type: string format: date description: First date this rotation takes effect, in YYYY-MM-DD format. example: 2026-09-01 rotationConfig: $ref: "#/components/schemas/PublicScheduleRotationConfig" participants: type: array items: type: integer exclusiveMinimum: 0 minItems: 1 description: Ordered user IDs; each ID must appear only once. storeParticipantsAsSent: type: boolean description: When true, participants are stored exactly in the order supplied, so startAt and the order alone decide who is on call, and removing or appending a participant can change who is on call now. When false or omitted, an update that only removes participants or appends them at the end may rotate the stored order so the person on call now stays on call; repeating the same PUT can then save a different order and change future handoffs. required: - name - startAt - rotationConfig - participants additionalProperties: false ScheduleCurrentOnCallResponse: type: object properties: id: type: integer description: Unique identifier of the schedule. format: int32 name: type: string description: Name of the schedule. team: description: Team associated with the schedule, if any. anyOf: - $ref: "#/components/schemas/ScheduleTeamRef" - type: "null" onCallResponders: type: array items: $ref: "#/components/schemas/PublicOnCallResponder" description: Current responders, deduplicated by user ID across rotations. Empty when there is no active coverage. required: - id - name - team - onCallResponders example: id: 51 name: Response team: shortId: VP-TEAM-ABC123 name: Platform onCallResponders: - id: 11 name: Alice email: alice@example.com PublicOnCallResponder: type: object properties: id: type: integer exclusiveMinimum: 0 description: Responder user ID. format: int32 name: type: string description: Responder name. email: type: string format: email description: Responder email address. required: - id - name - email PublicScheduleOverrideListResponse: type: object properties: overrides: type: array items: $ref: "#/components/schemas/PublicScheduleOverrideResponse" total: type: integer minimum: 0 hasMore: type: boolean required: - overrides - total - hasMore PublicScheduleOverrideResponse: type: object properties: id: type: integer exclusiveMinimum: 0 description: Override ID. format: int32 rotationId: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 userId: type: integer exclusiveMinimum: 0 description: Assigned user ID. format: int32 startAt: type: string format: date-time description: UTC instant corresponding to this override boundary in the schedule timezone. example: 2026-09-01T03:00:00Z endAt: type: string format: date-time description: UTC instant corresponding to this override boundary in the schedule timezone. example: 2026-09-01T05:00:00Z required: - id - rotationId - userId - startAt - endAt PublicScheduleOverrideRequest: type: object properties: userId: type: integer exclusiveMinimum: 0 description: User ID in the API key organization. format: int32 startAt: type: string format: date-time description: ISO 8601 timestamp with an explicit offset. The offset defines an instant, which is converted to the schedule timezone before saving the override clock boundary. For an Asia/Taipei schedule, 2026-09-01T10:00:00+07:00 and 2026-09-01T11:00:00+08:00 both mean 11:00 on the schedule clock. example: 2026-09-01T10:00:00+07:00 endAt: type: string format: date-time description: ISO 8601 timestamp with an explicit offset. The offset defines an instant, which is converted to the schedule timezone before saving the override clock boundary. For an Asia/Taipei schedule, 2026-09-01T10:00:00+07:00 and 2026-09-01T11:00:00+08:00 both mean 11:00 on the schedule clock. example: 2026-09-01T12:00:00+07:00 required: - userId - startAt - endAt additionalProperties: false SchedulesOnCallResponse: type: object properties: total: type: integer description: Total number of schedules for the organization. format: int32 hasMore: type: boolean description: Whether there are more schedules available beyond the current page. schedules: type: array items: $ref: "#/components/schemas/ScheduleOnCallSummary" required: - total - hasMore - schedules ScheduleOnCallSummary: type: object properties: id: type: integer description: Unique identifier of the schedule. format: int32 name: type: string description: Name of the schedule. team: description: Team associated with the schedule, if any. anyOf: - $ref: "#/components/schemas/ScheduleTeamRef" - type: "null" onCallResponderEmails: type: array items: type: string format: email description: Email addresses of all current on-call responders for the schedule. required: - id - name - onCallResponderEmails OnCallHoursReportResponse: type: object properties: summary: $ref: "#/components/schemas/OnCallHoursSummary" entries: type: array items: $ref: "#/components/schemas/OnCallHoursEntry" description: Aggregated on-call hours grouped by member and team. required: - summary - entries OnCallHoursSummary: type: object properties: totalHours: type: number description: Total on-call hours across all returned entries. totalPeople: type: integer description: Number of distinct people represented in the response. format: int32 avgHoursPerPerson: type: number description: Average on-call hours per distinct person. totalDays: type: number description: Total on-call days across all entries (= totalHours / hoursPerDay). Only present when the request specified hoursPerDay. avgDaysPerPerson: type: number description: Average on-call days per distinct person. Only present when the request specified hoursPerDay. required: - totalHours - totalPeople - avgHoursPerPerson OnCallHoursEntry: type: object properties: memberId: type: integer description: Unique identifier of the user. format: int32 memberName: type: string description: Display name of the user. memberEmail: type: string format: email description: Email address of the user. teamId: type: - integer - "null" description: Unique identifier of the team, if the schedule is team-scoped. format: int32 teamName: type: - string - "null" description: Name of the team, if the schedule is team-scoped. totalHours: type: number description: Total on-call hours for the user/team grouping. totalDays: type: number description: Total on-call days for the user/team grouping (= totalHours / hoursPerDay). Only present when the request specified hoursPerDay. shiftCount: type: integer description: Number of contributing shifts; with splitAtLocalMidnight, the number of pieces. format: int32 shifts: type: array items: $ref: "#/components/schemas/OnCallHoursShift" description: Underlying shifts contributing to the aggregate. required: - memberId - memberName - memberEmail - teamId - teamName - totalHours - shiftCount - shifts OnCallHoursShift: type: object properties: scheduleId: type: integer description: Unique identifier of the schedule. format: int32 scheduleName: type: string description: Name of the schedule. startAt: type: string format: date-time description: Shift start timestamp in ISO 8601 format. endAt: type: string format: date-time description: Shift end timestamp in ISO 8601 format. hours: type: number description: Number of on-call hours contributed by the shift within the report window. isOverride: type: boolean description: Whether the shift came from an override. timezone: type: string description: IANA timezone of the schedule, for example Europe/Stockholm. localDate: type: string pattern: ^\d{4}-\d{2}-\d{2}$ description: Date of the piece in the schedule timezone (YYYY-MM-DD). Only present when splitAtLocalMidnight is true. example: 2026-03-29 weekday: type: string enum: - sunday - monday - tuesday - wednesday - thursday - friday - saturday description: Weekday of localDate. Only present when splitAtLocalMidnight is true. example: sunday required: - scheduleId - scheduleName - startAt - endAt - hours - isOverride - timezone ScheduleTimelineResponse: type: object properties: shifts: type: array items: $ref: "#/components/schemas/TimelineShift" required: - shifts TimelineShift: type: object properties: scheduleId: type: integer description: Unique identifier of the schedule. format: int32 scheduleName: type: string description: Name of the schedule. timezone: type: string description: IANA timezone of the schedule, for example Europe/Stockholm. rotationId: type: integer description: Unique identifier of the rotation. format: int32 rotationName: type: string description: Name of the rotation. memberId: type: integer description: Unique identifier of the user on call. format: int32 memberName: type: string description: Display name of the user on call. memberEmail: type: string description: Email address of the user on call. startAt: type: string format: date-time description: Shift start in ISO 8601, clipped to the requested range. endAt: type: string format: date-time description: Shift end in ISO 8601, clipped to the requested range. isOverride: type: boolean description: Whether an override puts this user on call. localDate: type: string pattern: ^\d{4}-\d{2}-\d{2}$ description: Date of the piece in the schedule timezone (YYYY-MM-DD). Only present when splitAtLocalMidnight is true. example: 2026-03-29 weekday: type: string enum: - sunday - monday - tuesday - wednesday - thursday - friday - saturday description: Weekday of localDate. Only present when splitAtLocalMidnight is true. example: sunday required: - scheduleId - scheduleName - timezone - rotationId - rotationName - memberId - memberName - memberEmail - startAt - endAt - isOverride PagesListResponse: type: object properties: total: type: integer hasMore: type: boolean pages: type: array items: $ref: "#/components/schemas/Page" required: - total - hasMore - pages Page: type: object properties: id: type: integer description: Unique identifier of the page. format: int32 type: type: string enum: - email - phone - sms - slack - teams - mobile - escalation description: Channel the page went through, or escalation. status: type: string description: Delivery outcome, as the statuses filter names it. user: description: Person who was paged. anyOf: - $ref: "#/components/schemas/PageUser" - type: "null" incidentId: type: - integer - "null" description: Incident the page was sent for. format: int32 incidentTitle: type: - string - "null" description: Title of that incident. alertId: type: - integer - "null" description: Alert the page was sent for. format: int32 acknowledgedAt: type: - string - "null" format: date-time description: ISO 8601 time the person responded to the page. createdAt: type: string format: date-time description: ISO 8601 time the page was sent. required: - id - type - status - user - incidentId - incidentTitle - alertId - acknowledgedAt - createdAt PublicEscalationPolicyListResponse: type: object properties: policies: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyResponse" total: type: integer minimum: 0 hasMore: type: boolean required: - policies - total - hasMore PublicEscalationPolicyResponse: type: object properties: id: type: integer exclusiveMinimum: 0 name: type: string description: type: string teamId: type: - integer - "null" exclusiveMinimum: 0 isDefault: type: boolean updatedAt: type: string format: date-time tiers: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyTierResponse" description: Tiers in escalation order, starting with the first item. required: - id - name - description - teamId - isDefault - updatedAt - tiers PublicEscalationPolicyTierResponse: type: object properties: id: type: integer exclusiveMinimum: 0 acknowledgementTimeThreshold: type: integer exclusiveMinimum: 0 scheduleTargets: type: array items: type: object properties: scheduleId: type: integer exclusiveMinimum: 0 mode: type: string enum: - current - next - previous required: - scheduleId - mode rotationTargets: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyRotationTargetResponse" channelTargets: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyChannelTarget" userIds: type: array items: type: integer exclusiveMinimum: 0 required: - id - acknowledgementTimeThreshold - scheduleTargets - rotationTargets - channelTargets - userIds PublicEscalationPolicyRotationTargetResponse: type: object properties: scheduleId: type: integer exclusiveMinimum: 0 mode: type: string enum: - current - next - previous rotationId: type: integer exclusiveMinimum: 0 required: - scheduleId - mode - rotationId PublicEscalationPolicyChannelTarget: type: object properties: id: type: string minLength: 1 description: The channel ID in the workspace chat platform, for example a Slack channel ID or a Teams conversation ID. label: type: string minLength: 1 description: The channel name shown in the policy. required: - id - label additionalProperties: false CreatePublicEscalationPolicyRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 description: type: string maxLength: 1000 teamId: type: - integer - "null" exclusiveMinimum: 0 isDefault: type: boolean tiers: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyTierInput" minItems: 1 description: At least one tier is required. Tiers escalate in array order, starting with the first item. The server assigns their positions. required: - name - description - tiers additionalProperties: false PublicEscalationPolicyTierInput: type: object properties: acknowledgementTimeThreshold: type: integer exclusiveMinimum: 0 description: Acknowledgement timeout in milliseconds. scheduleTargets: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyScheduleTargetInput" rotationTargets: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyRotationTargetInput" channelTargets: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyChannelTarget" description: Slack or Teams channels the tier posts the alert or incident card to. Acknowledging the alert from the card stops the escalation. userIds: type: array items: type: integer exclusiveMinimum: 0 required: - acknowledgementTimeThreshold additionalProperties: false anyOf: - required: - scheduleTargets properties: scheduleTargets: type: array minItems: 1 - required: - rotationTargets properties: rotationTargets: type: array minItems: 1 - required: - channelTargets properties: channelTargets: type: array minItems: 1 - required: - userIds properties: userIds: type: array minItems: 1 PublicEscalationPolicyScheduleTargetInput: type: object properties: scheduleId: type: integer exclusiveMinimum: 0 mode: type: string enum: - current - next - previous default: current required: - scheduleId additionalProperties: false PublicEscalationPolicyRotationTargetInput: type: object properties: scheduleId: type: integer exclusiveMinimum: 0 mode: type: string enum: - current - next - previous default: current rotationId: type: integer exclusiveMinimum: 0 required: - scheduleId - rotationId additionalProperties: false UpdatePublicEscalationPolicyRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 description: type: string maxLength: 1000 isDefault: type: boolean tiers: type: array items: $ref: "#/components/schemas/PublicEscalationPolicyTierInput" minItems: 1 description: At least one tier is required. Tiers escalate in array order, starting with the first item. The server assigns their positions. additionalProperties: false minProperties: 1 CreateEscalationRequest: type: object properties: alertId: type: integer exclusiveMinimum: 0 maximum: 2147483647 incidentId: type: integer exclusiveMinimum: 0 maximum: 2147483647 escalationPolicyId: type: integer exclusiveMinimum: 0 maximum: 2147483647 required: - escalationPolicyId additionalProperties: false description: Exactly one of alertId or incidentId, plus escalationPolicyId. All references must belong to the API key’s organization. oneOf: - required: - alertId - required: - incidentId example: incidentId: 123 escalationPolicyId: 456 IncidentTimelineEntryResponse: type: object properties: timelineEvent: $ref: "#/components/schemas/IncidentTimelineEvent" required: - timelineEvent IncidentTimelineEvent: type: object properties: id: type: integer instanceId: type: integer externalId: type: string content: type: string eventType: type: string timestamp: type: string format: date-time metadata: {} required: - id - instanceId - externalId - content - eventType - timestamp IncidentArchiveResponse: type: object properties: id: type: integer archivedAt: type: string format: date-time description: ISO 8601 timestamp when the incident was archived. Repeated requests return the original timestamp. required: - id - archivedAt IncidentDetail: allOf: - $ref: "#/components/schemas/IncidentSummary" - type: object properties: analysis: type: - object - "null" properties: facts: type: string reasoning: type: object properties: midmortem: type: string actions: type: string description: AI-generated incident analysis including midmortem summary, facts, and recommended actions. timeline: type: array items: $ref: "#/components/schemas/IncidentTimelineEvent" description: Ordered list of timeline events (included when ?include=timeline). postmortems: type: array items: {} description: Postmortem documents with latest content (included when ?include=postmortems). conversations: description: Incident messages grouped by source - slack/microsoftTeams/email (included when ?include=conversations). meetingTranscripts: description: Meeting transcripts (included when ?include=meetingTranscripts). IncidentSummary: type: object properties: id: type: integer description: Unique identifier of the incident. format: int32 title: type: string description: Title of the incident. description: type: - string - "null" description: Description / body details of the incident. severity: type: - string - "null" description: Severity level of the incident. status: type: - string - "null" description: Legacy status of the incident, except PATCH responses which return canonical status matching normalizedStatus. normalizedStatus: type: - string - "null" description: Canonical normalized status (open, acknowledged, resolved, blocked, observation). source: type: string description: Source type of the incident. externalId: type: string description: External identifier of the incident. reportedAt: type: - string - "null" description: ISO 8601 timestamp when the incident was reported. resolvedAt: type: - string - "null" format: date-time description: ISO 8601 incident resolution time, null when unknown or reopened. impactStartedAt: type: - string - "null" format: date-time description: UTC ISO 8601 timestamp when impact began. Set through the API or the dashboard, never derived, and independent of reportedAt. Null when not set. example: 2026-11-17T16:12:00.000Z impactEndedAt: type: - string - "null" format: date-time description: UTC ISO 8601 timestamp when impact ended. Independent of resolvedAt and of status, so it can be set on an incident that is still open. Null when not set. example: 2026-11-17T17:40:00.000Z acknowledgedAt: type: - string - "null" description: ISO 8601 timestamp when the incident was acknowledged. lastActivity: type: string format: date-time description: ISO 8601 timestamp of the last activity on the incident. Defaults to createdAt when activity time is missing or invalid. archivedAt: type: - string - "null" description: ISO 8601 timestamp when the incident was archived, null if active. createdAt: type: string description: ISO 8601 timestamp when the incident was created. updatedAt: type: - string - "null" format: date-time description: UTC ISO 8601 timestamp when the incident record was last updated; the same value used by updatedSince. Includes changes to responder and label assignments, and manual timeline entry submissions. Unchanged assignments do not advance it. Automatic and AI-generated timeline entries alone do not advance it. Null when unavailable. externalLinks: description: External links associated with the incident (Slack, PagerDuty, Jira, etc.). customFields: type: array items: type: object properties: id: type: string minLength: 1 name: type: string value: type: - string - "null" required: - id - name - value additionalProperties: false description: Per-incident custom fields with permanent opaque IDs. IDs survive name/value edits and differ across incidents. example: - id: cf_8b2c69f0-7466-49b8-8fe8-39d477f502cd name: region value: us-east-1 responders: type: array items: oneOf: - type: object properties: type: type: string enum: - team team: type: object properties: id: type: integer name: type: string description: type: string required: - id - name - description required: - type - team - type: object properties: type: type: string enum: - user user: type: object properties: id: type: integer email: type: string fullName: type: - string - "null" required: - id - email - fullName required: - type - user description: Responders assigned to the incident. labels: type: array items: type: object properties: id: type: integer name: type: string color: type: string required: - id - name - color description: Labels applied to the incident. serviceCatalogs: type: array items: type: object properties: id: type: string name: type: string kind: type: string links: type: array items: type: object properties: title: type: string type: type: string url: type: string required: - title - type - url groups: type: array items: type: object properties: name: type: string kind: type: string links: type: array items: type: object properties: title: type: string type: type: string url: type: string required: - title - type - url required: - name - kind required: - id - name - kind - groups description: Service catalog entities assigned to the incident. team: type: - object - "null" properties: id: type: integer name: type: string description: type: string required: - id - name - description description: Owning team of the incident. required: - id - title - externalId - resolvedAt - impactStartedAt - impactEndedAt - lastActivity - updatedAt - customFields IncidentsListResponse: type: object properties: total: type: integer description: Total number of incidents matching the filters. format: int32 hasMore: type: boolean description: Whether more incidents are available beyond the current page. incidents: type: array items: $ref: "#/components/schemas/IncidentSummary" required: - total - hasMore - incidents IncidentsBatchResponse: type: object properties: incidents: type: array items: $ref: "#/components/schemas/IncidentDetail" required: - incidents IncidentServicesResponse: type: object properties: serviceIds: type: array items: type: string required: - serviceIds IncidentRespondersUpdateResponse: type: object properties: success: type: boolean required: - success IncidentLabelsResponse: type: object properties: labels: type: array items: type: object properties: id: type: integer name: type: string color: type: string required: - id - name - color required: - labels IncidentCommentsResponse: type: object properties: comments: type: array items: $ref: "#/components/schemas/IncidentComment" required: - comments IncidentComment: type: object properties: id: type: integer body: type: string author: description: Resolved author, separate from the submitting actor. Null for legacy comments with unknown authorship. anyOf: - $ref: "#/components/schemas/IncidentCommentAuthor" - type: "null" createdAt: type: string format: date-time description: Comment creation time in UTC. May be supplied through timestamp when creating a comment. updatedAt: type: string format: date-time required: - id - body - author - createdAt - updatedAt IncidentCustomFieldsResponse: type: object properties: customFields: type: array items: type: object properties: id: type: string minLength: 1 name: type: string value: type: - string - "null" required: - id - name - value additionalProperties: false required: - customFields AlertsListResponse: type: object properties: total: type: integer description: Total number of alerts matching the filters. format: int32 hasMore: type: boolean description: Whether more alerts are available beyond the current page. alerts: type: array items: $ref: "#/components/schemas/AlertSummary" required: - total - hasMore - alerts AlertSummary: type: object properties: id: type: integer description: Unique identifier of the alert. format: int32 title: type: string description: Title of the alert. description: type: - string - "null" description: Description of the alert. provider: type: string description: Source integration / provider name. severity: anyOf: - type: string enum: - SEV0 - SEV1 - SEV2 - SEV3 - SEV4 - SEV5 - SIGNAL - type: string enum: - info - warning - minor - major - critical - type: "null" description: Backward-compatible alert severity. Prefer canonicalSeverity for the canonical SEV0-SEV5 or SIGNAL value. canonicalSeverity: type: - string - "null" enum: - SEV0 - SEV1 - SEV2 - SEV3 - SEV4 - SEV5 - SIGNAL description: Canonical alert severity (SEV0-SEV5 or SIGNAL). status: type: - string - "null" description: Current status of the alert. externalId: type: string description: External identifier from the provider. sourceUrl: type: - string - "null" description: Deep-link URL to the alert in the provider system. team: description: Owning team of the alert. anyOf: - $ref: "#/components/schemas/AlertTeam" - type: "null" owner: description: User assigned as the alert owner. anyOf: - $ref: "#/components/schemas/AlertUser" - type: "null" responderTeams: type: array items: $ref: "#/components/schemas/AlertTeam" description: Teams paged for the alert through notification routing. pagedUsers: type: array items: $ref: "#/components/schemas/AlertUser" description: Users the alert attempted to page. createdAt: type: string format: date-time description: ISO 8601 creation timestamp. updatedAt: type: string format: date-time description: ISO 8601 last-update timestamp. acknowledgedAt: type: - string - "null" format: date-time description: ISO 8601 time of the most recent acknowledgement on the alert timeline. Null if never acknowledged. Kept when the alert is reopened; check status for the current state. acknowledgedBy: description: User behind the most recent acknowledgement, matching the "Acked by" column in the dashboard. Null if never acknowledged or if it was acknowledged by an integration rather than a user. anyOf: - $ref: "#/components/schemas/AlertAcknowledger" - type: "null" resolvedAt: type: - string - "null" format: date-time description: ISO 8601 time of the most recent resolve on the alert timeline. Null if never resolved. Kept when the alert is reopened; check status for the current state. closedAt: type: - string - "null" format: date-time description: ISO 8601 time of the most recent close on the alert timeline. Null if never closed. Kept when the alert is reopened; check status for the current state. required: - id - title - provider - canonicalSeverity - externalId - owner - pagedUsers - createdAt - updatedAt - acknowledgedAt - acknowledgedBy - resolvedAt - closedAt AlertDetail: allOf: - $ref: "#/components/schemas/AlertSummary" - type: object properties: content: description: Full alert content payload. metadata: description: Additional metadata associated with the alert. timeline: type: array items: $ref: "#/components/schemas/AlertTimelineEntry" description: Ordered list of alert timeline events. incidents: type: array items: type: object properties: instanceId: type: integer required: - instanceId description: Incidents this alert has been escalated to. labels: type: array items: $ref: "#/components/schemas/AlertLabel" description: Labels assigned to this alert. notes: type: array items: $ref: "#/components/schemas/AlertNote" description: Visible notes attached to this alert, newest first. AlertTimelineEntry: type: object properties: id: type: integer timelineEvent: type: string metadata: {} createdAt: type: string format: date-time occurrences: type: object properties: count: type: integer firstAt: type: string format: date-time lastAt: type: string format: date-time required: - count - firstAt - lastAt description: Present when this entry stands for a run of consecutive DUPLICATED events. The entry is the newest row of the run; `count` is how many rows it replaces, `firstAt`/`lastAt` bound the run. Absent on an entry that is a single row. required: - id - timelineEvent - createdAt AlertLabel: type: object properties: id: type: integer name: type: string color: type: string required: - id - name - color AlertNote: type: object properties: id: type: integer body: type: string createdAt: type: string format: date-time updatedAt: type: string format: date-time isEdited: type: boolean required: - id - body - createdAt - updatedAt - isEdited AlertUpdateResponse: type: object properties: severity: anyOf: - type: string enum: - SEV0 - SEV1 - SEV2 - SEV3 - SEV4 - SEV5 - SIGNAL - type: string enum: - info - warning - minor - major - critical - type: "null" canonicalSeverity: type: - string - "null" enum: - SEV0 - SEV1 - SEV2 - SEV3 - SEV4 - SEV5 - SIGNAL status: type: - string - "null" enum: - open - acknowledged - closed - resolved required: - severity - canonicalSeverity - status AlertsBatchResponse: type: object properties: alerts: type: array items: $ref: "#/components/schemas/AlertDetail" required: - alerts AlertNotesResponse: type: object properties: notes: type: array items: $ref: "#/components/schemas/AlertNote" required: - notes AlertMetadataResponse: type: object properties: metadata: type: - object - "null" additionalProperties: {} required: - metadata AlertLabelsResponse: type: object properties: labels: type: array items: $ref: "#/components/schemas/AlertLabel" required: - labels LabelsListResponse: type: object properties: labels: type: array items: $ref: "#/components/schemas/Label" required: - labels Label: type: object properties: id: type: integer description: Unique identifier of the label. format: int32 name: type: string description: Display name of the label. color: type: string description: "Hex color code (e.g. #FF0000)." incidentUsageCount: type: integer description: Number of incidents using this label. format: int32 alertUsageCount: type: integer description: Number of alerts using this label. format: int32 usageCount: type: integer description: Total number of incidents and alerts using this label. format: int32 required: - id - name - color - incidentUsageCount - alertUsageCount - usageCount MembersListResponse: type: object properties: total: type: integer description: Total number of members matching the filters. format: int32 hasMore: type: boolean description: Whether there are more members available beyond the current page. members: type: array items: $ref: "#/components/schemas/Member" required: - total - hasMore - members Member: type: object properties: id: type: integer description: Unique identifier of the user. Use it as `userId` when assigning team members. format: int32 email: type: string description: Email address of the user. fullName: type: - string - "null" description: Full name of the user. status: type: - string - "null" enum: - active - pending - revoked description: Account status of the user in the organization (active, pending, revoked). role: description: Organization role of the user. This is what `roleIds` filters on, and is distinct from the team membership `role` returned by the team members endpoint. anyOf: - $ref: "#/components/schemas/MemberRole" - type: "null" labels: type: array items: $ref: "#/components/schemas/MemberLabel" description: Labels attached to the user. createdAt: type: string format: date-time description: ISO 8601 timestamp when the user was created. updatedAt: type: string format: date-time description: ISO 8601 timestamp when the user was last updated. required: - id - email - fullName - status - role - labels - createdAt - updatedAt MemberLabel: type: object properties: id: type: integer description: Unique identifier of the label. format: int32 name: type: string description: Display name of the label. color: type: string description: "Hex color code (e.g. #FF0000)." required: - id - name - color AutomationActionsListResponse: type: object properties: total: type: integer description: Total number of automation actions for the organization. format: int32 hasMore: type: boolean description: Whether more automation actions are available beyond the current page. automationActions: type: array items: $ref: "#/components/schemas/AutomationActionSummary" required: - total - hasMore - automationActions AutomationActionSummary: type: object properties: id: type: integer description: Unique identifier of the automation action. format: int32 name: type: string description: Automation action name. description: type: - string - "null" description: Automation action description. teamId: type: - integer - "null" description: Team this automation action is scoped to, if any. format: int32 triggerType: type: string enum: - ALERT_CREATED - ALERT_TIMELINE_UPDATED - INCIDENT_WAR_ROOM_CREATED - INCIDENT_CREATED - INCIDENT_TIMELINE_UPDATED - USER_TRIGGER description: Trigger that starts this automation action. isEnabled: type: boolean description: Whether this automation action is enabled. actions: type: array items: $ref: "#/components/schemas/AutomationActionStepSummary" description: Ordered public summary of the steps in this automation action. createdAt: type: string format: date-time description: ISO 8601 creation timestamp. updatedAt: type: string format: date-time description: ISO 8601 last-update timestamp. required: - id - name - description - teamId - triggerType - isEnabled - actions - createdAt - updatedAt AutomationActionStepSummary: type: object properties: id: type: integer description: Unique identifier of the automation action step. format: int32 index: type: integer description: Zero-based execution order of this step within the automation action. format: int32 actionType: type: string enum: - PUBLISH_TO_CHANNEL - DECLARE_INCIDENT - CREATE_TICKET - INVITE_USERS_TO_CHANNEL - SEND_DIRECT_MESSAGE - INVOKE_REST_CONNECTION - RUN_ASSISTANT_AGENT - VARIABLES_INPUT - SEND_EMAIL description: Type of action this step executes. required: - id - index - actionType AutomationActionExecutionsListResponse: type: object properties: total: type: integer description: Total number of execution logs matching the filters. format: int32 hasMore: type: boolean description: Whether more execution logs are available beyond the current page. executions: type: array items: $ref: "#/components/schemas/AutomationActionExecutionSummary" required: - total - hasMore - executions AutomationActionExecutionSummary: type: object properties: id: type: string format: uuid description: Unique identifier of this execution log row. executionId: type: string format: uuid description: Identifier shared by all step logs from the same automation execution. automationActionId: type: integer description: ID of the automation action that produced this execution log. format: int32 automationActionStepId: type: integer description: ID of the automation action step that produced this execution log. format: int32 teamId: type: - integer - "null" description: Team associated with this execution, if any. format: int32 triggerType: type: string enum: - ALERT_CREATED - ALERT_TIMELINE_UPDATED - INCIDENT_WAR_ROOM_CREATED - INCIDENT_CREATED - INCIDENT_TIMELINE_UPDATED - USER_TRIGGER description: Trigger that started this execution. actionType: type: string enum: - PUBLISH_TO_CHANNEL - DECLARE_INCIDENT - CREATE_TICKET - INVITE_USERS_TO_CHANNEL - SEND_DIRECT_MESSAGE - INVOKE_REST_CONNECTION - RUN_ASSISTANT_AGENT - VARIABLES_INPUT - SEND_EMAIL description: Action type executed by this step. status: type: string enum: - running - success - failed description: Current or final status of this execution log. alertId: type: - integer - "null" description: Related alert ID, if this execution was alert-driven. format: int32 incidentId: type: - integer - "null" description: Related incident ID, if this execution was incident-driven. format: int32 executorUserId: type: - integer - "null" description: User ID that manually triggered the execution, if any. format: int32 summary: anyOf: - type: object additionalProperties: {} - type: array items: {} - type: string - type: number - type: boolean - type: "null" description: Execution result summary, when available. createdAt: type: string format: date-time description: ISO 8601 creation timestamp. updatedAt: type: string format: date-time description: ISO 8601 last-update timestamp. required: - id - executionId - automationActionId - automationActionStepId - teamId - triggerType - actionType - status - alertId - incidentId - executorUserId - summary - createdAt - updatedAt AutomationActionExecutionSummariesListResponse: type: object properties: total: type: integer description: Total number of execution runs matching the filters. format: int32 hasMore: type: boolean description: Whether more execution runs are available beyond the current page. executions: type: array items: $ref: "#/components/schemas/AutomationActionExecutionRunSummary" required: - total - hasMore - executions AutomationActionExecutionRunSummary: type: object properties: executionId: type: string format: uuid description: Identifier shared by all step logs from the same automation execution. automationActionId: type: integer description: ID of the automation action that produced this execution. format: int32 teamId: type: - integer - "null" description: Team associated with this execution, if any. format: int32 triggerType: type: string enum: - ALERT_CREATED - ALERT_TIMELINE_UPDATED - INCIDENT_WAR_ROOM_CREATED - INCIDENT_CREATED - INCIDENT_TIMELINE_UPDATED - USER_TRIGGER description: Trigger that started this execution. status: type: string enum: - running - success - failed description: Rolled-up execution status across all step logs. alertId: type: - integer - "null" description: Related alert ID, if this execution was alert-driven. format: int32 incidentId: type: - integer - "null" description: Related incident ID, if this execution was incident-driven. format: int32 executorUserId: type: - integer - "null" description: User ID that manually triggered the execution, if any. format: int32 stepCount: type: integer description: Number of step logs recorded for this execution. format: int32 createdAt: type: string format: date-time description: ISO 8601 timestamp from the earliest step log in this execution. updatedAt: type: string format: date-time description: ISO 8601 timestamp from the latest step log update in this execution. required: - executionId - automationActionId - teamId - triggerType - status - alertId - incidentId - executorUserId - stepCount - createdAt - updatedAt AutomationActionExecutionDetailResponse: type: object properties: executionId: type: string format: uuid automationAction: type: object properties: id: type: integer format: int32 name: type: string required: - id - name executions: type: array items: $ref: "#/components/schemas/AutomationActionExecutionDetail" required: - executionId - automationAction - executions AutomationActionExecutionDetail: allOf: - $ref: "#/components/schemas/AutomationActionExecutionSummary" - type: object properties: automationActionName: type: string description: Name of the automation action that ran. stepIndex: type: - integer - "null" description: Current step index for this action step, when still available. format: int32 requester: type: - object - "null" properties: type: type: string enum: - user userId: type: integer format: int32 required: - type - userId description: User who manually requested the run, when the run was user-triggered. parameters: $ref: "#/components/schemas/AutomationActionExecutionParameters" required: - automationActionName - stepIndex - requester - parameters AutomationActionExecutionParameters: type: object properties: actionConfig: anyOf: - type: object additionalProperties: {} - type: array items: {} - type: string - type: number - type: boolean - type: "null" description: Redacted configuration snapshot for the executed action step. submittedInput: anyOf: - type: object additionalProperties: {} - type: array items: {} - type: string - type: number - type: boolean - type: "null" description: Redacted user-submitted input for this action run, when available. required: - actionConfig - submittedInput ServicesListResponse: type: object properties: total: type: integer description: Total number of services matching the filters. format: int32 hasMore: type: boolean description: Whether more services are available beyond the current page. services: type: array items: $ref: "#/components/schemas/ServiceCatalogPublicSummary" required: - total - hasMore - services ServiceCatalogPublicSummary: type: object properties: id: type: integer description: Unique identifier of the service. format: int32 name: type: string description: Service display name. description: type: - string - "null" description: Service description. teamId: type: - integer - "null" description: Owning team ID, if one is assigned. format: int32 externalProvider: type: - string - "null" description: External source provider, if this service was imported. externalServiceId: type: - string - "null" description: External provider identifier, if this service was imported. responders: type: array items: $ref: "#/components/schemas/ServiceResponder" description: Teams and users added to the service. Its owning team responds without being added; adding it as well keeps it responding after the service moves to another team. stakeholders: type: array items: $ref: "#/components/schemas/ServiceStakeholder" description: Manual stakeholder users assigned to this service. createdAt: type: string format: date-time description: ISO 8601 creation timestamp. updatedAt: type: string format: date-time description: ISO 8601 last-update timestamp. deletedAt: type: - string - "null" format: date-time description: ISO 8601 deletion timestamp, null when active. required: - id - name - description - teamId - externalProvider - externalServiceId - responders - stakeholders - createdAt - updatedAt - deletedAt ServiceResponder: oneOf: - $ref: "#/components/schemas/ServiceTeamResponder" - $ref: "#/components/schemas/ServiceUserResponder" discriminator: propertyName: type mapping: team: "#/components/schemas/ServiceTeamResponder" user: "#/components/schemas/ServiceUserResponder" ServiceTeamResponder: type: object properties: type: type: string enum: - team team: type: object properties: id: type: integer format: int32 name: type: string required: - id - name required: - type - team ServiceUserResponder: type: object properties: type: type: string enum: - user user: type: object properties: id: type: integer format: int32 email: type: string fullName: type: - string - "null" required: - id - email - fullName required: - type - user ServiceStakeholder: type: object properties: id: type: integer format: int32 email: type: string fullName: type: - string - "null" required: - id - email - fullName ServiceResponse: type: object properties: service: $ref: "#/components/schemas/ServiceCatalogPublicSummary" required: - service ServiceRespondersResponse: type: object properties: responders: type: array items: $ref: "#/components/schemas/ServiceResponder" required: - responders ServiceStakeholdersResponse: type: object properties: stakeholders: type: array items: $ref: "#/components/schemas/ServiceStakeholder" required: - stakeholders MicrosoftTeamsTeamsListResponse: type: object properties: total: type: integer description: Total number of joined teams matching the filters. format: int32 hasMore: type: boolean description: Whether more teams are available beyond the current page. teams: type: array items: $ref: "#/components/schemas/MicrosoftTeamsTeam" required: - total - hasMore - teams ChatChannelsListResponse: type: object properties: platform: $ref: "#/components/schemas/ChatPlatform" microsoftTeamsTeam: description: The Microsoft Teams team the channels belong to; null for Slack organizations. anyOf: - $ref: "#/components/schemas/MicrosoftTeamsTeam" - type: "null" total: type: integer description: Total number of channels matching the filters. format: int32 hasMore: type: boolean description: Whether more channels are available beyond the current page. channels: type: array items: $ref: "#/components/schemas/ChatChannel" required: - platform - microsoftTeamsTeam - total - hasMore - channels ChatPlatform: type: string enum: - slack - microsoftTeams description: "The chat platform the organization is connected to: `slack` or `microsoftTeams`." ChatChannel: type: object properties: id: type: string description: Platform channel ID, as accepted by `announcementChannels` on maintenance windows (Slack `C…` or Microsoft Teams `19:…@thread.tacv2`). name: type: string description: Channel display name. required: - id - name MaintenanceWindowsListResponse: type: object properties: total: type: integer description: Total number of maintenance windows matching the filters. format: int32 hasMore: type: boolean description: Whether more maintenance windows are available beyond the current page. maintenanceWindows: type: array items: $ref: "#/components/schemas/MaintenanceWindow" required: - total - hasMore - maintenanceWindows MaintenanceWindow: type: object properties: id: type: integer description: Unique identifier of the maintenance window. format: int32 name: type: string description: Display name. description: type: - string - "null" description: Description. teamId: type: - integer - "null" description: ID of the team the window is scoped to, or null for a global window. format: int32 startAt: type: string format: date-time description: ISO 8601 start instant. endAt: type: string format: date-time description: ISO 8601 end instant. status: $ref: "#/components/schemas/MaintenanceWindowStatus" conditions: type: - array - "null" items: $ref: "#/components/schemas/MaintenanceWindowCondition" description: Conditions limiting which in-scope alerts the window applies to; null when it applies to all. conditionsLogicalOperator: type: - string - "null" enum: - AND - OR description: How the top-level conditions combine; null when there are no conditions. announcementChannels: type: array items: $ref: "#/components/schemas/MaintenanceWindowAnnouncementChannel" description: Chat channels the window announces its start and end in; empty when it announces nowhere. createdAt: type: string format: date-time description: ISO 8601 creation timestamp. updatedAt: type: string format: date-time description: ISO 8601 last-update timestamp. required: - id - name - description - teamId - startAt - endAt - status - conditions - conditionsLogicalOperator - announcementChannels - createdAt - updatedAt MaintenanceWindowStatus: type: string enum: - upcoming - active - ended description: Where the window sits relative to the current time. MaintenanceWindowCondition: anyOf: - $ref: "#/components/schemas/MaintenanceWindowSeverityCondition" - $ref: "#/components/schemas/MaintenanceWindowFieldCondition" - $ref: "#/components/schemas/MaintenanceWindowProviderCondition" - $ref: "#/components/schemas/MaintenanceWindowTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: anyOf: - $ref: "#/components/schemas/MaintenanceWindowSeverityCondition" - $ref: "#/components/schemas/MaintenanceWindowFieldCondition" - $ref: "#/components/schemas/MaintenanceWindowProviderCondition" - $ref: "#/components/schemas/MaintenanceWindowTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: anyOf: - $ref: "#/components/schemas/MaintenanceWindowSeverityCondition" - $ref: "#/components/schemas/MaintenanceWindowFieldCondition" - $ref: "#/components/schemas/MaintenanceWindowProviderCondition" - $ref: "#/components/schemas/MaintenanceWindowTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: anyOf: - $ref: "#/components/schemas/MaintenanceWindowSeverityCondition" - $ref: "#/components/schemas/MaintenanceWindowFieldCondition" - $ref: "#/components/schemas/MaintenanceWindowProviderCondition" - $ref: "#/components/schemas/MaintenanceWindowTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: $ref: "#/components/schemas/MaintenanceWindowLeafCondition" minItems: 1 required: - type - operator - conditions minItems: 1 required: - type - operator - conditions minItems: 1 required: - type - operator - conditions minItems: 1 required: - type - operator - conditions description: A leaf condition or a parenthesised group of conditions. Groups may nest up to 5 levels deep. MaintenanceWindowSeverityCondition: type: object properties: type: type: string enum: - severity rule: type: object properties: operator: type: string enum: - equal_to - less_than - greater_than - less_than_or_equal - greater_than_or_equal severity: type: string required: - operator - severity required: - type - rule description: rule.severity accepts the canonical SEV0-SEV5 or SIGNAL, or an alias such as P1 or critical. MaintenanceWindowFieldCondition: type: object properties: type: type: string enum: - field rule: type: object properties: fieldPath: type: string minLength: 1 description: Dot-path into the payload this rule is evaluated against. Alert routing, enrichment and maintenance-window rules evaluate the incoming payload, where the source's own fields are under `details`; automation rules evaluate the stored alert, where the same fields are under `metadata`. A path that matches nothing makes the rule silently never fire. operator: type: string enum: - contains - exact_match - not_contains - matches_regex conditionValue: type: string isCaseSensitive: type: - boolean - "null" required: - fieldPath - operator - conditionValue required: - type - rule MaintenanceWindowProviderCondition: type: object properties: type: type: string enum: - provider rule: type: object properties: operator: type: string enum: - one_of providers: type: array items: type: string enum: - jira - opsgenie - grafana - datadog - coralogix - newrelic - prometheus - cloudwatch - sns - heartbeat - email - sentry - embraceio - http - azuremonitor - cloudamqp - pagerduty minItems: 1 required: - operator - providers required: - type - rule MaintenanceWindowTimeCondition: type: object properties: type: type: string enum: - time rule: type: object properties: timezone: type: string minLength: 1 operator: type: string enum: - day_in_between - week_in_between timeInterval: anyOf: - type: object properties: startHourOffset: type: string pattern: ^\d{2}:\d{2}$ endHourOffset: type: string pattern: ^\d{2}:\d{2}$ required: - startHourOffset - endHourOffset - type: object properties: weekRanges: type: array items: type: object properties: startDay: type: integer minimum: 0 maximum: 6 endDay: type: integer minimum: 0 maximum: 6 startHourOffset: type: string pattern: ^\d{2}:\d{2}$ endHourOffset: type: string pattern: ^\d{2}:\d{2}$ required: - startDay - endDay - startHourOffset - endHourOffset minItems: 1 required: - weekRanges required: - timezone - operator - timeInterval required: - type - rule MaintenanceWindowLeafCondition: anyOf: - $ref: "#/components/schemas/MaintenanceWindowSeverityCondition" - $ref: "#/components/schemas/MaintenanceWindowFieldCondition" - $ref: "#/components/schemas/MaintenanceWindowProviderCondition" - $ref: "#/components/schemas/MaintenanceWindowTimeCondition" description: One condition on the incoming alert payload. severity compares the alert severity; field matches a dot-path in the payload (source fields live under `details`); provider matches the source integration; time matches a recurring daily or weekly interval in the given timezone. MaintenanceWindowAnnouncementChannel: type: object properties: id: type: string description: Platform channel ID. name: type: string description: Channel display name at the time it was set. required: - id - name MaintenanceWindowResponse: type: object properties: maintenanceWindow: $ref: "#/components/schemas/MaintenanceWindow" required: - maintenanceWindow CreateMaintenanceWindowRequest: type: object properties: teamId: type: - integer - "null" exclusiveMinimum: 0 description: Team the window is scoped to. Omit or send null for a global window that applies to every team in the organization. Fixed after creation. format: int32 name: type: string minLength: 1 maxLength: 64 description: Display name (max 64 characters). description: type: - string - "null" maxLength: 512 description: Description (max 512 characters). startAt: type: string format: date-time description: ISO 8601 start instant. On create it must not be more than two minutes in the past. endAt: type: string format: date-time description: ISO 8601 end instant. Must be after startAt. conditions: type: - array - "null" items: $ref: "#/components/schemas/MaintenanceWindowCondition" minItems: 1 description: Limits which in-scope alerts the window applies to. Omit or send null to suppress automatic paging for every alert in scope. Must be sent together with conditionsLogicalOperator. conditionsLogicalOperator: type: - string - "null" enum: &a1 - AND - OR description: How the top-level conditions combine. Must be sent together with conditions. announcementChannels: type: - array - "null" items: type: string minLength: 1 description: IDs of the chat channels to announce the window start and end in, as returned by GET /integrations/chat/channels. Every ID must belong to the connected chat platform. Omit or send null or an empty list for no announcements. required: - name - startAt - endAt additionalProperties: false UpdateMaintenanceWindowRequest: type: object properties: name: type: string minLength: 1 maxLength: 64 description: Display name (max 64 characters). description: type: - string - "null" maxLength: 512 description: Description (max 512 characters). startAt: type: string format: date-time description: ISO 8601 start instant. On create it must not be more than two minutes in the past. endAt: type: string format: date-time description: ISO 8601 end instant. Must be after startAt. conditions: type: - array - "null" items: $ref: "#/components/schemas/MaintenanceWindowCondition" minItems: 1 description: Limits which in-scope alerts the window applies to. Omit or send null to suppress automatic paging for every alert in scope. Must be sent together with conditionsLogicalOperator. conditionsLogicalOperator: type: - string - "null" enum: *a1 description: How the top-level conditions combine. Must be sent together with conditions. announcementChannels: type: - array - "null" items: type: string minLength: 1 description: IDs of the chat channels to announce the window start and end in, as returned by GET /integrations/chat/channels. Every ID must belong to the connected chat platform. Omit or send null or an empty list for no announcements. additionalProperties: false description: "Partial update: only the fields sent are changed. The team scope is fixed at creation. To end an active window early, send endAt set to the current time. Ended windows cannot be updated; active windows cannot change startAt and must keep endAt at or after the current time." MaintenanceWindowSuppressedAlertsResponse: type: object properties: total: type: integer description: Total number of alerts whose automatic paging this window suppressed. format: int32 hasMore: type: boolean description: Whether more alerts are available beyond the current page. alerts: type: array items: $ref: "#/components/schemas/AlertSummary" required: - total - hasMore - alerts AlertSourceListResponse: type: object properties: alertSources: type: array items: $ref: "#/components/schemas/AlertSource" required: - alertSources AlertSource: type: object properties: id: type: integer exclusiveMinimum: 0 name: type: string provider: type: string enum: - jira - opsgenie - grafana - datadog - coralogix - newrelic - prometheus - cloudwatch - sns - email - sentry - embraceio - http - azuremonitor - cloudamqp - pagerduty teamId: type: - integer - "null" exclusiveMinimum: 0 alertRoutingId: type: - integer - "null" exclusiveMinimum: 0 deduplication: description: Null uses the provider default; an empty string disables matching. Omission preserves the setting on update. anyOf: &a2 - $ref: "#/components/schemas/AlertSourceDeduplication" - type: "null" isEnabled: type: boolean webhookUrl: type: - string - "null" description: Where the monitoring tool posts alerts; null for an email source. webhookToken: type: - string - "null" description: The secret token at the end of webhookUrl; null for an email source. emailAddress: type: - string - "null" description: The inbound address of an email source; null otherwise. createdAt: type: string format: date-time updatedAt: type: string format: date-time required: - id - name - provider - teamId - alertRoutingId - deduplication - isEnabled - webhookUrl - webhookToken - emailAddress - createdAt - updatedAt CreateAlertSourceRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 description: Unique within its scope and provider. provider: type: string enum: - jira - opsgenie - grafana - datadog - coralogix - newrelic - prometheus - cloudwatch - sns - email - sentry - embraceio - http - azuremonitor - cloudamqp - pagerduty description: The monitoring tool that delivers to this source. Cannot be changed later. teamId: type: - integer - "null" exclusiveMinimum: 0 description: Omit or send null for an organization-level source. Cannot be changed later. deduplication: description: Null uses the provider default; an empty string disables matching. Omission preserves the setting on update. anyOf: *a2 alertRoutingId: type: - integer - "null" exclusiveMinimum: 0 description: The alert routing in the same scope that handles alerts arriving on this source. isEnabled: type: boolean description: A source that is off rejects what arrives on it. Defaults to true. required: - name - provider additionalProperties: false UpdateAlertSourceRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 deduplication: description: Null uses the provider default; an empty string disables matching. Omission preserves the setting on update. anyOf: *a2 alertRoutingId: type: - integer - "null" exclusiveMinimum: 0 description: The alert routing in the same scope that handles alerts arriving on this source. isEnabled: type: boolean additionalProperties: false minProperties: 1 AlertRoutingListResponse: type: object properties: alertRoutings: type: array items: $ref: "#/components/schemas/AlertRouting" required: - alertRoutings AlertRouting: type: object properties: id: type: integer exclusiveMinimum: 0 name: type: string description: type: - string - "null" teamId: type: - integer - "null" exclusiveMinimum: 0 isEnabled: type: boolean createdAt: type: string format: date-time updatedAt: type: string format: date-time rules: type: array items: $ref: "#/components/schemas/AlertRoutingRule" description: Rules in evaluation order. required: - id - name - description - teamId - isEnabled - createdAt - updatedAt - rules AlertRoutingRule: type: object properties: name: type: - string - "null" logicalOperator: type: string enum: - AND - OR description: How the top-level conditions combine. conditions: type: array items: $ref: "#/components/schemas/AlertRoutingCondition" description: An empty list with logicalOperator AND is the fallback rule, which matches every alert. action: anyOf: - $ref: "#/components/schemas/AlertRoutingEscalateAction" - $ref: "#/components/schemas/AlertRoutingDoNothingAction" required: - name - logicalOperator - conditions - action AlertRoutingCondition: anyOf: - $ref: "#/components/schemas/AlertRoutingSeverityCondition" - $ref: "#/components/schemas/AlertRoutingFieldCondition" - $ref: "#/components/schemas/AlertRoutingProviderCondition" - $ref: "#/components/schemas/AlertRoutingCountCondition" - $ref: "#/components/schemas/AlertRoutingTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: anyOf: - $ref: "#/components/schemas/AlertRoutingSeverityCondition" - $ref: "#/components/schemas/AlertRoutingFieldCondition" - $ref: "#/components/schemas/AlertRoutingProviderCondition" - $ref: "#/components/schemas/AlertRoutingCountCondition" - $ref: "#/components/schemas/AlertRoutingTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: anyOf: - $ref: "#/components/schemas/AlertRoutingSeverityCondition" - $ref: "#/components/schemas/AlertRoutingFieldCondition" - $ref: "#/components/schemas/AlertRoutingProviderCondition" - $ref: "#/components/schemas/AlertRoutingCountCondition" - $ref: "#/components/schemas/AlertRoutingTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: anyOf: - $ref: "#/components/schemas/AlertRoutingSeverityCondition" - $ref: "#/components/schemas/AlertRoutingFieldCondition" - $ref: "#/components/schemas/AlertRoutingProviderCondition" - $ref: "#/components/schemas/AlertRoutingCountCondition" - $ref: "#/components/schemas/AlertRoutingTimeCondition" - type: object properties: type: type: string enum: - group operator: type: string enum: - AND - OR description: How the conditions inside this group combine. conditions: type: array items: $ref: "#/components/schemas/AlertRoutingLeafCondition" minItems: 1 required: - type - operator - conditions minItems: 1 required: - type - operator - conditions minItems: 1 required: - type - operator - conditions minItems: 1 required: - type - operator - conditions description: A leaf condition or a parenthesised group of conditions. Groups may nest up to 5 levels deep. AlertRoutingSeverityCondition: type: object properties: type: type: string enum: - severity rule: type: object properties: operator: type: string enum: - equal_to - less_than - greater_than - less_than_or_equal - greater_than_or_equal severity: type: string required: - operator - severity required: - type - rule description: rule.severity accepts the canonical SEV0-SEV5 or SIGNAL, or an alias such as P1 or critical; an alias reads back as its canonical value. AlertRoutingFieldCondition: type: object properties: type: type: string enum: - field rule: type: object properties: fieldPath: type: string minLength: 1 description: Dot-path into the payload this rule is evaluated against. Alert routing, enrichment and maintenance-window rules evaluate the incoming payload, where the source's own fields are under `details`; automation rules evaluate the stored alert, where the same fields are under `metadata`. A path that matches nothing makes the rule silently never fire. operator: type: string enum: - contains - exact_match - not_contains - matches_regex conditionValue: type: string isCaseSensitive: type: - boolean - "null" required: - fieldPath - operator - conditionValue required: - type - rule AlertRoutingProviderCondition: type: object properties: type: type: string enum: - provider rule: type: object properties: operator: type: string enum: - one_of providers: type: array items: type: string enum: - jira - opsgenie - grafana - datadog - coralogix - newrelic - prometheus - cloudwatch - sns - heartbeat - email - sentry - embraceio - http - azuremonitor - cloudamqp - pagerduty minItems: 1 required: - operator - providers required: - type - rule AlertRoutingCountCondition: type: object properties: type: type: string enum: - count rule: type: object properties: countThreshold: type: integer exclusiveMinimum: 0 minimum: 2 timeframe: type: integer exclusiveMinimum: 0 minimum: 60000 description: Milliseconds required: - countThreshold - timeframe required: - type - rule description: Matches once countThreshold alerts arrived within timeframe milliseconds. AlertRoutingTimeCondition: type: object properties: type: type: string enum: - time rule: type: object properties: timezone: type: string minLength: 1 operator: type: string enum: - day_in_between - week_in_between timeInterval: anyOf: - type: object properties: startHourOffset: type: string pattern: ^\d{2}:\d{2}$ endHourOffset: type: string pattern: ^\d{2}:\d{2}$ required: - startHourOffset - endHourOffset - type: object properties: weekRanges: type: array items: type: object properties: startDay: type: integer minimum: 0 maximum: 6 endDay: type: integer minimum: 0 maximum: 6 startHourOffset: type: string pattern: ^\d{2}:\d{2}$ endHourOffset: type: string pattern: ^\d{2}:\d{2}$ required: - startDay - endDay - startHourOffset - endHourOffset minItems: 1 required: - weekRanges required: - timezone - operator - timeInterval required: - type - rule AlertRoutingLeafCondition: anyOf: - $ref: "#/components/schemas/AlertRoutingSeverityCondition" - $ref: "#/components/schemas/AlertRoutingFieldCondition" - $ref: "#/components/schemas/AlertRoutingProviderCondition" - $ref: "#/components/schemas/AlertRoutingCountCondition" - $ref: "#/components/schemas/AlertRoutingTimeCondition" description: One condition on the incoming alert payload. field matches a dot-path in the payload (source fields live under `details`). AlertRoutingEscalateAction: type: object properties: type: type: string enum: - ESCALATE value: type: object properties: escalation: type: array items: type: object properties: type: type: string enum: - escalationPolicy - schedule - user value: type: integer exclusiveMinimum: 0 description: ID of the escalation policy, schedule or member. required: - type - value additionalProperties: false minItems: 1 notificationUrgency: type: string enum: - HIGH - MEDIUM - LOW delayMs: type: integer minimum: 60000 maximum: 86400000 required: - escalation additionalProperties: false required: - type - value additionalProperties: false description: Page the targets. delayMs waits before paging; notificationUrgency overrides the paging urgency. AlertRoutingDoNothingAction: type: object properties: type: type: string enum: - DO_NOTHING required: - type additionalProperties: false description: "Silence: create the alert without paging anyone." CreateAlertRoutingRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 description: type: - string - "null" maxLength: 5000 teamId: type: - integer - "null" exclusiveMinimum: 0 description: Omit or send null for an organization-level routing. Cannot be changed later. isEnabled: type: boolean description: A routing that is off evaluates none of its rules. Defaults to true. rules: type: array items: $ref: "#/components/schemas/AlertRoutingRuleInput" description: Rules in evaluation order; the first rule that matches decides. The list replaces every rule of the routing and reads back in the order sent. At most one fallback rule, and only last. required: - name additionalProperties: false AlertRoutingRuleInput: type: object properties: name: type: - string - "null" minLength: 1 maxLength: 255 logicalOperator: type: string enum: - AND - OR description: How the top-level conditions combine. conditions: type: array items: $ref: "#/components/schemas/AlertRoutingCondition" description: An empty list with logicalOperator AND is the fallback rule, which matches every alert. action: anyOf: - $ref: "#/components/schemas/AlertRoutingEscalateAction" - $ref: "#/components/schemas/AlertRoutingDoNothingAction" required: - logicalOperator - conditions - action additionalProperties: false UpdateAlertRoutingRequest: type: object properties: name: type: string minLength: 1 maxLength: 255 description: type: - string - "null" maxLength: 5000 isEnabled: type: boolean rules: type: array items: $ref: "#/components/schemas/AlertRoutingRuleInput" description: Rules in evaluation order; the first rule that matches decides. The list replaces every rule of the routing and reads back in the order sent. At most one fallback rule, and only last. additionalProperties: false minProperties: 1 parameters: {} paths: /teams: get: tags: - Teams summary: List teams for the organization description: Returns a paginated list of teams for the organization associated with the API key. operationId: listTeams security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query responses: "200": description: List of teams for the organization. content: application/json: schema: $ref: "#/components/schemas/TeamsListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Teams summary: Create a team description: Creates a team for the organization associated with the API key. operationId: createTeam security: - ApiKeyAuth: [] requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateTeamRequest" responses: "201": description: Created team. content: application/json: schema: $ref: "#/components/schemas/TeamResponse" "400": description: Invalid team payload. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "409": description: Conflict with an existing team or membership resource. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /teams/{teamShortId}: get: tags: - Teams summary: Get a team description: Returns one team from the organization associated with the API key. operationId: getTeam security: - ApiKeyAuth: [] parameters: - schema: type: string minLength: 1 description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. required: true description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. name: teamShortId in: path responses: "200": description: Team details. content: application/json: schema: $ref: "#/components/schemas/TeamResponse" "400": description: Invalid team short ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Team not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Teams summary: Update a team description: Updates team information for the organization associated with the API key. operationId: updateTeam security: - ApiKeyAuth: [] parameters: - schema: type: string minLength: 1 description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. required: true description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. name: teamShortId in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateTeamRequest" responses: "200": description: Updated team. content: application/json: schema: $ref: "#/components/schemas/TeamResponse" "400": description: Invalid team payload. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Team not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Conflict with an existing team or membership resource. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Teams summary: Delete a team description: Soft-deletes a team from the organization associated with the API key. Only a team that owns nothing can be deleted here. A team that still owns escalation policies, schedules, alert routes, alert sources, heartbeats, services, maintenance windows, automation actions or integrations is deleted in the app, which moves or deletes each of them with it. operationId: deleteTeam security: - ApiKeyAuth: [] parameters: - schema: type: string minLength: 1 description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. required: true description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. name: teamShortId in: path responses: "200": description: Team deleted. content: application/json: schema: $ref: "#/components/schemas/TeamMutationSuccessResponse" "400": description: Invalid team short ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Team not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The team still owns something; delete it in the app, which moves or deletes what it owns. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /teams/{teamShortId}/members: get: tags: - Teams summary: List members of a team description: Returns the list of team members for the given team. The team must belong to the organization associated with the API key. operationId: listTeamMembers security: - ApiKeyAuth: [] parameters: - schema: type: string minLength: 1 description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. required: true description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. name: teamShortId in: path - schema: type: integer minimum: 1 maximum: 100 description: Maximum number of members to return (max 100). Omitted, every member is returned. format: int32 required: false description: Maximum number of members to return (max 100). Omitted, every member is returned. name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query responses: "200": description: List of members for the specified team. content: application/json: schema: $ref: "#/components/schemas/TeamMembersResponse" "400": description: Invalid team short ID or query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Team not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Teams summary: Assign a member to a team description: Adds a user to a team or updates the existing team membership role. operationId: assignTeamMember security: - ApiKeyAuth: [] parameters: - schema: type: string minLength: 1 description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. required: true description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. name: teamShortId in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/AssignTeamMemberRequest" responses: "200": description: Team member assigned. content: application/json: schema: $ref: "#/components/schemas/TeamMemberAssignmentResponse" "400": description: Invalid team member payload. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Team or user not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /teams/{teamShortId}/members/{userId}: delete: tags: - Teams summary: Unassign a member from a team description: Removes a user from a team. A user still on one of the team's schedule rotations, upcoming overrides, escalation policy tiers or routing rules is not removed; replace or remove them there first, or remove them in the app, which lets you choose a replacement for each. operationId: unassignTeamMember security: - ApiKeyAuth: [] parameters: - schema: type: string minLength: 1 description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. required: true description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. name: teamShortId in: path - schema: type: integer exclusiveMinimum: 0 description: ID of the user to unassign from the team. format: int32 required: true description: ID of the user to unassign from the team. name: userId in: path responses: "200": description: Team member unassigned. content: application/json: schema: $ref: "#/components/schemas/TeamMutationSuccessResponse" "400": description: Invalid team member path. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Team, user, or membership not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The user is still on a schedule rotation, upcoming override, escalation policy tier or routing rule of the team; the message lists each one. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /teams/{teamShortId}/on-call: get: tags: - Teams summary: Get current on-call responders for a team description: Returns the current Tier 1 on-call responders for the given team, resolved from the team default escalation policy when available. operationId: getTeamCurrentOnCall security: - ApiKeyAuth: [] parameters: - schema: type: string minLength: 1 description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. required: true description: Short identifier of the team (e.g. VP-TEAM-ABC123), or its numeric ID. name: teamShortId in: path responses: "200": description: Current on-call responders for the specified team. content: application/json: schema: $ref: "#/components/schemas/TeamOnCallResponse" "400": description: Invalid team short ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Team not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules: get: tags: - Schedules summary: List schedules description: Lists schedules in the API key organization, newest first. teamId narrows the list to one team. operationId: listSchedules security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: integer exclusiveMinimum: 0 description: Return only schedules this team owns, including those it shares with other teams. Omit for every schedule, global ones included. format: int32 required: false description: Return only schedules this team owns, including those it shares with other teams. Omit for every schedule, global ones included. name: teamId in: query responses: "200": description: Paginated schedules and rotations. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Schedules summary: Create a schedule description: Creates a schedule owned by the teamIds in the API key organization, or a global schedule when no team is given. At least one rotation is required. operationId: createSchedule security: - ApiKeyAuth: [] requestBody: content: application/json: schema: $ref: "#/components/schemas/CreatePublicScheduleRequest" responses: "201": description: Created schedule and rotations. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Schedule name already in use. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/{id}: patch: tags: - Schedules summary: Update schedule details description: Updates name or timezone. Omitted fields retain their current values. Change owning teams with PUT /schedules/{id}/teams and rotations with the rotation routes. operationId: updateSchedule security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdatePublicScheduleRequest" responses: "200": description: Updated schedule and rotations. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Schedule name already in use, or the schedule has no active rotations. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Schedules summary: Delete a schedule description: Soft-deletes a schedule in the API key organization. A schedule that an escalation policy tier or routing rule still pages cannot be deleted; change those first. operationId: deleteSchedule security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path responses: "204": description: Schedule deleted. "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: An escalation policy tier or routing rule still pages the schedule. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" get: tags: - Schedules summary: Get a schedule description: Returns a schedule in the API key organization with its rotations. Older schedules without active rotations return an empty rotations array. operationId: getSchedule security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path responses: "200": description: Schedule and rotations. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/{id}/teams: put: tags: - Schedules summary: Replace a schedule's owning teams description: Replaces the complete set of teams that own the schedule. Requires schedule.manageTeamOwnership; it does not change the schedule configuration or rotations. Sending the current set changes nothing. operationId: replaceScheduleTeams security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/ReplacePublicScheduleTeamsRequest" responses: "200": description: Schedule with its new owning teams. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Schedule name already in use. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/{id}/rotations: post: tags: - Schedules summary: Create a schedule rotation description: Appends a rotation after the last active rotation in the schedule. operationId: createScheduleRotation security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/PublicScheduleRotationInput" responses: "201": description: Created rotation ID. content: application/json: schema: $ref: "#/components/schemas/PublicRotationIdResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Rotation position conflict, including a concurrent append. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/{id}/rotations/{rotationId}: put: tags: - Schedules summary: Replace a schedule rotation description: Send the complete rotation, including all participant IDs. The rotation retains its position. An explicit participant reorder is saved as supplied; for membership-only changes, see storeParticipantsAsSent. Clients that compare the stored rotation with what they sent, such as infrastructure-as-code tools, should set it to true. operationId: updateScheduleRotation security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: true description: Rotation ID. name: rotationId in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/PublicScheduleRotationUpdateInput" responses: "200": description: Updated rotation ID. content: application/json: schema: $ref: "#/components/schemas/PublicRotationIdResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Rotation update conflicts with the current schedule state. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Schedules summary: Delete a schedule rotation description: Soft-deletes one rotation from a schedule. The last active rotation cannot be deleted. operationId: deleteScheduleRotation security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: true description: Rotation ID. name: rotationId in: path responses: "204": description: Rotation deleted. "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Cannot delete the last active rotation of a schedule. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/{id}/on-call: get: tags: - Schedules summary: Get current on-call responders for a schedule description: Returns current responder profiles for a schedule in the API key organization. Uses the schedule timezone, rotation coverage windows, and overrides. Responders are deduplicated by user ID across rotations. Global schedules have a null team; schedules without active coverage or rotations return an empty onCallResponders array. operationId: getScheduleCurrentOnCall security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path responses: "200": description: Schedule and current responder profiles. content: application/json: schema: $ref: "#/components/schemas/ScheduleCurrentOnCallResponse" "400": description: Invalid schedule ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Schedule not found in the API key organization, or deleted. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/{id}/rotations/{rotationId}/overrides: get: tags: - Schedules summary: List rotation overrides description: "Lists past and future non-deleted overrides for one rotation, ordered by schedule-clock startAt then id. from and to filter overlapping windows after conversion to the schedule timezone: endAt >= from and startAt <= to. Returned timestamps are UTC instants." operationId: listScheduleRotationOverrides security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: true description: Rotation ID. name: rotationId in: path - schema: type: integer minimum: 1 maximum: 100 default: 20 required: false name: limit in: query - schema: type: integer minimum: 0 default: 0 required: false name: offset in: query - schema: type: string format: date-time description: ISO 8601 timestamp with an explicit offset. Include overrides ending at or after this instant, converted to the schedule clock before comparison. required: false description: ISO 8601 timestamp with an explicit offset. Include overrides ending at or after this instant, converted to the schedule clock before comparison. name: from in: query - schema: type: string format: date-time description: ISO 8601 timestamp with an explicit offset. Include overrides starting at or before this instant, converted to the schedule clock before comparison. required: false description: ISO 8601 timestamp with an explicit offset. Include overrides starting at or before this instant, converted to the schedule clock before comparison. name: to in: query responses: "200": description: Page of rotation overrides. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleOverrideListResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Schedules summary: Create a rotation override description: Assigns an organization user to the rotation for the requested window. startAt and endAt require ISO 8601 timestamps with explicit offsets. Each instant is converted to the schedule timezone before its clock boundary is saved. operationId: createScheduleRotationOverride security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: true description: Rotation ID. name: rotationId in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/PublicScheduleOverrideRequest" responses: "201": description: Created override. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleOverrideResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/{id}/rotations/{rotationId}/overrides/{overrideId}: put: tags: - Schedules summary: Replace a rotation override description: Replaces the assigned user and window. Send all three editable fields. Timestamps require explicit ISO 8601 offsets and are converted to schedule-local clock boundaries before saving. operationId: updateScheduleRotationOverride security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: true description: Rotation ID. name: rotationId in: path - schema: type: integer exclusiveMinimum: 0 description: Override ID. format: int32 required: true description: Override ID. name: overrideId in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/PublicScheduleOverrideRequest" responses: "200": description: Updated override. content: application/json: schema: $ref: "#/components/schemas/PublicScheduleOverrideResponse" "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Schedules summary: Delete a rotation override description: Soft-deletes an override in the API key organization. operationId: deleteScheduleRotationOverride security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Schedule ID. format: int32 required: true description: Schedule ID. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: Rotation ID. format: int32 required: true description: Rotation ID. name: rotationId in: path - schema: type: integer exclusiveMinimum: 0 description: Override ID. format: int32 required: true description: Override ID. name: overrideId in: path responses: "204": description: Override deleted. "400": description: Invalid schedule, rotation, or override input. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Schedule, rotation, team, or participant not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/on-call: get: tags: - Schedules summary: List schedules and current on-call responders description: Returns a paginated list of schedules for the organization associated with the API key, including the current on-call responder emails for each schedule. operationId: listSchedulesCurrentOnCall security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query responses: "200": description: List of schedules with current on-call responder emails. content: application/json: schema: $ref: "#/components/schemas/SchedulesOnCallResponse" "400": description: Invalid query parameters or missing organization context. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/on-call-hours: get: tags: - Schedules summary: Report on-call hours by member description: Returns aggregated on-call hours by member for the organization associated with the API key. The response mirrors the internal on-call hours reporting contract. Recorded shifts are updated every 10 minutes and end at now at the latest. For shifts still to come, use GET /schedules/timeline. operationId: getOnCallHoursReport security: - ApiKeyAuth: [] parameters: - schema: type: string pattern: ^\d{4}-\d{2}-\d{2}$ description: Inclusive start date for the reporting range in YYYY-MM-DD format. example: 2026-04-01 required: true description: Inclusive start date for the reporting range in YYYY-MM-DD format. name: startDate in: query - schema: type: string pattern: ^\d{4}-\d{2}-\d{2}$ description: Inclusive end date for the reporting range in YYYY-MM-DD format. example: 2026-04-07 required: true description: Inclusive end date for the reporting range in YYYY-MM-DD format. name: endDate in: query - schema: type: array items: type: string description: Optional team short IDs to filter by. Ignored when scheduleIds is set. example: - VP-TEAM-ABC123 - VP-TEAM-XYZ789 required: false description: Optional team short IDs to filter by. Ignored when scheduleIds is set. name: teamShortIds in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Optional schedule IDs to filter by. When set, takes precedence over teamShortIds. example: - 31 - 32 required: false description: Optional schedule IDs to filter by. When set, takes precedence over teamShortIds. name: scheduleIds in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Optional member user IDs to filter by. example: - 101 - 202 required: false description: Optional member user IDs to filter by. name: memberIds in: query - schema: type: number exclusiveMinimum: 0 maximum: 24 description: "Optional hours-per-day divisor. When set, the response includes derived day totals: 24 for calendar-day, 8 for business-day, etc. Must be positive and ≤ 24." example: 24 required: false description: "Optional hours-per-day divisor. When set, the response includes derived day totals: 24 for calendar-day, 8 for business-day, etc. Must be positive and ≤ 24." name: hoursPerDay in: query - schema: type: boolean description: When true, each shift is cut at midnight in its schedule timezone, and every piece carries localDate and weekday. Hours are unchanged. Default false. example: true required: false description: When true, each shift is cut at midnight in its schedule timezone, and every piece carries localDate and weekday. Hours are unchanged. Default false. name: splitAtLocalMidnight in: query responses: "200": description: On-call hours report for the requested date range and filters. content: application/json: schema: $ref: "#/components/schemas/OnCallHoursReportResponse" "400": description: Invalid query parameters or invalid date range. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: At least one requested team short ID was not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /schedules/timeline: get: tags: - Schedules summary: List the schedule timeline description: Returns who is on call across a time range, per schedule rotation. Before now it is the recorded shifts, the same ones GET /schedules/on-call-hours reads, updated every 10 minutes; after now it is projected from the rotations and overrides, so a schedule can be checked before it goes live. A shift running at now is one shift across it. Pieces shorter than a minute are left out. Unfiltered, it covers every schedule in the organization. For hours totals per member, use GET /schedules/on-call-hours. operationId: listScheduleTimeline security: - ApiKeyAuth: [] parameters: - schema: type: string format: date-time description: ISO 8601 start of the range. example: 2026-12-01T00:00:00Z required: true description: ISO 8601 start of the range. name: startAt in: query - schema: type: string format: date-time description: ISO 8601 end of the range. At most 365 days from now, and at most 90 days after startAt. example: 2027-01-01T00:00:00Z required: true description: ISO 8601 end of the range. At most 365 days from now, and at most 90 days after startAt. name: endAt in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Only shifts on these schedules. example: - 31 - 32 required: false description: Only shifts on these schedules. name: scheduleIds in: query - schema: type: array items: type: string minLength: 1 description: Only shifts on schedules owned by these teams. Ignored when scheduleIds is set. example: - VP-TEAM-ABC123 required: false description: Only shifts on schedules owned by these teams. Ignored when scheduleIds is set. name: teamShortIds in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Only shifts held by these users. example: - 101 required: false description: Only shifts held by these users. name: memberIds in: query - schema: type: boolean description: When true, each shift is cut at midnight in its schedule timezone, and every piece carries localDate and weekday. Hours are unchanged. Default false. example: true required: false description: When true, each shift is cut at midnight in its schedule timezone, and every piece carries localDate and weekday. Hours are unchanged. Default false. name: splitAtLocalMidnight in: query responses: "200": description: Timeline shifts, ordered by schedule, rotation and start time. content: application/json: schema: $ref: "#/components/schemas/ScheduleTimelineResponse" "400": description: Invalid query parameters, or a range outside the projection horizon. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: At least one requested team short ID was not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /pages: get: tags: - Paging summary: List paging history description: Returns who was paged, when, through which channel, and the delivery outcome, newest first. operationId: listPages security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: integer exclusiveMinimum: 0 description: Only pages sent for this incident. format: int32 required: false description: Only pages sent for this incident. name: incidentId in: query - schema: type: integer exclusiveMinimum: 0 description: Only pages sent for this alert. format: int32 required: false description: Only pages sent for this alert. name: alertId in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Comma-separated user IDs. Only pages sent to these people. required: false description: Comma-separated user IDs. Only pages sent to these people. name: userIds in: query - schema: type: string format: date-time description: ISO 8601. Only pages sent at or after this time. required: false description: ISO 8601. Only pages sent at or after this time. name: startDate in: query - schema: type: string format: date-time description: ISO 8601. Only pages sent before this time (exclusive). required: false description: ISO 8601. Only pages sent before this time (exclusive). name: endDate in: query - schema: type: array items: type: string enum: - initiated - pending - success - failed - acknowledged - suppressed description: Comma-separated delivery outcomes. success means the page reached the recipient's channel; acknowledged means they responded to it. required: false description: Comma-separated delivery outcomes. success means the page reached the recipient's channel; acknowledged means they responded to it. name: statuses in: query - schema: type: array items: type: string enum: - email - phone - sms - slack - teams - mobile - escalation description: Comma-separated channels. escalation marks a tier handoff rather than a channel. required: false description: Comma-separated channels. escalation marks a tier handoff rather than a channel. name: types in: query responses: "200": description: Paging history. content: application/json: schema: $ref: "#/components/schemas/PagesListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /escalation-policies: get: tags: - Escalation Policies operationId: listEscalationPolicies summary: List escalation policies description: Lists all global and team policies in the API key organization. teamId filters to one team. security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: integer exclusiveMinimum: 0 description: Return only policies belonging to this team ID. Omit for all policies. format: int32 required: false description: Return only policies belonging to this team ID. Omit for all policies. name: teamId in: query responses: "200": description: Paginated escalation policies. content: application/json: schema: $ref: "#/components/schemas/PublicEscalationPolicyListResponse" "400": description: Invalid request. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Escalation Policies operationId: createEscalationPolicy summary: Create an escalation policy description: Omit teamId or send null for a global policy. Only team policies can be default. security: - ApiKeyAuth: [] requestBody: content: application/json: schema: $ref: "#/components/schemas/CreatePublicEscalationPolicyRequest" responses: "201": description: Created policy. content: application/json: schema: $ref: "#/components/schemas/PublicEscalationPolicyResponse" "400": description: Invalid request. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Escalation policy or referenced resource not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Conflicting policy name or tier position. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /escalation-policies/{id}: get: tags: - Escalation Policies operationId: getEscalationPolicy summary: Get an escalation policy security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Escalation policy ID. format: int32 required: true description: Escalation policy ID. name: id in: path responses: "200": description: Escalation policy. content: application/json: schema: $ref: "#/components/schemas/PublicEscalationPolicyResponse" "400": description: Invalid request. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Escalation policy or referenced resource not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Escalation Policies operationId: updateEscalationPolicy summary: Update an escalation policy description: Omitted fields are unchanged. A supplied tiers array replaces every tier in the given array order and must contain at least one tier. Reorder by sending the complete tier list in the desired order. isDefault false clears this policy as its team default. security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Escalation policy ID. format: int32 required: true description: Escalation policy ID. name: id in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdatePublicEscalationPolicyRequest" responses: "200": description: Updated policy. content: application/json: schema: $ref: "#/components/schemas/PublicEscalationPolicyResponse" "400": description: Invalid request. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Escalation policy or referenced resource not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: Conflicting policy name or tier position. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Escalation Policies operationId: deleteEscalationPolicy summary: Delete an escalation policy description: Soft-deletes the policy and clears its team default reference when applicable. A policy that a routing rule or automation still uses cannot be deleted; change those first. security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: Escalation policy ID. format: int32 required: true description: Escalation policy ID. name: id in: path responses: "204": description: Policy deleted. "400": description: Invalid request. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Escalation policy or referenced resource not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: A routing rule or automation still uses the policy. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /escalations: post: tags: - Escalations operationId: createEscalation security: - ApiKeyAuth: [] summary: Page an alert or incident through an escalation policy description: Pages exactly one existing alert or incident through any escalation policy in the API key’s organization, starting at its first tier. Requires alert.page for alertId or incident.page for incidentId, including when paging is skipped. Returns an empty 202 Accepted after durable workflow initiation, or skips paging when the target is not open or the alert is muted. It does not reopen the target. Notification delivery continues asynchronously using existing urgency and notification preferences. An optional Idempotency-Key replays the original response, including failures and skipped 202 responses, for 24 hours from reservation. Keys are scoped to the organization and operation across API key rotation. Interrupted executions are never resumed. Replays do not page again, even if a skipped target later reopens. To deliberately page again, use a new key or omit it; overlapping runs are allowed. After expiry a key can start new work. This does not guarantee exactly-once notification delivery. Limited to 60 requests per fixed 60-second window per API key, in addition to the global public API limit. Retries and skipped requests consume allowance. parameters: - schema: type: string minLength: 1 maxLength: 255 pattern: ^[\x21-\x7e]+$ required: false name: Idempotency-Key in: header requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateEscalationRequest" responses: "202": description: Accepted; workflow initiated or paging skipped. No response body; notification delivery is asynchronous. "400": description: Invalid input or idempotency key. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Target or escalation policy was not found in this organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The idempotency key is executing, or was used with different request data. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "429": description: API key request allowance exceeded. No idempotency reservation or paging occurs. headers: Retry-After: description: Seconds until the rate-limit window resets. schema: type: integer minimum: 1 content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Execution or workflow initiation failed, or execution was interrupted. Execution failures are replayed. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/timeline: post: tags: - Incidents summary: Add a manual incident timeline entry description: Creates a manual timeline entry with optional past event time. Requires incident.update. The API key is recorded as the submitting actor; metadata.isManual is true. Optionally supply author as an email, name, or description, using the same attribution rules as incident comments. Authorship is returned in metadata.author; the API key remains metadata.actor. Entries appear in event-time order and are preserved during AI timeline regeneration. General-content entries do not trigger dedicated responder notifications, but configured timeline-update automations and existing Vibe reactions still apply at submission time. There is no notify parameter. Adding an entry advances the incident record updatedAt to the submission time, even when the entry is backdated, so the incident is returned by updatedSince. operationId: addIncidentTimelineEntry security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: required: true content: application/json: schema: type: object properties: content: type: string minLength: 1 description: Free-text timeline entry content. example: Rolled back the payments deployment. timestamp: type: string format: date-time description: ISO 8601 event time with a timezone. Must be at or before server time; times before the incident began are allowed. Omit to use the current time. example: 2026-10-20T09:30:00+07:00 author: type: string minLength: 1 maxLength: 255 description: Author email, name, or description. Leading and trailing whitespace is trimmed; the result must be 1–255 characters or the request is rejected with 400. An email matching an active user in the API key's organization links that user; unmatched values and emails of pending or revoked users are stored as plain text. Omit to attribute the entry to the API key. The API key remains the submitting actor in all cases. example: alice@example.com required: - content additionalProperties: false responses: "201": description: Created timeline entry. The timestamp is returned in UTC. content: application/json: schema: $ref: "#/components/schemas/IncidentTimelineEntryResponse" "400": description: Invalid content, author, timestamp, future timestamp, or unsupported request fields. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/archive: post: tags: - Incidents operationId: archiveIncident summary: Archive an incident description: Requires incident.update. Archives an incident in any lifecycle status without changing its status, content, severity, or resolution timestamps. Repeated requests return the original archivedAt. Accepts no body or an empty JSON object. Archived incidents remain readable; list filtering defaults are unchanged. Does not use stored Idempotency-Key replay. Slack and Teams channels stay open and paging follows the existing lifecycle rules. security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: required: false content: application/json: schema: type: object properties: {} additionalProperties: false responses: "200": description: Incident ID and archive timestamp. Already archived incidents retain their original archivedAt. content: application/json: schema: $ref: "#/components/schemas/IncidentArchiveResponse" "400": description: Invalid incident ID or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found in the API key organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents: post: tags: - Incidents operationId: createIncident security: - ApiKeyAuth: [] summary: Create an incident description: Creates an incident and initiates paging by default. Delivery continues asynchronously and is visible in the dashboard. Service assignment does not select service responders. Requires incident.create, plus incident.page when paging with responders. An optional Idempotency-Key replays the original response, including execution failures, for 24 hours. Keys are scoped to the organization and operation, including across API key rotation. Interrupted execution is never resumed. After expiry a key can create a new incident. This protects retries, not incident correlation or exactly-once notification delivery. Optional impactStartedAt and impactEndedAt record the impact window; they are stored separately from reportedAt and resolvedAt and do not affect status. parameters: - schema: type: string minLength: 1 maxLength: 255 pattern: ^[\x21-\x7e]+$ required: false name: Idempotency-Key in: header requestBody: required: true content: application/json: schema: type: object properties: title: type: string minLength: 1 maxLength: 500 description: type: string minLength: 1 maxLength: 20000 severity: type: string minLength: 1 status: type: string enum: - open - acknowledged - resolved - blocked - observation default: open responders: type: array items: oneOf: - type: object properties: type: type: string enum: - team teamId: anyOf: - type: number - type: string pattern: ^[0-9]+$ required: - type - teamId additionalProperties: false - type: object properties: type: type: string enum: - user userId: anyOf: - type: number - type: string pattern: ^[0-9]+$ required: - type - userId additionalProperties: false default: [] labels: type: array items: type: string minLength: 1 maxLength: 30 maxItems: 5 default: [] serviceIds: type: array items: type: string pattern: ^[0-9]+$ default: [] pageResponders: type: boolean default: true customFields: type: array items: type: object properties: name: type: string value: type: - string - "null" required: - name - value additionalProperties: false description: Initial per-incident custom fields. The server assigns permanent opaque IDs; names are exact and case-sensitive. example: - name: region value: us-east-1 - name: owner value: null impactStartedAt: type: - string - "null" format: date-time description: When impact began, as an ISO 8601 timestamp with a timezone. Stored separately from reportedAt, which is still set to the creation time. Null or omitted leaves it unset. example: 2026-11-18T01:12:00+09:00 impactEndedAt: type: - string - "null" format: date-time description: When impact ended, as an ISO 8601 timestamp with a timezone. Stored separately from resolvedAt and does not resolve the incident. Must be at or after impactStartedAt when both are set. Null or omitted leaves it unset. example: 2026-11-18T02:40:00+09:00 required: - title - description - severity additionalProperties: false responses: "201": description: Incident created; paging workflows have been initiated. Returns incident detail without optional expansions. headers: Location: description: URL of the created incident. schema: type: string content: application/json: schema: $ref: "#/components/schemas/IncidentDetail" "400": description: Invalid input or idempotency key. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: A responder or service was not found in this organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The key is currently executing, or was used with different normalized input. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Execution failed or was interrupted. If persisted, id identifies the incident. Execution failures are replayed. content: application/json: schema: type: object properties: message: type: string id: type: integer exclusiveMinimum: 0 required: - message get: tags: - Incidents summary: List incidents description: Returns a paginated list of incidents for the organization associated with the API key. operationId: listIncidents security: - ApiKeyAuth: [] parameters: - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: integer minimum: 1 maximum: 100 default: 10 description: Maximum number of items to return (default 10, max 100). format: int32 required: false description: Maximum number of items to return (default 10, max 100). name: limit in: query - schema: type: string format: date-time description: ISO 8601 start of date range filter. required: false description: ISO 8601 start of date range filter. name: since in: query - schema: type: string format: date-time description: ISO 8601 end of date range filter. required: false description: ISO 8601 end of date range filter. name: until in: query - schema: type: string format: date-time description: ISO 8601 timestamp — only return incidents whose record was updated at or after this time. Covers incident field edits (title, description, severity, status, reportedAt, resolvedAt, impactStartedAt, impactEndedAt, custom fields), service assignment, archiving, responder and label assignment changes, and manual timeline entries from the portal or API. Backdated manual entries use their submission time. Responder and label requests that leave assignments unchanged do not advance it. AI-generated and automatic timeline entries alone do not advance it. Uses the incident record update time, independently of creation time and last activity. required: false description: ISO 8601 timestamp — only return incidents whose record was updated at or after this time. Covers incident field edits (title, description, severity, status, reportedAt, resolvedAt, impactStartedAt, impactEndedAt, custom fields), service assignment, archiving, responder and label assignment changes, and manual timeline entries from the portal or API. Backdated manual entries use their submission time. Responder and label requests that leave assignments unchanged do not advance it. AI-generated and automatic timeline entries alone do not advance it. Uses the incident record update time, independently of creation time and last activity. name: updatedSince in: query - schema: type: string enum: - createdAt - updatedAt description: Sort incidents by creation time or record update time. Defaults to createdAt (newest first). Explicit sorting takes precedence over search relevance. Equal timestamps are ordered by incident ID ascending. required: false description: Sort incidents by creation time or record update time. Defaults to createdAt (newest first). Explicit sorting takes precedence over search relevance. Equal timestamps are ordered by incident ID ascending. name: sortBy in: query - schema: type: string enum: - ASC - DESC - asc - desc description: Sort direction, accepting uppercase or lowercase values. Defaults to DESC. When sortBy is omitted, an explicit sortOrder applies to createdAt. required: false description: Sort direction, accepting uppercase or lowercase values. Defaults to DESC. When sortBy is omitted, an explicit sortOrder applies to createdAt. name: sortOrder in: query - schema: type: array items: type: string description: Comma-separated severity values to filter by. required: false description: Comma-separated severity values to filter by. name: severities in: query - schema: type: array items: type: string enum: - open - acknowledged - resolved - blocked - observation description: Comma-separated normalized status values to filter by (open, acknowledged, resolved, blocked, observation). required: false description: Comma-separated normalized status values to filter by (open, acknowledged, resolved, blocked, observation). name: statuses in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Comma-separated team IDs to filter by assigned responder teams. required: false description: Comma-separated team IDs to filter by assigned responder teams. name: responderTeamIds in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Comma-separated user IDs to filter by assigned responder users. required: false description: Comma-separated user IDs to filter by assigned responder users. name: responderUserIds in: query - schema: type: array items: type: string description: Comma-separated Slack/Teams channel IDs to filter by. required: false description: Comma-separated Slack/Teams channel IDs to filter by. name: channels in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Comma-separated label IDs to filter by. required: false description: Comma-separated label IDs to filter by. name: labelIds in: query - schema: type: array items: type: string description: Comma-separated service IDs to filter by assigned services. Matches incidents assigned any of the given services. required: false description: Comma-separated service IDs to filter by assigned services. Matches incidents assigned any of the given services. name: serviceIds in: query - schema: type: string format: date-time description: ISO 8601 timestamp — only return incidents whose last activity is before this time. required: false description: ISO 8601 timestamp — only return incidents whose last activity is before this time. name: lastActivityBefore in: query - schema: type: string description: Free-text search term, matched by meaning against the incident analysis rather than literally against the title. Returns the closest matches rather than every match, and reaches only incidents whose analysis has been indexed. required: false description: Free-text search term, matched by meaning against the incident analysis rather than literally against the title. Returns the closest matches rather than every match, and reaches only incidents whose analysis has been indexed. name: searchTerm in: query - schema: type: - boolean - "null" default: true description: Whether to include archived incidents (default true). required: false description: Whether to include archived incidents (default true). name: includeArchived in: query responses: "200": description: List of incidents. content: application/json: schema: $ref: "#/components/schemas/IncidentsListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}: get: tags: - Incidents summary: Get incident detail description: Returns full detail for a single incident. Use the `include` query parameter to expand optional fields (postmortems, conversations, meetingTranscripts, timeline). operationId: getIncident security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path - schema: type: string description: "Comma-separated list of optional expansions: postmortems, conversations, meetingTranscripts, timeline." required: false description: "Comma-separated list of optional expansions: postmortems, conversations, meetingTranscripts, timeline." name: include in: query responses: "200": description: Incident detail. content: application/json: schema: $ref: "#/components/schemas/IncidentDetail" "400": description: Invalid parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Incidents summary: Update incident fields description: "Updates scalar incident fields for the organization associated with the API key. Supports title, description, severity, normalized status, reportedAt, resolvedAt, impactStartedAt, and impactEndedAt. reportedAt and resolvedAt cannot be cleared; resolvedAt requires resolved status (existing or in this request). Timestamp edits must leave resolvedAt at or after reportedAt. Accepted timestamps are returned in UTC. impactStartedAt and impactEndedAt are stored separately: setting them never changes reportedAt, resolvedAt or status, impactEndedAt can be set while the incident is open, and null clears either one. Edits must leave impactEndedAt at or after impactStartedAt. Returns the complete incident detail without optional expansions. For compatibility, status is canonical (open, acknowledged, resolved, blocked, observation), matching normalizedStatus, even when status is not edited. GET and create responses retain legacy status alongside normalizedStatus." operationId: updateIncident security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: title: type: string minLength: 1 description: New incident title. example: Checkout API latency elevated description: type: - string - "null" description: New incident description. Send null to clear it. example: Checkout API p95 latency is above the SLO threshold. severity: type: string minLength: 1 description: New severity (SEV0-SEV5 or SIGNAL). P0-P5 and legacy semantic aliases are also accepted. example: SEV1 status: type: string enum: - open - acknowledged - resolved - blocked - observation description: New normalized status (open, acknowledged, resolved, blocked, observation). example: acknowledged reportedAt: type: string format: date-time description: Incident reported/start time as an ISO 8601 timestamp with a timezone. Cannot be cleared. resolvedAt: type: string format: date-time description: "Incident resolution time as an ISO 8601 timestamp with a timezone. Requires resolved status, or status: resolved in the same request. Must be at or after reportedAt. Cannot be cleared." impactStartedAt: type: - string - "null" format: date-time description: "When impact began, as an ISO 8601 timestamp with a timezone. Stored separately from reportedAt: setting it does not change reportedAt, resolvedAt or status. Send null to clear it." example: 2026-11-18T01:12:00+09:00 impactEndedAt: type: - string - "null" format: date-time description: "When impact ended, as an ISO 8601 timestamp with a timezone. Stored separately from resolvedAt and can be set while the incident is still open: setting it does not change resolvedAt, reportedAt or status. Must be at or after impactStartedAt when both are set. Send null to clear it." example: 2026-11-18T02:40:00+09:00 additionalProperties: false responses: "200": description: Updated incident detail. Both status and normalizedStatus contain the canonical normalized status. content: application/json: schema: $ref: "#/components/schemas/IncidentDetail" "400": description: Invalid parameters or request body. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/batch: post: tags: - Incidents summary: Batch get incidents description: Fetch multiple incidents by ID in a single request (max 100). operationId: batchGetIncidents security: - ApiKeyAuth: [] requestBody: content: application/json: schema: type: object properties: ids: type: array items: type: integer exclusiveMinimum: 0 minItems: 1 maxItems: 100 description: Array of incident IDs to fetch (max 100). required: - ids responses: "200": description: List of incident details. content: application/json: schema: $ref: "#/components/schemas/IncidentsBatchResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/services: put: tags: - Incidents summary: Replace incident services description: Replaces the complete service set assigned to the incident. This does not auto-add service responders. operationId: replaceIncidentServices security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: serviceIds: type: array items: type: string minLength: 1 description: Complete replacement set of internal service catalog IDs assigned to the incident. Send numeric service catalog IDs as strings, for example "123". example: - "123" - "456" required: - serviceIds additionalProperties: false responses: "200": description: Updated incident service IDs. content: application/json: schema: $ref: "#/components/schemas/IncidentServicesResponse" "400": description: Invalid parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/responders/add: post: tags: - Incidents summary: Add incident responders description: Adds direct user or team responders to the incident. operationId: addIncidentResponders security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: responders: type: array items: oneOf: - type: object properties: type: type: string enum: - team teamId: type: integer exclusiveMinimum: 0 overrideEscalationPolicyId: type: integer exclusiveMinimum: 0 required: - type - teamId - type: object properties: type: type: string enum: - user userId: type: integer exclusiveMinimum: 0 required: - type - userId minItems: 1 description: Responders to add to or remove from the incident. example: &a3 - type: user userId: 123 - type: team teamId: 456 required: - responders additionalProperties: false responses: "200": description: Responders added. content: application/json: schema: $ref: "#/components/schemas/IncidentRespondersUpdateResponse" "400": description: Invalid parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/responders/remove: post: tags: - Incidents summary: Remove incident responders description: Removes direct user or team responders from the incident. operationId: removeIncidentResponders security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: responders: type: array items: oneOf: - type: object properties: type: type: string enum: - team teamId: type: integer exclusiveMinimum: 0 overrideEscalationPolicyId: type: integer exclusiveMinimum: 0 required: - type - teamId - type: object properties: type: type: string enum: - user userId: type: integer exclusiveMinimum: 0 required: - type - userId minItems: 1 description: Responders to add to or remove from the incident. example: *a3 required: - responders additionalProperties: false responses: "200": description: Responders removed. content: application/json: schema: $ref: "#/components/schemas/IncidentRespondersUpdateResponse" "400": description: Invalid parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/labels/add: post: tags: - Incidents summary: Add labels to an incident description: Adds labels to the incident by name, auto-creating missing labels in the organization catalog. Auto-created labels use the default label color. operationId: addIncidentLabels security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: labels: type: array items: type: string minLength: 1 maxLength: 30 minItems: 1 maxItems: 5 description: Label names to add or remove (1-5 items, 30 characters max per label). example: &a4 - customer-impacting - checkout required: - labels additionalProperties: false responses: "200": description: Updated incident labels. content: application/json: schema: $ref: "#/components/schemas/IncidentLabelsResponse" "400": description: Invalid request body or label validation failure. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/labels/remove: post: tags: - Incidents summary: Remove labels from an incident description: Removes labels from the incident by name. operationId: removeIncidentLabels security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: labels: type: array items: type: string minLength: 1 maxLength: 30 minItems: 1 maxItems: 5 description: Label names to add or remove (1-5 items, 30 characters max per label). example: *a4 required: - labels additionalProperties: false responses: "200": description: Updated incident labels. content: application/json: schema: $ref: "#/components/schemas/IncidentLabelsResponse" "400": description: Invalid request body or label validation failure. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/comments: post: tags: - Incidents summary: Add a comment to an incident description: Creates a visible incident comment and records a timeline event. Optionally supply author as an email, name, or description. An email matching an active user in the API key's organization links that user; unmatched values and emails of non-active users are stored as plain text. The API key remains the submitting actor. The author is set at creation and cannot be reassigned through PATCH. Optionally supply timestamp to set the comment's createdAt for historical imports. It must be at or before server time and may precede the incident. Omission uses the current time. The comment-added timeline event and notifications still occur at submission time. operationId: addIncidentComment security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: comment: type: string minLength: 1 description: Incident comment content. example: Escalated to database team and collecting lock diagnostics. timestamp: type: string format: date-time description: Comment creation time as an ISO 8601 timestamp with a timezone, stored as createdAt. Must be at or before server time; times before the incident began are allowed. Omit to use the current time. The comment-added timeline event uses submission time. example: 2026-10-20T09:30:00+07:00 author: type: string minLength: 1 maxLength: 255 description: Author email, name, or description. Leading and trailing whitespace is trimmed; the result must be 1–255 characters or the request is rejected with 400. An email matching an active user in the API key's organization links that user; unmatched values and emails of pending or revoked users are stored as plain text. Omit to attribute the comment to the API key. The API key remains the submitting actor in all cases. example: alice@example.com required: - comment examples: linkedUser: summary: Link an active organization user by email value: comment: Investigation started. author: alice@example.com textAuthor: summary: Store an author name or description as text value: comment: Investigation started. author: Alice — NC Operations historicalComment: summary: Import a comment with its original creation time value: comment: Investigation started. author: Alice timestamp: 2026-10-20T09:30:00+07:00 responses: "200": description: Updated incident comments. content: application/json: schema: $ref: "#/components/schemas/IncidentCommentsResponse" "400": description: Invalid request body, including a blank or non-string author, an invalid timestamp, or a future timestamp. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/comments/{commentId}: patch: tags: - Incidents summary: Update an incident comment description: Edits an existing visible incident comment and returns the updated visible comments list. The author is set at creation; including author in a PATCH request returns HTTP 400. operationId: updateIncidentComment security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: ID of the incident comment. format: int32 required: true description: ID of the incident comment. name: commentId in: path requestBody: content: application/json: schema: type: object properties: comment: type: string minLength: 1 description: Incident comment content. example: Escalated to database team and collecting lock diagnostics. required: - comment responses: "200": description: Updated incident comments. content: application/json: schema: $ref: "#/components/schemas/IncidentCommentsResponse" "400": description: Invalid request body, including attempts to supply author. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident or comment not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Incidents summary: Delete an incident comment description: Soft deletes an incident comment and returns the updated visible comments list. operationId: deleteIncidentComment security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: ID of the incident comment. format: int32 required: true description: ID of the incident comment. name: commentId in: path responses: "200": description: Updated incident comments. content: application/json: schema: $ref: "#/components/schemas/IncidentCommentsResponse" "400": description: Invalid parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident or comment not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/custom-fields/add: post: tags: - Incidents summary: Add or replace incident custom fields description: Upserts custom fields by exact current name, preserving matching IDs and omitted entries. Accepts ID-free customFields arrays. Caller IDs and renames are not accepted. operationId: addIncidentCustomFields security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: customFields: type: array items: type: object properties: name: type: string value: type: - string - "null" required: - name - value additionalProperties: false description: Exact-name upserts. Matching names retain their IDs; omitted fields remain. Caller IDs and renames are not accepted. example: - name: region value: us-east-1 required: - customFields additionalProperties: false responses: "200": description: Updated incident custom fields. content: application/json: schema: $ref: "#/components/schemas/IncidentCustomFieldsResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /incidents/{id}/custom-fields/remove: post: tags: - Incidents summary: Remove incident custom fields description: Removes custom fields by customFieldIds. Missing IDs or names are ignored. operationId: removeIncidentCustomFields security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the incident. format: int32 required: true description: ID of the incident. name: id in: path requestBody: content: application/json: schema: type: object properties: customFieldIds: type: array items: type: string minLength: 1 minItems: 1 description: Per-incident field IDs to remove. Missing IDs are ignored. example: - cf_8b2c69f0-7466-49b8-8fe8-39d477f502cd required: - customFieldIds additionalProperties: false responses: "200": description: Updated incident custom fields. content: application/json: schema: $ref: "#/components/schemas/IncidentCustomFieldsResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Incident not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts: get: tags: - Alerts summary: List alerts description: Returns a paginated list of alerts for the organization associated with the API key. Supports filtering by label IDs returned from the labels endpoint. For the full status history of an alert (for example one that was reopened), fetch its timeline with `GET /alerts/{id}` or `POST /alerts/batch`. operationId: listAlerts security: - ApiKeyAuth: [] parameters: - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: integer minimum: 1 maximum: 100 default: 10 description: Maximum number of items to return (default 10, max 100). format: int32 required: false description: Maximum number of items to return (default 10, max 100). name: limit in: query - schema: type: string format: date-time description: ISO 8601 start of date range filter (by creation time). required: false description: ISO 8601 start of date range filter (by creation time). name: createdAfter in: query - schema: type: string format: date-time description: ISO 8601 end of date range filter (by creation time). required: false description: ISO 8601 end of date range filter (by creation time). name: createdBefore in: query - schema: type: array items: type: string description: Comma-separated severity values (SEV0-SEV5 or SIGNAL). Legacy semantic values and P0-P5 aliases are also accepted. required: false description: Comma-separated severity values (SEV0-SEV5 or SIGNAL). Legacy semantic values and P0-P5 aliases are also accepted. name: severities in: query - schema: type: array items: type: string enum: - open - acknowledged - closed - resolved description: Comma-separated status values to filter by (open, acknowledged, closed, resolved). required: false description: Comma-separated status values to filter by (open, acknowledged, closed, resolved). name: statuses in: query - schema: type: array items: type: string description: Comma-separated source integration / provider names to filter by. required: false description: Comma-separated source integration / provider names to filter by. name: providers in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Comma-separated team IDs to filter by owning team or paged responder team. required: false description: Comma-separated team IDs to filter by owning team or paged responder team. name: teamIds in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Comma-separated label IDs to filter by assigned alert labels. required: false description: Comma-separated label IDs to filter by assigned alert labels. name: labelIds in: query - schema: type: string description: Free-text search term to match against alert title or description. required: false description: Free-text search term to match against alert title or description. name: searchTerm in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Comma-separated user IDs. Returns alerts whose most recent acknowledgement was by one of these users. required: false description: Comma-separated user IDs. Returns alerts whose most recent acknowledgement was by one of these users. name: acknowledgedByUserIds in: query responses: "200": description: List of alerts. content: application/json: schema: $ref: "#/components/schemas/AlertsListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}: get: tags: - Alerts summary: Get alert detail description: Returns full detail for a single alert, including timeline and linked incidents. operationId: getAlert security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path responses: "200": description: Alert detail. content: application/json: schema: $ref: "#/components/schemas/AlertDetail" "400": description: Invalid parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Alerts summary: Update alert severity or status description: "Updates alert severity, status, or both. Requires alert.update permission. Status may be open, closed, or resolved; use POST /alerts/{id}/acknowledge to acknowledge. Allowed transitions: open -> resolved/closed; acknowledged -> open/resolved/closed; closed -> open; resolved -> open/closed. Reapplying the current status is allowed. Invalid transitions reject the entire update, including severity changes. If the status changes concurrently, the entire update is rejected with 400; retry the request. Status changes affect paging and trigger the existing timeline, notification, and automation workflows. Reapplying the current status creates no status events or notifications; supplied severity changes still apply." operationId: updateAlert security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path requestBody: content: application/json: schema: type: object properties: severity: type: string description: New severity (SEV0-SEV5 or SIGNAL). Legacy semantic values and P0-P5 aliases are also accepted. example: SEV0 status: type: string enum: - open - closed - resolved description: New status. Use the dedicated acknowledge endpoint to acknowledge an alert. example: resolved additionalProperties: false description: Provide at least one of severity or status. minProperties: 1 responses: "200": description: Updated alert severity and status. content: application/json: schema: $ref: "#/components/schemas/AlertUpdateResponse" "400": description: Invalid parameters, request body, status transition, or concurrent status change. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}/acknowledge: post: tags: - Alerts summary: Acknowledge an alert description: Acknowledges an alert in the organization associated with the API key. Requires alert.acknowledge permission and no request body. Open and already acknowledged alerts are accepted; closed or resolved alerts are rejected. If the status changes concurrently, acknowledgment is rejected with 400; retry the request. Acknowledgment affects paging and triggers the existing timeline, notification, and automation workflows. An already acknowledged alert is returned without creating status events or notifications. operationId: acknowledgeAlert security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path responses: "200": description: Acknowledged alert severity and status. content: application/json: schema: $ref: "#/components/schemas/AlertUpdateResponse" "400": description: Invalid parameters, status transition, or concurrent status change. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/batch: post: tags: - Alerts summary: Batch get alerts description: Fetch multiple alerts by ID in a single request (max 100). operationId: batchGetAlerts security: - ApiKeyAuth: [] requestBody: content: application/json: schema: type: object properties: ids: type: array items: type: integer exclusiveMinimum: 0 minItems: 1 maxItems: 100 description: Array of alert IDs to fetch (max 100). required: - ids responses: "200": description: List of alert details. content: application/json: schema: $ref: "#/components/schemas/AlertsBatchResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}/notes: post: tags: - Alerts summary: Add a note to an alert description: Creates a visible alert note and returns the updated visible notes list. operationId: addAlertNote security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path requestBody: content: application/json: schema: type: object properties: note: type: string minLength: 1 maxLength: 2000 description: Alert note content. example: Escalated to database team and collecting lock diagnostics. required: - note responses: "200": description: Updated alert notes. content: application/json: schema: $ref: "#/components/schemas/AlertNotesResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}/metadata/add: post: tags: - Alerts summary: Add or replace alert metadata description: Adds or replaces top-level custom metadata entries on the alert. Unsafe keys are ignored. operationId: addAlertMetadata security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path requestBody: content: application/json: schema: type: object properties: metadata: type: object additionalProperties: type: string description: Top-level alert metadata entries to add or replace. example: serverName: Zion region: Oregon required: - metadata responses: "200": description: Updated alert metadata. content: application/json: schema: $ref: "#/components/schemas/AlertMetadataResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}/metadata/remove: post: tags: - Alerts summary: Remove alert metadata description: Removes top-level custom metadata entries from the alert. Missing or unsafe keys are ignored. operationId: removeAlertMetadata security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path requestBody: content: application/json: schema: type: object properties: metadataKeys: type: array items: type: string minLength: 1 minItems: 1 description: Top-level alert metadata keys to remove. example: - serverName - region required: - metadataKeys responses: "200": description: Updated alert metadata. content: application/json: schema: $ref: "#/components/schemas/AlertMetadataResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}/notes/{noteId}: patch: tags: - Alerts summary: Update an alert note description: Edits an existing visible alert note and returns the updated visible notes list. operationId: updateAlertNote security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: ID of the alert note. format: int32 required: true description: ID of the alert note. name: noteId in: path requestBody: content: application/json: schema: type: object properties: note: type: string minLength: 1 maxLength: 2000 description: Alert note content. example: Escalated to database team and collecting lock diagnostics. required: - note responses: "200": description: Updated alert notes. content: application/json: schema: $ref: "#/components/schemas/AlertNotesResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert or note not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Alerts summary: Delete an alert note description: Soft deletes an alert note and returns the updated visible notes list. operationId: deleteAlertNote security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path - schema: type: integer exclusiveMinimum: 0 description: ID of the alert note. format: int32 required: true description: ID of the alert note. name: noteId in: path responses: "200": description: Updated alert notes. content: application/json: schema: $ref: "#/components/schemas/AlertNotesResponse" "400": description: Invalid parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert or note not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}/labels/add: post: tags: - Alerts summary: Add labels to an alert description: Adds labels to the alert by name, auto-creating missing labels in the organization catalog. Auto-created labels use the default label color. operationId: addAlertLabels security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path requestBody: content: application/json: schema: type: object properties: labels: type: array items: type: string minLength: 1 maxLength: 30 minItems: 1 maxItems: 5 description: Label names to add or remove (1-5 items, 30 characters max per label). example: &a5 - OverwriteQuietHours - Critical required: - labels responses: "200": description: Updated alert labels. content: application/json: schema: $ref: "#/components/schemas/AlertLabelsResponse" "400": description: Invalid request body or label validation failure. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alerts/{id}/labels/remove: post: tags: - Alerts summary: Remove labels from an alert description: Removes labels from the alert by name. operationId: removeAlertLabels security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the alert. format: int32 required: true description: ID of the alert. name: id in: path requestBody: content: application/json: schema: type: object properties: labels: type: array items: type: string minLength: 1 maxLength: 30 minItems: 1 maxItems: 5 description: Label names to add or remove (1-5 items, 30 characters max per label). example: *a5 required: - labels responses: "200": description: Updated alert labels. content: application/json: schema: $ref: "#/components/schemas/AlertLabelsResponse" "400": description: Invalid request body or label validation failure. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /labels: get: tags: - Labels summary: List labels description: Returns all labels for the organization associated with the API key. Use the returned IDs with the `labelIds` filter on the incidents and alerts endpoints. operationId: listLabels security: - ApiKeyAuth: [] responses: "200": description: List of labels. content: application/json: schema: $ref: "#/components/schemas/LabelsListResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /members: get: tags: - Members summary: List members of the organization description: Returns a paginated list of every member of the organization associated with the API key, including members who belong to no team. Filters combine with AND; values within one repeatable filter combine with OR. Ordered by creation time, oldest first. operationId: listMembers security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: string minLength: 1 description: Case-insensitive substring match against full name or email. required: false description: Case-insensitive substring match against full name or email. name: search in: query - schema: type: array items: type: string enum: - active - pending - revoked description: Account statuses to include (active, pending, revoked). Repeatable or comma-separated; a member matches when its status is any of the given values. required: false description: Account statuses to include (active, pending, revoked). Repeatable or comma-separated; a member matches when its status is any of the given values. name: status in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Organization role IDs to include. Repeatable or comma-separated; a member matches when its organization role is any of the given roles. required: false description: Organization role IDs to include. Repeatable or comma-separated; a member matches when its organization role is any of the given roles. name: roleIds in: query - schema: type: array items: type: integer exclusiveMinimum: 0 description: Label IDs to include. Repeatable or comma-separated; a member matches when it carries any of the given labels. Use the labels endpoint to look up IDs. required: false description: Label IDs to include. Repeatable or comma-separated; a member matches when it carries any of the given labels. Use the labels endpoint to look up IDs. name: labelIds in: query responses: "200": description: List of members for the organization. content: application/json: schema: $ref: "#/components/schemas/MembersListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /members/{userId}: get: tags: - Members summary: Get a member description: Returns one member of the organization associated with the API key. operationId: getMember security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the member. format: int32 required: true description: ID of the member. name: userId in: path responses: "200": description: The member. content: application/json: schema: $ref: "#/components/schemas/Member" "400": description: Invalid member ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Member not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /automation-actions: get: tags: - Automation Actions summary: List automation actions for the organization description: Returns a paginated list of automation actions for the organization associated with the API key. operationId: listAutomationActions security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: integer exclusiveMinimum: 0 description: Optional team ID used to return only automation actions scoped to that team. format: int32 required: false description: Optional team ID used to return only automation actions scoped to that team. name: teamId in: query responses: "200": description: List of automation actions for the organization. content: application/json: schema: $ref: "#/components/schemas/AutomationActionsListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /automation-actions/{id}/executions: get: tags: - Automation Actions summary: List execution logs for an automation action description: Returns a paginated, newest-first list of execution logs for one automation action in the organization associated with the API key. operationId: listAutomationActionExecutions security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the automation action. format: int32 required: true description: ID of the automation action. name: id in: path - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: string format: date-time description: Inclusive ISO 8601 lower bound for execution creation time. required: false description: Inclusive ISO 8601 lower bound for execution creation time. name: from in: query - schema: type: string format: date-time description: Inclusive ISO 8601 upper bound for execution creation time. required: false description: Inclusive ISO 8601 upper bound for execution creation time. name: to in: query responses: "200": description: List of execution logs for the automation action. content: application/json: schema: $ref: "#/components/schemas/AutomationActionExecutionsListResponse" "400": description: Invalid path or query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Automation action not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /automation-actions/{id}/execution-summaries: get: tags: - Automation Actions summary: List execution summaries for an automation action description: Returns a paginated, newest-first list of execution runs for one automation action without per-step execution logs. operationId: listAutomationActionExecutionSummaries security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the automation action. format: int32 required: true description: ID of the automation action. name: id in: path - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: string format: date-time description: Inclusive ISO 8601 lower bound for execution creation time. required: false description: Inclusive ISO 8601 lower bound for execution creation time. name: createdAtFrom in: query - schema: type: string format: date-time description: Inclusive ISO 8601 upper bound for execution creation time. required: false description: Inclusive ISO 8601 upper bound for execution creation time. name: createdAtTo in: query responses: "200": description: List of execution summaries for the automation action. content: application/json: schema: $ref: "#/components/schemas/AutomationActionExecutionSummariesListResponse" "400": description: Invalid path or query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Automation action not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /automation-actions/{id}/executions/{executionId}: get: tags: - Automation Actions summary: Get automation execution details description: Returns all step logs for one automation execution, including public-safe action parameters and result summaries. operationId: getAutomationActionExecution security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the automation action. format: int32 required: true description: ID of the automation action. name: id in: path - schema: type: string format: uuid description: Execution ID shared by all step logs from the same automation run. required: true description: Execution ID shared by all step logs from the same automation run. name: executionId in: path responses: "200": description: Automation execution detail. content: application/json: schema: $ref: "#/components/schemas/AutomationActionExecutionDetailResponse" "400": description: Invalid path parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Automation action or execution not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /services: get: tags: - Services summary: List service catalog services description: Returns a paginated list of active service catalog services for the API key organization. operationId: listServices security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: string description: Case-insensitive service name search. required: false description: Case-insensitive service name search. name: query in: query - schema: type: integer exclusiveMinimum: 0 description: Filter services by owning team ID. format: int32 required: false description: Filter services by owning team ID. name: teamId in: query - schema: type: string minLength: 1 maxLength: 32 description: Filter services by external source provider. required: false description: Filter services by external source provider. name: externalProvider in: query - schema: type: string minLength: 1 maxLength: 128 description: Filter services by external provider identifier. required: false description: Filter services by external provider identifier. name: externalServiceId in: query responses: "200": description: List of service catalog services. content: application/json: schema: $ref: "#/components/schemas/ServicesListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Services summary: Create a service catalog service operationId: createService security: - ApiKeyAuth: [] requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 1 maxLength: 255 description: Service display name. description: type: - string - "null" maxLength: 1000 description: Service description. teamId: type: - integer - "null" exclusiveMinimum: 0 description: Owning team ID. format: int32 externalProvider: type: - string - "null" minLength: 1 maxLength: 32 externalServiceId: type: - string - "null" minLength: 1 maxLength: 128 required: - name additionalProperties: false responses: "201": description: Created service catalog service. content: application/json: schema: $ref: "#/components/schemas/ServiceResponse" "400": description: Invalid request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "409": description: A service with the same name or external identity already exists. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /services/{id}: get: tags: - Services summary: Get a service catalog service operationId: getService security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the service catalog service. format: int32 required: true description: ID of the service catalog service. name: id in: path responses: "200": description: Service catalog service. content: application/json: schema: $ref: "#/components/schemas/ServiceResponse" "400": description: Invalid service ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Service not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Services summary: Update a service catalog service operationId: updateService security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the service catalog service. format: int32 required: true description: ID of the service catalog service. name: id in: path requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 1 maxLength: 255 description: Service display name. description: type: - string - "null" maxLength: 1000 description: Service description. teamId: type: - integer - "null" exclusiveMinimum: 0 description: Owning team ID. format: int32 externalProvider: type: - string - "null" minLength: 1 maxLength: 32 externalServiceId: type: - string - "null" minLength: 1 maxLength: 128 additionalProperties: false responses: "200": description: Updated service catalog service. content: application/json: schema: $ref: "#/components/schemas/ServiceResponse" "400": description: Invalid path parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Service not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: A service with the same name or external identity already exists. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Services summary: Delete a service catalog service description: Deletes a service catalog service. Existing alerts and incidents keep their reference to it for history, but the service no longer appears in the catalog and cannot be restored. operationId: deleteService security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the service catalog service. format: int32 required: true description: ID of the service catalog service. name: id in: path responses: "204": description: Service deleted. "400": description: Invalid service ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Service not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /services/{id}/responders/add: post: tags: - Services summary: Add service responders description: Adds teams and users to the service's responders. Adding its owning team keeps that team responding after the service moves to another team. operationId: addServiceResponders security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the service catalog service. format: int32 required: true description: ID of the service catalog service. name: id in: path requestBody: content: application/json: schema: type: object properties: responders: type: array items: type: object properties: teamId: type: integer exclusiveMinimum: 0 description: Responder team ID. Provide exactly one of teamId or userId. format: int32 userId: type: integer exclusiveMinimum: 0 description: Responder user ID. Provide exactly one of teamId or userId. format: int32 minItems: 1 description: Responder teams or users to add or remove. required: - responders additionalProperties: false responses: "200": description: The service's responders after the change. content: application/json: schema: $ref: "#/components/schemas/ServiceRespondersResponse" "400": description: Invalid path parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Service or responder target not found in the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /services/{id}/responders/remove: post: tags: - Services summary: Remove service responders description: Removes teams and users from the service's responders. Its owning team keeps responding while it owns the service. operationId: removeServiceResponders security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the service catalog service. format: int32 required: true description: ID of the service catalog service. name: id in: path requestBody: content: application/json: schema: type: object properties: responders: type: array items: type: object properties: teamId: type: integer exclusiveMinimum: 0 description: Responder team ID. Provide exactly one of teamId or userId. format: int32 userId: type: integer exclusiveMinimum: 0 description: Responder user ID. Provide exactly one of teamId or userId. format: int32 minItems: 1 description: Responder teams or users to add or remove. required: - responders additionalProperties: false responses: "200": description: The service's responders after the change. content: application/json: schema: $ref: "#/components/schemas/ServiceRespondersResponse" "400": description: Invalid path parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Service not found in the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /services/{id}/stakeholders/add: post: tags: - Services summary: Add service stakeholders operationId: addServiceStakeholders security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the service catalog service. format: int32 required: true description: ID of the service catalog service. name: id in: path requestBody: content: application/json: schema: type: object properties: userIds: type: array items: type: integer exclusiveMinimum: 0 minItems: 1 description: Manual stakeholder user IDs to add or remove. required: - userIds additionalProperties: false responses: "200": description: Updated stakeholder list. content: application/json: schema: $ref: "#/components/schemas/ServiceStakeholdersResponse" "400": description: Invalid path parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Service or stakeholder user not found in the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /services/{id}/stakeholders/remove: post: tags: - Services summary: Remove service stakeholders operationId: removeServiceStakeholders security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the service catalog service. format: int32 required: true description: ID of the service catalog service. name: id in: path requestBody: content: application/json: schema: type: object properties: userIds: type: array items: type: integer exclusiveMinimum: 0 minItems: 1 description: Manual stakeholder user IDs to add or remove. required: - userIds additionalProperties: false responses: "200": description: Updated stakeholder list. content: application/json: schema: $ref: "#/components/schemas/ServiceStakeholdersResponse" "400": description: Invalid path parameters or request body. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Service not found in the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /integrations/chat/microsoft-teams/teams: get: tags: - Chat Integrations summary: List Microsoft Teams teams description: Returns the Microsoft Teams teams the integration has joined, sorted by name. Pass a team `id` as `microsoftTeamsTeamId` to GET /integrations/chat/channels to list its channels. Only available to organizations connected to Microsoft Teams. operationId: listMicrosoftTeamsTeams security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: string minLength: 1 description: Only teams whose name contains this text, case-insensitively. required: false description: Only teams whose name contains this text, case-insensitively. name: search in: query responses: "200": description: List of joined Microsoft Teams teams. content: application/json: schema: $ref: "#/components/schemas/MicrosoftTeamsTeamsListResponse" "400": description: Invalid query parameters, or the organization is not connected to Microsoft Teams. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The Microsoft Teams integration is not connected or still needs consent. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /integrations/chat/channels: get: tags: - Chat Integrations summary: List chat channels description: Returns the channels of the chat platform the organization is connected to, sorted by name. On Slack every workspace channel is listed. On Microsoft Teams, channels belong to a team, so `microsoftTeamsTeamId` is required; list the teams with GET /integrations/chat/microsoft-teams/teams. Use the returned channel `id` values as `announcementChannels` on maintenance windows. operationId: listChatChannels security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: string minLength: 1 description: "Filter by channel name: on Slack, names containing this text (case-insensitive); on Microsoft Teams, names starting with it." required: false description: "Filter by channel name: on Slack, names containing this text (case-insensitive); on Microsoft Teams, names starting with it." name: search in: query - schema: type: string minLength: 1 description: Microsoft Teams team whose channels to list, from GET /integrations/chat/microsoft-teams/teams. Required for organizations connected to Microsoft Teams; rejected for organizations connected to Slack. required: false description: Microsoft Teams team whose channels to list, from GET /integrations/chat/microsoft-teams/teams. Required for organizations connected to Microsoft Teams; rejected for organizations connected to Slack. name: microsoftTeamsTeamId in: query responses: "200": description: List of chat channels. content: application/json: schema: $ref: "#/components/schemas/ChatChannelsListResponse" "400": description: Invalid query parameters, microsoftTeamsTeamId missing for a Microsoft Teams organization, or microsoftTeamsTeamId sent for a Slack organization. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: The Microsoft Teams team is not one the connected account has joined. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The chat platform is not connected or still needs consent. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "429": description: The chat platform is rate limiting channel requests; retry shortly. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /maintenance-windows: get: tags: - Maintenance Windows summary: List maintenance windows description: "Returns a paginated list of maintenance windows for the API key organization, newest start first. A maintenance window suppresses automatic paging only: alerts matching it are still ingested and created, nothing is auto-resolved, and automation actions are evaluated separately." operationId: listMaintenanceWindows security: - ApiKeyAuth: [] parameters: - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query - schema: type: string format: date-time description: Only windows covering this ISO 8601 instant. A window covers its start instant and has ended by its end instant. required: false description: Only windows covering this ISO 8601 instant. A window covers its start instant and has ended by its end instant. name: activeAt in: query - schema: anyOf: - type: string enum: - "null" - type: integer exclusiveMinimum: 0 description: Only windows scoped to this team. Send the literal `null` for global windows only; omit to list windows of every scope. required: false description: Only windows scoped to this team. Send the literal `null` for global windows only; omit to list windows of every scope. name: teamId in: query responses: "200": description: List of maintenance windows. content: application/json: schema: $ref: "#/components/schemas/MaintenanceWindowsListResponse" "400": description: Invalid query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Maintenance Windows summary: Create a maintenance window description: "A maintenance window suppresses automatic paging only: alerts matching it are still ingested and created, nothing is auto-resolved, and automation actions are evaluated separately. Announcements are optional: when announcementChannels is set, the window posts a message to those Slack or Microsoft Teams channels when it starts and when it ends. They do not affect which alerts the window suppresses. The API key grants organization-wide access: it can manage both global windows (no team) and windows scoped to any team in the organization." operationId: createMaintenanceWindow security: - ApiKeyAuth: [] requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateMaintenanceWindowRequest" responses: "201": description: Created maintenance window. content: application/json: schema: $ref: "#/components/schemas/MaintenanceWindowResponse" "400": description: Invalid request body, startAt is more than two minutes in the past, or an announcement channel is not on the connected chat platform. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Team not found in the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The chat platform for announcement channels is not connected or still needs consent. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "429": description: The chat platform is rate limiting channel lookups; retry shortly. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /maintenance-windows/{id}: get: tags: - Maintenance Windows summary: Get a maintenance window operationId: getMaintenanceWindow security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the maintenance window. format: int32 required: true description: ID of the maintenance window. name: id in: path responses: "200": description: Maintenance window. content: application/json: schema: $ref: "#/components/schemas/MaintenanceWindowResponse" "400": description: Invalid maintenance window ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Maintenance window not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Maintenance Windows summary: Update a maintenance window description: 'Partial update. To end an active window early, send `{"endAt": ""}`. Announcements are optional: when announcementChannels is set, the window posts a message to those Slack or Microsoft Teams channels when it starts and when it ends. They do not affect which alerts the window suppresses. The API key grants organization-wide access: it can manage both global windows (no team) and windows scoped to any team in the organization.' operationId: updateMaintenanceWindow security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the maintenance window. format: int32 required: true description: ID of the maintenance window. name: id in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateMaintenanceWindowRequest" responses: "200": description: Updated maintenance window. content: application/json: schema: $ref: "#/components/schemas/MaintenanceWindowResponse" "400": description: "Invalid path parameters or request body, an announcement channel is not on the connected chat platform, or the change is not allowed by the window lifecycle: ended windows are immutable; active windows cannot change startAt or move endAt into the past." content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Maintenance window not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: The chat platform for announcement channels is not connected or still needs consent. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "429": description: The chat platform is rate limiting channel lookups; retry shortly. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Maintenance Windows summary: Delete a maintenance window description: "Soft-deletes the window; this is also how a window is cancelled. The API key grants organization-wide access: it can manage both global windows (no team) and windows scoped to any team in the organization." operationId: deleteMaintenanceWindow security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the maintenance window. format: int32 required: true description: ID of the maintenance window. name: id in: path responses: "204": description: Maintenance window deleted. "400": description: Invalid maintenance window ID. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Maintenance window not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /maintenance-windows/{id}/suppressed-alerts: get: tags: - Maintenance Windows summary: List alerts whose automatic paging a maintenance window suppressed description: Returns the alerts this window held back from automatically paging, most recently suppressed first. operationId: listMaintenanceWindowSuppressedAlerts security: - ApiKeyAuth: [] parameters: - schema: type: integer exclusiveMinimum: 0 description: ID of the maintenance window. format: int32 required: true description: ID of the maintenance window. name: id in: path - schema: type: integer minimum: 1 maximum: 100 default: 20 description: Maximum number of items to return (default 20, max 100). format: int32 required: false description: Maximum number of items to return (default 20, max 100). name: limit in: query - schema: type: - integer - "null" minimum: 0 default: 0 description: Number of items to skip before starting to collect the result set. format: int32 required: false description: Number of items to skip before starting to collect the result set. name: offset in: query responses: "200": description: List of suppressed alerts. content: application/json: schema: $ref: "#/components/schemas/MaintenanceWindowSuppressedAlertsResponse" "400": description: Invalid path or query parameters. content: application/json: schema: $ref: "#/components/schemas/ValidationErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Maintenance window not found or does not belong to the organization. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alert-sources: get: tags: - Alert Sources security: - ApiKeyAuth: [] operationId: listAlertSources summary: List alert sources description: Responses carry the webhook token, so every alert source path requires alertSource.manage. parameters: - schema: anyOf: - type: string enum: - "null" - type: integer exclusiveMinimum: 0 description: Only this team's records. Send the literal `null` for organization-level records only; omit to list every scope. required: false description: Only this team's records. Send the literal `null` for organization-level records only; omit to list every scope. name: teamId in: query responses: "200": description: Alert sources. content: application/json: schema: $ref: "#/components/schemas/AlertSourceListResponse" "400": description: Invalid request, or an alert routing outside the source scope. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Alert Sources security: - ApiKeyAuth: [] operationId: createAlertSource summary: Create an alert source description: Every source gets its own webhook URL, or inbound address for an email source. Responses carry the webhook token, so every alert source path requires alertSource.manage. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateAlertSourceRequest" responses: "201": description: Created alert source. content: application/json: schema: $ref: "#/components/schemas/AlertSource" "400": description: Invalid request, or an alert routing outside the source scope. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert source, alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: A source with this name and provider already exists in the scope. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alert-sources/{id}: get: tags: - Alert Sources security: - ApiKeyAuth: [] operationId: getAlertSource summary: Get an alert source description: Responses carry the webhook token, so every alert source path requires alertSource.manage. parameters: - schema: type: integer exclusiveMinimum: 0 description: Alert source ID. format: int32 required: true description: Alert source ID. name: id in: path responses: "200": description: Alert source. content: application/json: schema: $ref: "#/components/schemas/AlertSource" "400": description: Invalid request, or an alert routing outside the source scope. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert source, alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Alert Sources security: - ApiKeyAuth: [] operationId: updateAlertSource summary: Update an alert source description: Omitted fields are unchanged; send alertRoutingId null to detach the source from its routing. parameters: - schema: type: integer exclusiveMinimum: 0 description: Alert source ID. format: int32 required: true description: Alert source ID. name: id in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateAlertSourceRequest" responses: "200": description: Updated alert source. content: application/json: schema: $ref: "#/components/schemas/AlertSource" "400": description: Invalid request, or an alert routing outside the source scope. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert source, alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: A source with this name and provider already exists in the scope. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Alert Sources security: - ApiKeyAuth: [] operationId: deleteAlertSource summary: Delete an alert source description: Its webhook URL or inbound address stops accepting alerts. Alerts that already arrived keep pointing at it. parameters: - schema: type: integer exclusiveMinimum: 0 description: Alert source ID. format: int32 required: true description: Alert source ID. name: id in: path responses: "204": description: Alert source deleted. "400": description: Invalid request, or an alert routing outside the source scope. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert source, alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alert-routings: get: tags: - Alert Routings security: - ApiKeyAuth: [] operationId: listAlertRoutings summary: List alert routings parameters: - schema: anyOf: - type: string enum: - "null" - type: integer exclusiveMinimum: 0 description: Only this team's records. Send the literal `null` for organization-level records only; omit to list every scope. required: false description: Only this team's records. Send the literal `null` for organization-level records only; omit to list every scope. name: teamId in: query responses: "200": description: Alert routings. content: application/json: schema: $ref: "#/components/schemas/AlertRoutingListResponse" "400": description: Invalid request, or a rule target that is not in the organization. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" post: tags: - Alert Routings security: - ApiKeyAuth: [] operationId: createAlertRouting summary: Create an alert routing description: Creates a routing with its rules. Point alert sources at it with the alert source alertRoutingId. requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateAlertRoutingRequest" responses: "201": description: Created alert routing. content: application/json: schema: $ref: "#/components/schemas/AlertRouting" "400": description: Invalid request, or a rule target that is not in the organization. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: A routing with this name already exists in the scope. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /alert-routings/{id}: get: tags: - Alert Routings security: - ApiKeyAuth: [] operationId: getAlertRouting summary: Get an alert routing parameters: - schema: type: integer exclusiveMinimum: 0 description: Alert routing ID. format: int32 required: true description: Alert routing ID. name: id in: path responses: "200": description: Alert routing. content: application/json: schema: $ref: "#/components/schemas/AlertRouting" "400": description: Invalid request, or a rule target that is not in the organization. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: Alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: tags: - Alert Routings security: - ApiKeyAuth: [] operationId: updateAlertRouting summary: Update an alert routing description: Omitted fields are unchanged. A supplied rules list replaces every rule; an empty list removes them all. parameters: - schema: type: integer exclusiveMinimum: 0 description: Alert routing ID. format: int32 required: true description: Alert routing ID. name: id in: path requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateAlertRoutingRequest" responses: "200": description: Updated alert routing. content: application/json: schema: $ref: "#/components/schemas/AlertRouting" "400": description: Invalid request, or a rule target that is not in the organization. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: A routing with this name already exists in the scope. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: tags: - Alert Routings security: - ApiKeyAuth: [] operationId: deleteAlertRouting summary: Delete an alert routing description: Deletes the routing and every rule on it, including enrichment rules set up in the product. Refused while an alert source or heartbeat still uses it; delete or repoint those first. parameters: - schema: type: integer exclusiveMinimum: 0 description: Alert routing ID. format: int32 required: true description: Alert routing ID. name: id in: path responses: "204": description: Alert routing deleted. "400": description: Invalid request, or a rule target that is not in the organization. content: application/json: schema: anyOf: - $ref: "#/components/schemas/ValidationErrorResponse" - $ref: "#/components/schemas/ErrorResponse" "401": description: Missing or invalid API key. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "403": description: "Permission denied: the API key is read-only, or its access does not include an action this request needs." content: application/json: schema: $ref: "#/components/schemas/ApiKeyDenialResponse" "404": description: Alert routing or team not found. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "409": description: An alert source or heartbeat still uses the routing. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: Internal server error. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" webhooks: {}