> ## 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 Delivery Config

> Set where competitor reports are delivered

Set where finished competitor reports are delivered.

See [the webhook payload](https://docs.clustr-ai.com/competitor-monitoring/report-schema.md#report-ready-webhook) for what a `competitor_monitoring.report_ready` event contains.

```bash cURL theme={null}
curl -X PUT https://api.clustr-ai.com/v2/competitor_monitoring/delivery_config \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email_enabled": true,
    "extra_recipients": ["gtm@yourcompany.com"],
    "slack_enabled": true,
    "slack_channel_id": "C0123456789",
    "webhook_enabled": true,
    "webhook_url": "https://hooks.yourcompany.com/clustr/competitors",
    "routes": [
      { "scope": "in_crm", "label": "CS team", "slack_enabled": true, "slack_channel_id": "C0CSCHANNEL" },
      { "scope": "open_deal", "label": "AEs", "slack_enabled": true, "slack_channel_id": "C0AECHANNEL" }
    ]
  }'
```

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

requests.put(
    "https://api.clustr-ai.com/v2/competitor_monitoring/delivery_config",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "email_enabled": True,
        "slack_enabled": True,
        "slack_channel_id": "C0123456789",
    },
)
```

```javascript JavaScript theme={null}
await fetch("https://api.clustr-ai.com/v2/competitor_monitoring/delivery_config", {
  method: "PUT",
  headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({
    email_enabled: true,
    slack_enabled: true,
    slack_channel_id: "C0123456789",
  }),
});
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "email_enabled": true,
    "extra_recipients": ["gtm@yourcompany.com"],
    "slack_enabled": true,
    "slack_channel_id": "C0123456789",
    "webhook_enabled": true,
    "webhook_url": "https://hooks.yourcompany.com/clustr/competitors",
    "routes": [
      { "scope": "in_crm", "label": "CS team", "slack_enabled": true, "slack_channel_id": "C0CSCHANNEL" },
      { "scope": "open_deal", "label": "AEs", "slack_enabled": true, "slack_channel_id": "C0AECHANNEL" }
    ]
  }
}
```


## OpenAPI

````yaml PUT /v2/competitor_monitoring/delivery_config
openapi: 3.1.0
info:
  title: Clustr API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros, 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: '2.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com
    description: Production
security:
  - BearerAuth: []
paths:
  /v2/competitor_monitoring/delivery_config:
    put:
      tags:
        - Competitor Monitoring
      summary: Update Delivery Config
      description: >
        Set where reports are delivered. Each channel is delivered on its own,
        so the

        others still receive the report when one of them is unavailable.
      operationId: setCompetitorMonitoringDeliveryConfig
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                engagement:
                  type: object
                  description: Ignored; accepted so a saved value round-trips.
                  properties:
                    min_comments:
                      type: integer
                    min_reactions:
                      type: integer
                    recency_days:
                      type: integer
                    exclude_same_company:
                      type: boolean
                email_enabled:
                  type: boolean
                  description: Send the report summary by email.
                notify_admins:
                  type: boolean
                  description: >-
                    Also email the report to your workspace admins, on top of
                    extra_recipients, while email_enabled is true. When you
                    leave it out, the admins receive the report if
                    extra_recipients is empty, and only the addresses in
                    extra_recipients receive it otherwise.
                  example: true
                extra_recipients:
                  type: array
                  description: Additional email recipients beyond your workspace's default.
                  items:
                    type: string
                slack_enabled:
                  type: boolean
                  description: Post a one-line summary to Slack.
                slack_channel_id:
                  type: string
                  description: >-
                    Slack channel id to post to. Requires a connected Slack
                    workspace.
                webhook_enabled:
                  type: boolean
                  description: >-
                    POST a `competitor_monitoring.report_ready` event when a
                    report is ready.
                webhook_url:
                  type: string
                  description: Your endpoint for that event.
                routes:
                  type: array
                  description: >-
                    Destinations for each audience. When you leave it out, the
                    channels above

                    receive the whole digest. With routes, each route receives
                    only its own slice,

                    so your CS channel can follow the accounts you already own
                    while your SDRs

                    follow the prospects they are working.


                    The scopes split the accounts between them, so each account
                    is delivered once.
                  items:
                    type: object
                    properties:
                      scope:
                        type: string
                        enum:
                          - all
                          - open_deal
                          - in_crm
                          - not_in_crm
                        description: >-
                          `all` is every account; `open_deal` an account with a
                          live CRM deal; `in_crm` an account in your CRM with no
                          live deal; `not_in_crm` everything else.
                      label:
                        type: string
                        description: Your name for the route, shown for display.
                      slack_enabled:
                        type: boolean
                        description: Post this slice to `slack_channel_id`.
                      slack_channel_id:
                        type: string
                        description: The channel this slice goes to.
                      email_enabled:
                        type: boolean
                        description: Email this slice to `recipients`.
                      recipients:
                        type: array
                        description: This route's own recipients.
                        items:
                          type: string
                      webhook_enabled:
                        type: boolean
                        description: POST this slice to `webhook_url`.
                      webhook_url:
                        type: string
                        description: This route's endpoint.
      responses:
        '200':
          description: Typed result envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompetitorDeliveryConfig'
              example:
                email_enabled: true
                extra_recipients:
                  - camille.durand@halden.io
                slack_enabled: true
                slack_channel_id: 5a70b452-76a7-4e3c-a013-0af70ff0abdf
                webhook_enabled: true
                webhook_url: https://hooks.halden.io/clustr
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    CompetitorDeliveryConfig:
      example:
        email_enabled: true
        extra_recipients:
          - Extra recipient
        slack_enabled: true
        slack_channel_id: df6298d4-7d5e-4448-a849-7f3725627964
        webhook_enabled: true
        webhook_url: https://halden.io
      type: object
      description: >
        Per-tenant competitor-monitoring report delivery config (CLU-377).

        Mirrors internal/competitor.DeliveryConfig. Each channel is
        independently

        gated. An absent row defaults to email-on with no recipients (inert).
      properties:
        email_enabled:
          type: boolean
          description: >-
            Gates the email channel; only fires when extra_recipients is
            non-empty.
        extra_recipients:
          type: array
          items:
            type: string
          description: Email addresses that receive the competitor report summary.
        slack_enabled:
          type: boolean
          description: Gates the Slack channel post; requires slack_channel_id.
        slack_channel_id:
          type: string
          description: Slack channel the report summary is posted to.
        webhook_enabled:
          type: boolean
          description: Gates the customer webhook; requires webhook_url.
        webhook_url:
          type: string
          description: Receives the competitor_monitoring.report_ready event.
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          description: Always false.
        error:
          $ref: '#/components/schemas/ErrorInfo'
    ErrorInfo:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            What a client branches on, such as BAD_REQUEST or NOT_FOUND: one of
            the codes listed, the same on every operation. A code is added
            within a major version, never renamed.
          enum:
            - ADMIN_REQUIRED
            - ALREADY_LISTED
            - API_REQUEST_FAILED
            - ATTIO_NOT_CONNECTED
            - ATTIO_WORKSPACE_NOT_FOUND
            - AUTHORIZATION_UNAVAILABLE
            - AUTH_CONTEXT_ERROR
            - AUTH_FAILED
            - AUTH_METHOD_UNSUPPORTED
            - BAD_GATEWAY
            - BAD_REQUEST
            - BIGQUERY_ERROR
            - BODY_TOO_LARGE
            - BULK_PUSH_TOO_LARGE
            - BUYER_TITLES_UNAVAILABLE
            - CANCELLED
            - CANNOT_CHANGE_OWN_ROLE
            - CANNOT_DEACTIVATE_SELF
            - CANNOT_REMOVE_SELF
            - CLEANING_REPORT_FAILED
            - CLEANING_REPORT_UNAVAILABLE
            - CLIENT_CLOSED_REQUEST
            - COMPANY_NOT_FOUND
            - COMPANY_NOT_RESOLVED
            - COMPETITOR_EXISTS
            - COMPETITOR_READ_FAILED
            - COMPETITOR_RUN_FAILED
            - CONFLICT
            - CRM_CAPABILITY_UNSUPPORTED
            - CRM_CREDENTIAL_EXPIRED
            - CRM_DAILY_LIMIT
            - CRM_LISTS_UNSUPPORTED
            - CRM_NOT_ACTIVE
            - CRM_NOT_CONNECTED
            - CRM_RATE_LIMITED
            - CRM_RECONNECT_REQUIRED
            - CRM_ROW
            - CRM_SCHEMA_UNAVAILABLE
            - CRM_SCOPE_MISSING
            - CRM_UNAVAILABLE
            - CRM_VALUES_UNAVAILABLE
            - CRM_WRITE_DISABLED
            - CUSTOMERS_UNAVAILABLE
            - DATABASE_NOT_FOUND
            - DATASET_NOT_FOUND
            - DUPLICATE_ALREADY_RESOLVED
            - DUPLICATE_CHECK_FAILED
            - EMAIL_NOTIFIER_UNAVAILABLE
            - ENTITLEMENT_UNAVAILABLE
            - ESCALATION_EMAIL_DISABLED
            - EXPORT_FAILED
            - EXPORT_IN_FLIGHT
            - EXPORT_UNAVAILABLE
            - FAMILY_CLUSTER
            - FEATURE_NOT_ENABLED
            - FINDING_NOT_APPLICABLE
            - FIRE_FAILED
            - FORBIDDEN
            - FULLENRICH_API_ERROR
            - FULLENRICH_UNEXPECTED_ERROR
            - GATEWAY_TIMEOUT
            - HEADERS_TOO_LARGE
            - HUBSPOT_NOT_CONNECTED
            - HUBSPOT_UPSTREAM_ERROR
            - INSUFFICIENT_CREDITS
            - INSUFFICIENT_PERMISSION
            - INTEGRATION_REAUTH_REQUIRED
            - INTERNAL_ERROR
            - INVALID_BODY
            - INVALID_BOOLEAN
            - INVALID_BUCKET
            - INVALID_COMPANY_NAME
            - INVALID_CREDENTIALS
            - INVALID_CUSTOMER_RULE
            - INVALID_ENDPOINT
            - INVALID_EVENT
            - INVALID_FIELD
            - INVALID_INPUT
            - INVALID_LINKEDIN_URL
            - INVALID_MAPPING
            - INVALID_MATCHING_SETTINGS
            - INVALID_OBJECT_TYPE
            - INVALID_REQUEST
            - INVALID_SCHEDULE
            - INVALID_SETTINGS
            - INVALID_SIGNATURE
            - INVALID_TARGET_LIST
            - INVALID_TENANT_ID
            - INVALID_TOKEN
            - INVALID_URL
            - INVALID_UUID
            - INVALID_WEBSITE_URL
            - JOB_CLIENT_NOT_CONFIGURED
            - JOB_CREATION_FAILED
            - JOB_NOT_FOUND
            - KEY_NOT_REGISTERED
            - LAST_ADMIN
            - LOAD_FAILED
            - MAPPING_NOT_FOUND
            - MATCHING_SETTINGS_CONFLICT
            - MATCHING_VERSION_NOT_FOUND
            - MERGES_DISABLED
            - MERGE_UNRESOLVED
            - MERGE_UNSUPPORTED
            - METHOD_NOT_ALLOWED
            - MISSING_FIELDS
            - MISSING_HEADER
            - MISSING_JOB_ID
            - MISSING_OBJECT_ID
            - MISSING_PORTAL_ID
            - MISSING_TENANT_ID
            - MISSING_USER_ID
            - NOT_APPLIED
            - NOT_AUTO_SAFE
            - NOT_CONFIGURED
            - NOT_CONNECTED
            - NOT_DUPLICATE_CLUSTER
            - NOT_ENABLED
            - NOT_FOUND
            - NOT_RETRYABLE
            - NOT_REVERTABLE
            - NO_ACTIVE_WAREHOUSE
            - NO_BUYER_TITLES
            - NO_CONNECTION
            - NO_LINKEDIN_URL
            - NO_MATCH_KEY
            - NO_ORG
            - NO_PACKAGE
            - NO_SLOT
            - NO_TEAM_FOUND
            - NO_TOKEN
            - NO_WEBSITE
            - ORG_LIMIT_EXCEEDED
            - PANIC_RECOVERED
            - PARSE_ERROR
            - PAYLOAD_TOO_LARGE
            - PAYMENT_REQUIRED
            - PERSON_LEFT
            - PORTAL_TENANT_MISMATCH
            - PRIVATE_CHANNEL_NEEDS_INVITE
            - PROCESSING_ERROR
            - PROFILE_NOT_RESOLVED
            - PROJECT_NOT_FOUND
            - PROPERTY_INSIGHTS_FAILED
            - PROPERTY_INSIGHTS_UNAVAILABLE
            - QUEUE_UNAVAILABLE
            - RATE_LIMITED
            - RATE_LIMITER_INIT_FAILED
            - RATE_LIMIT_EXCEEDED
            - REDIRECT_REFUSED
            - REFRESH_RATE_LIMITED
            - REFRESH_UNAVAILABLE
            - REPORT_ONLY_DUPLICATE
            - REQUEST_FAILED
            - RESEARCH_NOT_STARTED
            - RESOURCE_EXHAUSTED
            - RESPONSE_READ_FAILED
            - REVERT_BATCH_UNAVAILABLE
            - REVERT_CONFLICT
            - REVERT_EXPIRED
            - ROUTE_NOT_FOUND
            - SALESFORCE_NOT_CONNECTED
            - SALESFORCE_ORG_NOT_FOUND
            - SAVE_FAILED
            - SEARCH_FAILED
            - SERVICE_NOT_FOUND
            - SERVICE_UNAVAILABLE
            - SERVICE_UNREACHABLE
            - SETUP_FAILED
            - SETUP_RATE_LIMITED
            - SLACK_REJECTED
            - SNOWFLAKE_ERROR
            - STAFF_REQUIRED
            - SUPABASE_NEEDS_POOLER
            - SYNC_IN_PROGRESS
            - SYNC_PROPERTIES_DISABLED
            - SYNC_STATUS_UNAVAILABLE
            - SYNC_UNAVAILABLE
            - TABLE_SHAPE_MISMATCH
            - TARGET_ACCOUNTS_UNAVAILABLE
            - TARGET_LIST_NOT_BINDABLE
            - TARGET_LIST_NOT_FOUND
            - TASK_CREATION_FAILED
            - TENANT_LOOKUP_FAILED
            - TENANT_MISMATCH
            - TOO_MANY_HEADERS
            - TOO_SOON
            - UNAUTHORIZED
            - UNAVAILABLE
            - UNKNOWN_ERROR
            - UNKNOWN_FEATURE
            - UNKNOWN_PORTAL
            - UNKNOWN_PROVIDER
            - UNPROCESSABLE_ENTITY
            - UNSUPPORTED_FLOW
            - UNSUPPORTED_MEDIA_TYPE
            - UNSUPPORTED_OBJECT_TYPE
            - UNSUPPORTED_PROVIDER
            - UNSUPPORTED_RESOURCE_TYPE
            - UPSTREAM_ERROR
            - UPSTREAM_UNAVAILABLE
            - URL_TOO_LONG
            - USER_NOT_AUTHORIZED
            - VALIDATION_ERROR
            - VALUES_FAILED
            - VALUES_UNAVAILABLE
            - VERIFICATION_UNAVAILABLE
            - WEBHOOK_UNAVAILABLE
        message:
          type: string
          description: The sentence a person reads.
        details:
          type: string
          description: Developer text, returned outside production only.
        request_id:
          type: string
          description: >-
            The request's id, for support. Always set, and the same as the
            X-Request-ID response header.
  responses:
    Unauthorized:
      description: Missing or invalid auth.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: Authenticated caller is not permitted for this resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: Resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalServerError:
      description: Unexpected server-side failure.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  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.