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

# Select Salesforce objects for real-time sync (CDC)

> Selects Account, Contact and/or Opportunity (all three when `objects` is left out) for Change Data Capture in the tenant's Salesforce org. This changes the org; it does not turn real-time sync on in Statisfy (that is `cdc_enabled`, set with PATCH /config). Objects Salesforce refuses (for example at its CDC object limit) come back in `failed`. A 409 without the native Salesforce connection, or when the org refuses the read of its CDC settings (a permission).



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/salesforce/cdc/objects
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/salesforce/cdc/objects:
    post:
      tags:
        - integrations
      summary: Select Salesforce objects for real-time sync (CDC)
      description: >-
        Selects Account, Contact and/or Opportunity (all three when `objects` is
        left out) for Change Data Capture in the tenant's Salesforce org. This
        changes the org; it does not turn real-time sync on in Statisfy (that is
        `cdc_enabled`, set with PATCH /config). Objects Salesforce refuses (for
        example at its CDC object limit) come back in `failed`. A 409 without
        the native Salesforce connection, or when the org refuses the read of
        its CDC settings (a permission).
      operationId: integrations_salesforce_enable_cdc_objects
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                objects:
                  description: 'Account, Contact and/or Opportunity. Left out: all three'
                  items:
                    type: string
                  title: Objects
                  type: array
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SalesforceCdcObjects'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SalesforceCdcObjects:
      properties:
        already_enabled:
          description: Objects that were selected already
          items:
            type: string
          title: Already Enabled
          type: array
        enabled:
          description: Objects selected for CDC by this call
          items:
            type: string
          title: Enabled
          type: array
        failed:
          description: Objects Salesforce refused, with its reason
          items:
            $ref: '#/components/schemas/SalesforceCdcFailure'
          title: Failed
          type: array
      required:
        - enabled
        - already_enabled
        - failed
      title: SalesforceCdcObjects
      type: object
    SalesforceCdcFailure:
      properties:
        error:
          title: Error
          type: string
        object:
          title: Object
          type: string
      required:
        - object
        - error
      title: SalesforceCdcFailure
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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