Skip to main content
POST
/
ingest
Submit Raw Customer Data for Processing
curl --request POST \
  --url https://mcp.closedloop.sh/ingest \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Multiple users mentioned wanting a dark mode toggle in the settings panel during recent calls.",
  "title": "Users want dark mode toggle",
  "source_url": "https://gong.io/calls/abc123",
  "source_id": "call_abc123",
  "timestamp": "2025-01-27T10:30:00Z",
  "customer_id": "customer_123",
  "reporter_name": "John Smith",
  "reporter_email": "john@example.com",
  "language": "en",
  "metadata": {
    "call_duration": 1800,
    "participants": 3
  },
  "tags": [
    "ui",
    "settings",
    "accessibility"
  ]
}'
{
  "success": true,
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "title": "Users want dark mode",
    "created_at": "2025-01-27T10:30:00Z"
  }
}

Authorizations

Authorization
string
header
required

API key for authentication (format: Bearer YOUR_API_KEY)

Body

application/json
content
string
required

Feedback content (10-50,000 characters)

Required string length: 10 - 50000
Example:

"Multiple users mentioned wanting a dark mode toggle in the settings panel during recent calls."

title
string

Feedback title (max 250 characters)

Maximum length: 250
Example:

"Users want dark mode toggle"

source_url
string<uri>

URL to original source (max 1000 characters)

Maximum length: 1000
Example:

"https://gong.io/calls/abc123"

source_id
string

Source identifier (1-50 characters)

Required string length: 1 - 50
Example:

"call_abc123"

timestamp
string<date-time>

When the feedback was originally captured (ISO 8601 format)

Example:

"2025-01-27T10:30:00Z"

customer_id
string

Customer identifier (max 50 characters)

Maximum length: 50
Example:

"customer_123"

reporter_name
string

Name of person who provided feedback (max 100 characters)

Maximum length: 100
Example:

"John Smith"

reporter_email
string<email>

Email of person who provided feedback (max 255 characters)

Maximum length: 255
Example:

"john@example.com"

language
string

Language code (2-character ISO 639-1)

Example:

"en"

metadata
object

Additional metadata

Example:
{ "call_duration": 1800, "participants": 3 }
tags
string[]

Feedback tags (max 20 tags, 100 characters each)

Maximum length: 20
Example:
["ui", "settings", "accessibility"]

Response

Feedback submitted successfully

success
boolean
Example:

true

data
object