> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

incident.io

IncidentIO iconIncidentIO icon
Loading version...

Port's incident.io integration syncs incidents, alerts, the people involved, the teams that own them, and who is on call into your context lake.

Supported resources External link iconUserTeamScheduleIncidentAlert

Prerequisites​

Create an API key​

  1. In incident.io, open API keys.
  2. Create a key that can read incidents, alerts, users, teams, and schedules.
KindAPIScope
UserGET /v2/usersusers.view
TeamGET /v3/teamscatalog_entries.view
ScheduleGET /v2/schedulesschedules.view
IncidentGET /v2/incidentsView incidents. The list reference does not name a separate scope.
AlertGET /v2/alertsalerts.view

If a kind's permission is missing, that kind's resync fails and Port keeps the entities already ingested for it. The other kinds still sync.

The API origin defaults to https://api.incident.io. Set incidentIoApiUrl only when you need a different https origin.

Setup​

Choose one of the following installation methods. Not sure which method is right for your use case? Check the available installation methods.

Choose method

Configuration​

Port integrations use a YAML mapping block to ingest data from the third-party API into Port.

The mapping makes use of the JQ JSON processor to select, modify, concatenate, transform and perform other operations on existing fields and values from the integration API.

Default mapping configuration​

This is the default mapping configuration for this integration:

Default mapping configuration (click to expand)
deleteDependentEntities: true
createMissingRelatedEntities: false
resources:
- kind: user
selector:
query: 'true'
includeInactive: false
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"incidentIoUser"'
properties:
email: .email
role: .base_role.name
isActive: .is_active
slackUserId: .slack_user_id
onCallSeat: .seats.on_call
responseSeat: .seats.response
- kind: team
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"incidentIoTeam"'
properties:
externalId: .catalog_entry.external_id
memberCount: '(.members // []) | length'
relations:
members: '[.members[]?.id // empty]'
- kind: schedule
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"incidentIoSchedule"'
properties:
timezone: .timezone
currentOnCall: '[.current_shifts[]?.user.name // empty] | unique'
currentShiftEndsAt: '[.current_shifts[]?.end_at // empty] | sort | .[0]'
link: .permalink
relations:
teams: '.team_ids // []'
onCall: '[.current_shifts[]?.user.id // empty] | unique'
- kind: alert
selector:
query: 'true'
daysBack: 90
port:
entity:
mappings:
identifier: .id
title: .title
blueprint: '"incidentIoAlert"'
properties:
description: .description
status: .status
priority: '[.attributes[]? | select((.attribute.name // "") | ascii_downcase == "priority") | .value.label // .value.literal // empty][0]'
sourceUrl: .source_url
deduplicationKey: .deduplication_key
createdAt: .created_at
updatedAt: .updated_at
- kind: incident
selector:
query: 'true'
daysBack: 90
port:
entity:
mappings:
identifier: .id
title: .reference + " " + .name
blueprint: '"incidentIoIncident"'
properties:
reference: .reference
summary: .summary
status: .incident_status.name
statusCategory: .incident_status.category
severity: .severity.name
mode: .mode
visibility: .visibility
incidentType: .incident_type.name
createdAt: .created_at
updatedAt: .updated_at
lastActivityAt: .last_activity_at
slackChannel: .slack_channel_name
workloadMinutes: .workload_minutes_total
link: .permalink
postmortemUrl: .postmortem_document_url
relations:
teams: '.team_ids // []'
lead: '[.incident_role_assignments[]? | select(.role.role_type == "lead") | .assignee.id // empty][0]'
creator: .creator.user.id

Monitoring and sync status​

To learn more about how to monitor and check the sync status of your integration, see the relevant documentation.

Mapping and selectors per resource​

Use the explorer below to view the blueprint, the default mapping, a sample payload, and the resulting Port entity for each resource.

Sync behavior​

Relations point at users and teams that were synced. Missing targets are not created as placeholder entities.

status is the org's status name, stored as a string, so a renamed status still syncs. statusCategory is the stable API value (triage, live, learning, and the rest) and keeps a color per category. postmortemUrl is set only when the incident has postmortem_document_url.

Incremental sync​

Incidents also sync on the incremental interval. The incident list filter only accepts a calendar date (yyyy-mm-dd), so an incremental run re-reads incidents updated on the cursor's UTC day, still inside daysBack. It updates those incidents and leaves the rest of the catalog until the next full resync.

Alerts also sync on the incremental interval. updated_at accepts a timestamp, so that run starts at the cursor and stays inside daysBack. priority is taken from an alert attribute named Priority.

Full resync​

A full resync deletes incidents and alerts created outside daysBack. Users, teams, and schedules refresh on the full resync only. Who is on call comes from current_shifts, which changes as the rotation turns without changing the schedule's updated_at.

The incidents list is limited to 60 requests per minute. The other list endpoints share the account limit of 1200 requests per minute. The client stays under both, and Ocean retries 429 and 5xx responses.

To view and test the mapping against live API responses, use the jq playground in your connectors page.