Skip to main content

Settings

Notification preferences and audit logs. Reference for API version 2026-11-11.

On this page
CurrentDownload OpenAPI (JSON)Versioning

Get notification preferences

GET /api/v1/settings/notifications

Authentication

  • API key in X-API-Key
  • API key or session token in Authorization: Bearer

Responses

  • 200 Preferences.

    application/json

    Body (application/json)

    • preferences object
      16 fields in preferences
      • email_enabled boolean
      • email_scan_complete boolean
      • email_finding_critical boolean
      • email_finding_high boolean
      • email_finding_medium boolean
      • email_finding_low boolean
      • email_weekly_digest boolean
      • email_security_alerts boolean
      • email_product_updates boolean
      • browser_enabled boolean
      • browser_scan_complete boolean
      • browser_findings boolean
      • slack_enabled boolean
      • slack_scan_complete boolean
      • slack_findings_critical boolean
      • sound_enabled boolean
  • 401 Missing, invalid, expired or revoked credentials.Error envelope

Example

cURL
curl "https://api.breachline.io/api/v1/settings/notifications" \
  -H "Authorization: Bearer $BREACHLINE_API_KEY"
Example 200 response
{
  "preferences": {
    "email_enabled": true,
    "email_scan_complete": true,
    "email_finding_critical": true,
    "email_finding_high": true,
    "email_finding_medium": true,
    "email_finding_low": true,
    "email_weekly_digest": true,
    "email_security_alerts": true,
    "email_product_updates": true,
    "browser_enabled": true,
    "browser_scan_complete": true,
    "browser_findings": true,
    "slack_enabled": true,
    "slack_scan_complete": true,
    "slack_findings_critical": true,
    "sound_enabled": true
  }
}

Update notification preferences

PUT /api/v1/settings/notifications

Send only the fields to change.

Authentication

  • API key in X-API-Key
  • API key or session token in Authorization: Bearer

Request body

application/json Required

  • email_enabled boolean
  • email_scan_complete boolean
  • email_finding_critical boolean
  • email_finding_high boolean
  • email_finding_medium boolean
  • email_finding_low boolean
  • email_weekly_digest boolean
  • email_security_alerts boolean
  • email_product_updates boolean
  • browser_enabled boolean
  • browser_scan_complete boolean
  • browser_findings boolean
  • slack_enabled boolean
  • slack_scan_complete boolean
  • slack_findings_critical boolean
  • sound_enabled boolean

Responses

  • 200 The saved preferences.

    application/json

    Body (application/json)

    • preferences object
      16 fields in preferences
      • email_enabled boolean
      • email_scan_complete boolean
      • email_finding_critical boolean
      • email_finding_high boolean
      • email_finding_medium boolean
      • email_finding_low boolean
      • email_weekly_digest boolean
      • email_security_alerts boolean
      • email_product_updates boolean
      • browser_enabled boolean
      • browser_scan_complete boolean
      • browser_findings boolean
      • slack_enabled boolean
      • slack_scan_complete boolean
      • slack_findings_critical boolean
      • sound_enabled boolean
  • 401 Missing, invalid, expired or revoked credentials.Error envelope
  • 422 The request body or parameters failed schema validation.Error envelope

Example

cURL
curl -X PUT "https://api.breachline.io/api/v1/settings/notifications" \
  -H "Authorization: Bearer $BREACHLINE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Example 200 response
{
  "preferences": {
    "email_enabled": true,
    "email_scan_complete": true,
    "email_finding_critical": true,
    "email_finding_high": true,
    "email_finding_medium": true,
    "email_finding_low": true,
    "email_weekly_digest": true,
    "email_security_alerts": true,
    "email_product_updates": true,
    "browser_enabled": true,
    "browser_scan_complete": true,
    "browser_findings": true,
    "slack_enabled": true,
    "slack_scan_complete": true,
    "slack_findings_critical": true,
    "sound_enabled": true
  }
}

List audit log entries

GET /api/v1/settings/audit-logs

Your own trail with audit:read, or the whole organization's with scope=org and audit:read:org.

Authentication

  • API key in X-API-Key
  • API key or session token in Authorization: Bearer

Query parameters

  • limit integer
    Default
    100
    Minimum
    1
    Maximum
    500
  • offset integer
    Default
    0
    Minimum
    0
  • severity string or null
  • action_type string or null
  • scope string
    One of
    me org
    Default
    me

Responses

  • 200 A page of entries.

    application/json

    Body (application/json)

    • success boolean
    • scope string
    • total integer
    • limit integer
    • offset integer
    • logs array of objects
      12 fields in logs
      • id string
      • timestamp string (date-time)
      • action string
      • type string
      • severity string
      • status string
      • actor string or object or null
      • target string or object or null
      • ip_address string or null
      • user_agent string or null
      • details object or null
      • compliance_tags array of strings
  • 401 Missing, invalid, expired or revoked credentials.Error envelope
  • 403 The credential is valid but lacks a required scope or permission.Error envelope

Example

cURL
curl "https://api.breachline.io/api/v1/settings/audit-logs" \
  -H "Authorization: Bearer $BREACHLINE_API_KEY"
Example 200 response
{
  "success": true,
  "scope": "string",
  "total": 0,
  "limit": 0,
  "offset": 0,
  "logs": [
    {
      "id": "string",
      "timestamp": "2026-11-11T00:00:00Z",
      "action": "string",
      "type": "string",
      "severity": "string",
      "status": "string",
      "actor": "string",
      "target": "string",
      "ip_address": "string",
      "user_agent": "string",
      "details": {},
      "compliance_tags": [
        "string"
      ]
    }
  ]
}

Export audit log entries

GET /api/v1/settings/audit-logs/export

Requires audit:export (audit:export:org with scope=org).

Authentication

  • API key in X-API-Key
  • API key or session token in Authorization: Bearer

Query parameters

  • severity string or null
  • action_type string or null
  • scope string
    One of
    me org
    Default
    me

Responses

  • 200 The export file.application/octet-stream
  • 401 Missing, invalid, expired or revoked credentials.Error envelope
  • 403 The credential is valid but lacks a required scope or permission.Error envelope

Example

cURL
curl "https://api.breachline.io/api/v1/settings/audit-logs/export" \
  -H "Authorization: Bearer $BREACHLINE_API_KEY"

Search documentation

Type to search guides, the API reference, the CLI and the console guide.

    Enter open↑ ↓ moveEsc close