Bagel API docs
Bagel Api (1.0.0)
Download OpenAPI description
Overview
Languages
Servers
https://api.bagel.ai
Request
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'.
Security
ApiToken
The feedback category
Enum"call""ticket""survey""chat""lostReason""note""request""meetingInterview""other"
Example: "call"
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"}]
The ID of the original item in the system of origin (e.g., Gong call ID, Survey response ID)
Example: "gong-call-123"
CRM ID of the relevant customer to this evidence/request
Example: "sf-account-456"
The date the evidence was created/submitted (e.g., Call date, survey response date)
Example: "2024-01-15T10:30:00.000Z"
If applicable, the email of the internal employee who submitted this evidence
Example: "john.doe@company.com"
Optional title for the feedback item
Example: "Feature request from customer call"
Optional description of the feedback
Example: "Customer requested advanced reporting capabilities during the sales call"
Optional product component related to this feedback
Example: "reporting-module"
- https://api.bagel.ai/sync/feedback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.bagel.ai/sync/feedback \
-H 'Content-Type: application/json' \
-H 'authorization: YOUR_API_KEY_HERE' \
-d '{
"feedbackName": "gong_feature_request",
"feedbackCategory": "call",
"originSystem": "gong",
"records": [
{
"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"
}
]
}'Response
application/json
{ "receivedCount": 2, "filteredCount": 2, "insertedCount": 2, "skippedCount": 0, "errors": [] }