Track Interaction Batch
Public Retriever API
Track Interaction Batch
Track multiple interactions in a single request (batching).
More efficient than sending individual interaction requests. Use this for batching viewport visibility, bulk actions, etc.
Authentication:
- API key is OPTIONAL (same as execute endpoint)
- Password NOT required (tracking should work even without auth)
Recommended Headers:
X-Session-ID: Applied to all interactions in the batch
Limits:
- Maximum 100 interactions per batch
Example:
curl -X POST "https://api.mixpeek.com/v1/public/retrievers/video-search/interactions/batch" \
-H "X-Session-ID: sess_xyz..." \
-H "Content-Type: application/json" \
-d '{
"interactions": [
{
"document_id": "doc_123",
"interaction_type": ["VIEW"],
"position": 0,
"execution_id": "exec_abc"
},
{
"document_id": "doc_456",
"interaction_type": ["VIEW"],
"position": 1,
"execution_id": "exec_abc"
}
]
}'
POST
Track Interaction Batch
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Public name of the published retriever
Body
application/json
Request to track multiple interactions in batch.
List of interactions to track (max 100 per batch)
Required array length:
1 - 100 elementsResponse
Successful Response

