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

# Preview Salesforce Chatter

> The Chatter posts the settings would sync: up to `limit` samples (author and an excerpt of the body) and a count, capped at 500 (`count_at_cap`). Needs integrations:write: the posts are Salesforce data. Calls Salesforce. A preview that Salesforce refuses or cannot answer, for any reason (an expired session or a used-up API limit included), answers is_valid false with a fixed message: Salesforce's reason is not passed on. The object list is a 502 when Salesforce does not answer, and the fields of an object it does not describe are a 404. A 500 on an unexpected failure.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/salesforce/preview/chatter
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/preview/chatter:
    post:
      tags:
        - integrations
      summary: Preview Salesforce Chatter
      description: >-
        The Chatter posts the settings would sync: up to `limit` samples (author
        and an excerpt of the body) and a count, capped at 500 (`count_at_cap`).
        Needs integrations:write: the posts are Salesforce data. Calls
        Salesforce. A preview that Salesforce refuses or cannot answer, for any
        reason (an expired session or a used-up API limit included), answers
        is_valid false with a fixed message: Salesforce's reason is not passed
        on. The object list is a 502 when Salesforce does not answer, and the
        fields of an object it does not describe are a 404. A 500 on an
        unexpected failure.
      operationId: integrations_salesforce_preview_chatter
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                excluded_feed_types:
                  items:
                    type: string
                  title: Excluded Feed Types
                  type: array
                last_n_days:
                  default: 3
                  maximum: 365
                  minimum: 1
                  title: Last N Days
                  type: integer
                limit:
                  default: 5
                  maximum: 20
                  minimum: 1
                  title: Limit
                  type: integer
                parent_filter_string:
                  anyOf:
                    - type: string
                    - type: 'null'
                  default: null
                  description: >-
                    Optional SOQL WHERE clause on the parent (passed verbatim if
                    set).
                  title: Parent Filter String
                parent_types:
                  default:
                    - Account
                  items:
                    enum:
                      - Account
                      - Opportunity
                    type: string
                  title: Parent Types
                  type: array
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SalesforceChatterPreview'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SalesforceChatterPreview:
      description: >-
        The Chatter posts the settings would sync: a count (capped) and a few
        samples.
      properties:
        count_at_cap:
          default: false
          title: Count At Cap
          type: boolean
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        is_valid:
          title: Is Valid
          type: boolean
        samples:
          items:
            $ref: '#/components/schemas/ChatterPreviewSample'
          title: Samples
          type: array
        total_count:
          default: 0
          title: Total Count
          type: integer
      required:
        - is_valid
      title: SalesforceChatterPreview
      type: object
    ChatterPreviewSample:
      description: One FeedItem returned from the Chatter preview, trimmed for UI display.
      properties:
        author_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Author Name
        body_excerpt:
          default: ''
          title: Body Excerpt
          type: string
        created_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Created Date
        feed_item_type:
          title: Feed Item Type
          type: string
        id:
          title: Id
          type: string
        parent_id:
          title: Parent Id
          type: string
        parent_name:
          title: Parent Name
          type: string
        parent_type:
          title: Parent Type
          type: string
      required:
        - id
        - parent_id
        - parent_name
        - parent_type
        - feed_item_type
      title: ChatterPreviewSample
      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.