> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clustr-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Broken Integration Alerts

> Be emailed when a connection stops working, and choose who receives it

Turn broken-integration alerts on or off, choose whether whoever connected the integration
and the workspace admins are emailed, and set extra recipients. When a connection stops
working, each recipient gets one email naming the provider, what happened to it, and a
link to the page that reconnects it.

A connection counts as broken when its access was **revoked**, when it **needs to be
reconnected** (the token no longer refreshes), or when its access has **expired**.

> [!NOTE]
>
> **On by default, to whoever connected it and the workspace admins.** When that person is
> no longer a member of the workspace, the admins alone. Addresses are de-duplicated across
> them and the extra recipients.

> [!NOTE]
>
> **At most one email a day per connection and way of breaking.** A connection that is
> still revoked on the next check is not mentioned again; a connection that breaks in a new
> way (revoked after it had merely expired) is mentioned on the next check, within
> fifteen minutes.

```bash cURL theme={null}
curl -X PUT https://api.clustr-ai.com/api/public/notifications/broken-integrations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled": true, "notify_defaults": true, "recipients": ["ops@example.com"]}'
```

```python Python theme={null}
import requests

requests.put(
    "https://api.clustr-ai.com/api/public/notifications/broken-integrations",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"enabled": True, "notify_defaults": True, "recipients": ["ops@example.com"]},
)
```

```javascript JavaScript theme={null}
await fetch("https://api.clustr-ai.com/api/public/notifications/broken-integrations", {
  method: "PUT",
  headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({ enabled: true, notify_defaults: true, recipients: ["ops@example.com"] }),
});
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "enabled": true,
    "notify_defaults": true,
    "recipients": ["ops@example.com"],
    "is_default": false,
    "updated_at": "2026-09-18T09:12:44Z"
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": {
    "message": "email who connected it and the admins, or add at least one recipient, to turn broken-integration alerts on",
    "code": "BAD_REQUEST"
  }
}
```


## OpenAPI

````yaml PUT /notifications/broken-integrations
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /notifications/broken-integrations:
    put:
      tags:
        - Notifications
      summary: Update Broken Integration Alerts
      description: >-
        Turns broken-integration alerts on or off and sets the recipients.
        Alerts are on by default, and each connection sends at most one email a
        day for each kind of failure. Turning alerts on needs `notify_defaults`
        or at least one recipient.
      operationId: updateBrokenIntegrationAlerts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                  description: >-
                    Whether broken-integration emails go out at all. Turning it
                    on needs `notify_defaults` or

                    at least one recipient.
                recipients:
                  type: array
                  description: >-
                    Extra email addresses that receive the alert. Addresses are
                    lower-cased and de-duplicated; an address without an `@`
                    answers `400`.
                  items:
                    type: string
                    format: email
                notify_defaults:
                  type: boolean
                  description: >-
                    Optional. Whether whoever connected the integration and the
                    workspace admins are emailed.

                    Omit it to keep the saved value, which is `true` until
                    someone changes it.
      responses:
        '200':
          description: The saved setting
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokenIntegrationAlertsResponse'
        '400':
          description: An address is not an email, or enabling with no recipients
        '401':
          description: Invalid or missing API key
components:
  schemas:
    BrokenIntegrationAlertsResponse:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            enabled:
              type: boolean
              description: Whether broken-integration alerts are sent. On by default.
            notify_defaults:
              type: boolean
              description: Whether the default people are emailed. On by default.
            recipients:
              type: array
              description: Extra email addresses to notify, on top of the default people.
              items:
                type: string
                format: email
            is_default:
              type: boolean
              description: True when the workspace never saved the setting.
            updated_at:
              type: string
              format: date-time
            integration:
              type: object
              description: >-
                Present when the request sets `provider`: who that connection's
                broken-integration email goes to.
              properties:
                provider:
                  type: string
                connected_by:
                  type: object
                  nullable: true
                  description: >-
                    Who connected it. Null when unknown or when that person has
                    left the workspace.
                  properties:
                    clustr_user_id:
                      type: string
                      description: >-
                        The member's Clustr ID, for example
                        `usr_gmrzcqdrjbwk3qapcj5md8s3m6`.
                      example: usr_gmrzcqdrjbwk3qapcj5md8s3m6
                    user_id:
                      type: string
                      description: >-
                        Kept for integrations built before Clustr IDs. New
                        integrations should use `clustr_user_id`.
                    email:
                      type: string
                      format: email
                    name:
                      type: string
                admins:
                  type: array
                  items:
                    type: object
                    properties:
                      clustr_user_id:
                        type: string
                        description: >-
                          The member's Clustr ID, for example
                          `usr_gmrzcqdrjbwk3qapcj5md8s3m6`.
                        example: usr_gmrzcqdrjbwk3qapcj5md8s3m6
                      user_id:
                        type: string
                        description: >-
                          Kept for integrations built before Clustr IDs. New
                          integrations should use `clustr_user_id`.
                      email:
                        type: string
                        format: email
                      name:
                        type: string
                recipients:
                  type: array
                  items:
                    type: string
                    format: email
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.