Skip to content

Integrations for AI agents

View Markdown

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:

TypeRequired configOptional config
CampfireV3chatbot_url—
Datadogapi_keyendpoint (US1/US3/US5/US1-FED/EU1/AP1), label, send_metrics
DiscordWebhookurllabel
Jirausername, password, server_url, project_keyresolve_transition, reopen_transition, labels, component_names, issue_type, summary_format, rich_body
OpsGenieV2api_keyendpoint (US/EU/Sandbox), label
Redmineserver_url, api_keyresolve_transition, reopen_transition
PagerDutyV2integration_keyseverity (critical/error/warning/info), label
Sprintlyaccount_email, api_key, product_idtags
Mattermosturllabel
GoogleHangoutsChaturllabel
VictorOpsapi_keyrouting_key, label
WebHookurlbearer_token, label, payload_version (v2/v3)
Emailemailemail_subject
AlertOpsurllabel
MicrosoftTeamsV2urllabel
ShortcutV2organization_name, api_key, team, initial_state, resolve_transition, reopen_transitiontitle_format, description_format, custom_fields
PagerTreeurl—
Instatusurllabel
Ilerturllabel
Zulipbot_email, api_key, channel, topiczulip_domain, server_url
IncidentIoapi_key, alert_source_label—
Rootlywebhook_authorization_tokennotification_target_type (service/team/escalationPolicy), notification_target_id, label
Backlogspace_url, api_key, backlog_project_id, issue_type_id, priority_id, resolve_status_id, reopen_status_idlabel, 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):

TypeRequired configOptional config
Githubrepolabels, issue_type, issue_fields, title_format, rich_body
Gitlabrepolabels, server_url, personal_access_token, title_format, rich_body
Bitbucketrepo—
Asanaasana_project_id—
JiraCloudproject_keyresolve_transition, reopen_transition, labels, component_names, issue_type, summary_format, rich_body
Trelloboard_id, list_idtitle_format
Linearteam_idlinear_project_id, label_ids, unresolved_state_id, resolved_state_id, label, title_format, description_format
Slack—label, disable_backtrace
Intercomcontext_field—
ClickUpworkspace_id, teamspace_id, list_id, initial_status_id, resolve_status_id, reopen_status_idfolder_id, tags, title_format, description_format
ClickUpChatworkspace_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.