# Send feedback to Bagel

Receive a batch of original feedback items from an external integration and store them as original items in Bagel.  Each item must have an originId, linkedAccountId, and createdAt. The accountId is taken from the API token. The origin system is automatically set to 'api'.

Endpoint: POST /sync/feedback
Version: 1.0.0
Security: ApiToken

## Request fields (application/json):

  - `feedbackName` (string, required)
    Name identifier for the feedback type
    Example: "gong_feature_request"

  - `feedbackCategory` (string, required)
    The feedback category
    Enum: "call", "ticket", "survey", "chat", "lostReason", "note", "request", "meetingInterview", "other"

  - `originSystem` (string, required)
    The origin system where the feedback items come from
    Example: "gong"

  - `records` (array, required)
    Example: [{"originId":"gong-call-123","linkedAccountId":"sf-account-456","createdAt":"2024-01-15T10:30:00.000Z","submitterEmail":"sales@company.com","title":"Feature request from Q4 review","description":"Customer wants better integration with their CRM","priority":"high"},{"originId":"gong-call-124","linkedAccountId":"sf-account-789","createdAt":"2024-01-16T14:00:00.000Z","title":"API enhancement request","description":"Customer needs webhook support"}]

  - `records.originId` (string, required)
    The ID of the original item in the system of origin (e.g., Gong call ID, Survey response ID)
    Example: "gong-call-123"

  - `records.linkedAccountId` (string, required)
    CRM ID of the relevant customer to this evidence/request
    Example: "sf-account-456"

  - `records.createdAt` (string, required)
    The date the evidence was created/submitted (e.g., Call date, survey response date)
    Example: "2024-01-15T10:30:00.000Z"

  - `records.submitterEmail` (string)
    If applicable, the email of the internal employee who submitted this evidence
    Example: "john.doe@company.com"

  - `records.title` (string)
    Optional title for the feedback item
    Example: "Feature request from customer call"

  - `records.description` (string)
    Optional description of the feedback
    Example: "Customer requested advanced reporting capabilities during the sales call"

  - `records.productComponent` (string)
    Optional product component related to this feedback
    Example: "reporting-module"

  - `records.priority` (string)
    Optional priority level
    Example: "high"

## Response 200 fields (application/json):

  - `receivedCount` (integer)

  - `filteredCount` (integer)

  - `insertedCount` (integer)

  - `skippedCount` (integer)

  - `errors` (array)


## Response 400 fields

## Response 401 fields

## Response 500 fields
