Integrations
Create an integration
Creates a notification integration. type picks the integration, and config holds its settings, listed per type in Integration types. An OAuth integration (Slack, GitHub, Linear and the like) sends nothing until someone connects it in the web UI at its links.web.
post/projects/{project_id}/integrations
Request
- Base URLhttps://app.honeybadger.io/v3
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
project_idstring required
Example:Xk9mZp
Project ID
Request body
Example request
{
"type": "WebHook",
"events": [
"occurred",
"resolved"
],
"config": {
"url": "https://example.com/hook"
}
}Response
Created
Example response
{
"data": {
"id": "Ch9wLp",
"project_id": "Xk9mZp",
"type": "Slack",
"events": [
"occurred",
"resolved",
"assigned"
],
"excluded_environments": [
"development"
],
"included_environments": [],
"filters": [
{
"event": "occurred",
"query": "environment:production"
}
],
"alarm_alert_ids": [],
"alarm_ok_ids": [],
"threshold": 100,
"error_reason": "The webhook URL returned 410 Gone",
"links": {
"web": "https://app.honeybadger.io/projects/Xk9mZp"
}
},
"meta": {
"request_id": "6f1c2b0e-8d4a-4f6e-9b2a-3c5d7e9f1a2b"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.