Skip to main content
POST
/
v1
/
public
/
retrievers
/
{public_name}
/
interactions
/
batch
Track Interaction Batch
curl --request POST \
  --url https://api.mixpeek.com/v1/public/retrievers/{public_name}/interactions/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Public-API-Key: <x-public-api-key>' \
  --data '
{
  "interactions": [
    {
      "document_id": "<string>",
      "interaction_type": [
        "view"
      ],
      "position": 1,
      "execution_id": "exec_abc123xyz",
      "query_snapshot": {
        "text": "wireless headphones"
      },
      "document_score": 0.95,
      "result_set_size": 10,
      "session_id": "sess_abc123",
      "metadata": {}
    }
  ]
}
'
{
  "status": 123,
  "error": {
    "message": "<string>",
    "type": "<string>",
    "details": {}
  },
  "success": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Session-ID
string | null
X-Public-API-Key
string
required

Path Parameters

public_name
string
required

Public name of the published retriever

Body

application/json

Request to track multiple interactions in batch.

interactions
PublicInteractionRequest · object[]
required

List of interactions to track (max 100 per batch)

Required array length: 1 - 100 elements

Response

Successful Response