> ## 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.

# Get Failed Run Alerts

> Whether you are emailed when a workflow fails, and who receives it

Read the failed-run alert setting: whether an email goes out when a workflow fails, whether
the workflow's owner gets it, and the extra addresses it also goes to. Change it with
[Update Failed Run Alerts](https://docs.clustr-ai.com/api-reference/update-failed-run-alerts.md).

> [!NOTE]
>
> **On by default.** A workspace that never saved the setting reads as `enabled: true`,
> `notify_defaults: true`, no extra recipients, and `is_default: true`. The owner of a
> workflow is whoever last turned it on, else whoever created it. When neither is recorded,
> or that person is no longer a member of the workspace, the email goes to the workspace
> admins.

```bash cURL theme={null}
curl "https://api.clustr-ai.com/api/public/notifications/failed-runs?workflow_id=wf_5ksxcrw9z0mfte6syadgzq3vn1" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

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

requests.get(
    "https://api.clustr-ai.com/api/public/notifications/failed-runs",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    params={"workflow_id": "wf_5ksxcrw9z0mfte6syadgzq3vn1"},
)
```

```javascript JavaScript theme={null}
await fetch("https://api.clustr-ai.com/api/public/notifications/failed-runs?workflow_id=wf_5ksxcrw9z0mfte6syadgzq3vn1", {
  headers: { Authorization: "Bearer YOUR_API_KEY" },
});
```

```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",
    "workflow": {
      "clustr_workflow_id": "wf_5ksxcrw9z0mfte6syadgzq3vn1",
      "workflow_id": "7b1c2f0e-4a8e-4d59-9b1a-2f0c8e6d1a33",
      "owner": {
        "clustr_user_id": "usr_6h0tgfv0qq26twwzng1g624dt6",
        "user_id": "3f7a9d2e-0c4b-4e1f-8a6d-5b2c9e1f0a47",
        "email": "marine.b@example.com",
        "name": "Marine B"
      },
      "owner_source": "enabled_by",
      "admins": [
        {
          "clustr_user_id": "usr_fag32fktv71xw95r8wr9n88mrj",
          "user_id": "9a1e4c7b-2d3f-4b8a-9c6e-1f0d2a3b4c5d",
          "email": "admin@example.com",
          "name": "Sam Admin"
        }
      ],
      "recipients": ["marine.b@example.com", "ops@example.com"]
    }
  }
}
```


## OpenAPI

````yaml GET /notifications/failed-runs
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/failed-runs:
    get:
      tags:
        - Notifications
      summary: Get Failed Run Alerts
      description: |
        Whether an email goes out when a workflow fails, and who receives it.
      operationId: getFailedRunAlerts
      parameters:
        - name: workflow_id
          in: query
          required: false
          description: >-
            Optional. A Workflow's Clustr ID (`wf_…`); the id from earlier
            responses also works. When sent,

            the response also carries `workflow`: who receives that Workflow's
            failure email, with its owner

            (`null` when the email goes to the workspace admins), the admins,
            and the full recipient list.
          schema:
            type: string
          example: wf_5zvj6jvp66d8p4yxfgj6tbvd0a
      responses:
        '200':
          description: The current setting
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailedRunAlertsResponse'
        '401':
          description: Invalid or missing API key
components:
  schemas:
    FailedRunAlertsResponse:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            enabled:
              type: boolean
              description: Whether failed-run 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
            workflow:
              type: object
              description: >-
                Present when the request sets `workflow_id`: who that workflow's
                failure email goes to.
              properties:
                clustr_workflow_id:
                  type: string
                  description: >-
                    The Workflow's Clustr ID, for example
                    `wf_jdxgv705z000tzsnj7y221w27a`.
                  example: wf_jdxgv705z000tzsnj7y221w27a
                workflow_id:
                  type: string
                  description: >-
                    Kept for integrations built before Clustr IDs. New
                    integrations should use `clustr_workflow_id`.
                owner:
                  type: object
                  nullable: true
                  description: >-
                    The person who last turned the workflow on, else who created
                    it. Null means the workspace admins.
                  properties:
                    clustr_user_id:
                      type: string
                      description: >-
                        The member's Clustr ID, for example
                        `usr_apcwe3s0d4mhej24sx9wvx7whw`.
                      example: usr_apcwe3s0d4mhej24sx9wvx7whw
                    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
                owner_source:
                  type: string
                  enum:
                    - enabled_by
                    - created_by
                    - admins
                admins:
                  type: array
                  items:
                    type: object
                    properties:
                      clustr_user_id:
                        type: string
                        description: >-
                          The member's Clustr ID, for example
                          `usr_apcwe3s0d4mhej24sx9wvx7whw`.
                        example: usr_apcwe3s0d4mhej24sx9wvx7whw
                      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.