# Integrations Integrations deliver notifications when events occur in a project — errors, deploys, uptime changes, check-in misses, and alarm triggers. Each integration connects to an external service (webhook, PagerDuty, email, etc.) and belongs to one project. ## Integration types Created and working through the API alone: | Type | Required config | Optional config | |------|----------------|-----------------| | `CampfireV3` | chatbot_url | — | | `Datadog` | api_key | endpoint (US1/US3/US5/US1-FED/EU1/AP1), label, send_metrics | | `DiscordWebhook` | url | label | | `Jira` | username, password, server_url, project_key | resolve_transition, reopen_transition, labels, component_names, issue_type, summary_format, rich_body | | `OpsGenieV2` | api_key | endpoint (US/EU/Sandbox), label | | `Redmine` | server_url, api_key | resolve_transition, reopen_transition | | `PagerDutyV2` | integration_key | severity (critical/error/warning/info), label | | `Sprintly` | account_email, api_key, product_id | tags | | `Mattermost` | url | label | | `GoogleHangoutsChat` | url | label | | `VictorOps` | api_key | routing_key, label | | `WebHook` | url | bearer_token, label, payload_version (v2/v3) | | `Email` | email | email_subject | | `AlertOps` | url | label | | `MicrosoftTeamsV2` | url | label | | `ShortcutV2` | organization_name, api_key, team, initial_state, resolve_transition, reopen_transition | title_format, description_format, custom_fields | | `PagerTree` | url | — | | `Instatus` | url | label | | `Ilert` | url | label | | `Zulip` | bot_email, api_key, channel, topic | zulip_domain, server_url | | `IncidentIo` | api_key, alert_source_label | — | | `Rootly` | webhook_authorization_token | notification_target_type (service/team/escalationPolicy), notification_target_id, label | | `Backlog` | space_url, api_key, backlog_project_id, issue_type_id, priority_id, resolve_status_id, reopen_status_id | label, enable_webhook, subject_format, description_format | `Zulip` also needs one of `zulip_domain` or `server_url`. An `Email` integration may deliver nothing until the recipient confirms the address from an email Honeybadger sends them. The API doesn't show whether it's confirmed, so tell the user to look for that email. Created through the API, then connected by the user (OAuth): | Type | Required config | Optional config | |------|----------------|-----------------| | `Github` | repo | labels, issue_type, issue_fields, title_format, rich_body | | `Gitlab` | repo | labels, server_url, personal_access_token, title_format, rich_body | | `Bitbucket` | repo | — | | `Asana` | asana_project_id | — | | `JiraCloud` | project_key | resolve_transition, reopen_transition, labels, component_names, issue_type, summary_format, rich_body | | `Trello` | board_id, list_id | title_format | | `Linear` | team_id | linear_project_id, label_ids, unresolved_state_id, resolved_state_id, label, title_format, description_format | | `Slack` | — | label, disable_backtrace | | `Intercom` | context_field | — | | `ClickUp` | workspace_id, teamspace_id, list_id, initial_status_id, resolve_status_id, reopen_status_id | folder_id, tags, title_format, description_format | | `ClickUpChat` | workspace_id, channel_id | — | An OAuth integration sends nothing until it's connected. Check `connected` in the response; when it's false, give the user the integration's `links.web` URL to open and authorize. It starts working once connected, with no further request. Connecting doesn't change `active`: one created with `active: false` needs `active: true` afterwards. For GitHub, connecting means installing the Honeybadger GitHub App on the repo. Saving a GitHub integration active when the linked GitHub account can't reach the repo is a 422; with `active: false` that check doesn't run. Some required settings are the other service's own ids: a Linear `team_id`, a Trello `board_id` and `list_id`, ClickUp workspace, teamspace, list and status ids. Look them up with that service's API or your tools for it, or ask the user; never substitute Honeybadger ids. ## Creating an integration ``` POST /v3/projects/{project_id}/integrations { "type": "WebHook", "config": {"url": "https://example.com/hook"}, "events": ["deployed", "resolved"] } ``` - `config`: the type's settings from the tables above. Settings go inside `config`, never at the top level - `active` defaults to true, and `events` to the type's default events the plan includes, so a create without them starts notifying at once - `site_ids` / `check_in_ids`: a list follows just those sites or check-ins, `[]` follows none, and `null` follows every one, including ones added later. Left out on create, they follow every one - `alarm_alert_ids` / `alarm_ok_ids`: the alarms whose trigger (`alarm_alert_ids`) or recovery (`alarm_ok_ids`) this integration notifies on. Alarm notifications are wired per alarm: subscribing to `alarm_alert` or `alarm_ok` in `events` without listing alarm ids here notifies on no alarm - `filters`: a list of `{"event": "...", "query": "..."}`, where `query` is error search syntax (see the errors instructions) and `event` is an event name or `all`. An event with no filters notifies for every error; once it has filters, it notifies only when ANY of them matches. So the first filter narrows, and each one after it widens. Filters only apply to events about an error (`occurred`, `rate_exceeded`, `assigned`, `resolved`, `unresolved`, `commented`, and a `flooded` notification an error triggered); one on any other event is accepted but filters nothing - `excluded_environments` / `included_environments`: environment names to skip, or to limit to. Excluded wins when a name is in both - `rate` / `threshold`: when `rate_exceeded` fires — `threshold` occurrences (default 100) within `rate`: `min`, `hour`, `wday` (24 hours, not weekdays; the default) or `week` - `notification_limit`: flood control, applied only while `events` includes `flooded`. Once more than this many notifications have gone out in 10 minutes, further ones are skipped and a single `flooded` notification is sent (webhooks skip without sending one) ## Updating an integration `PATCH /v3/projects/{project_id}/integrations/{id}` changes only the fields it sends, but each list it sends (`events`, `filters`, the environment lists, and the site, check-in and alarm ids) replaces the stored one: to add one entry, send the existing entries too. `config` merges into the stored settings, and `null` for a `config` key resets it to its default. Secrets (API keys, tokens) are never returned; leave them out to keep them. `null` at the top level widens: `site_ids` / `check_in_ids` follow every site or check-in, `events` goes back to the type's defaults the plan includes, and `filters` and the environment lists are cleared. `error` and `error_reason` appear when delivery failed and stopped. Fix the cause, then update the integration: a successful update clears them and deliveries resume. ## Events Not every type supports every event. - `occurred` — error first reported, or recurred after resolution - `rate_exceeded` — error rate passed `threshold` within `rate` - `assigned` — error assigned to a team member - `resolved` — error marked resolved - `unresolved` — error reopened - `commented` — comment added to an error - `deployed` — deploy recorded - `up` — monitored site came back up - `down` — monitored site went down - `cert_will_expire` — SSL certificate expiring soon - `flooded` — notifications skipped after `notification_limit` was reached - `check_in_missing` — scheduled process missed its check-in - `check_in_reporting` — a missing check-in reported again (recovery) - `alarm_alert` — Insights alarm triggered (see `alarm_alert_ids`) - `alarm_ok` — Insights alarm recovered (see `alarm_ok_ids`) - `volume_spike` — error volume anomaly detected ## Webhooks A `WebHook` integration POSTs JSON to its `url` for each subscribed event. `payload_version` picks the body: `v2` (the default) or `v3`. Any 2xx counts as delivered. A 5xx is retried up to five times. When those run out, or on any other response, a timeout or a refused connection, the integration's `error` is set and deliveries stop until the integration is updated.