Skip to main content
POST
/
feedback
/
interaction
Submit Source Interaction
curl --request POST \
  --url https://apigcp.trynia.ai/v2/feedback/interaction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chunk_id": "<string>",
  "action": "expanded",
  "session_id": "<string>",
  "message_id": "<string>",
  "content_hash": "<string>",
  "retrieval_log_id": "<string>",
  "position_shown": 123,
  "dwell_time_ms": 123
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
chunk_id
string
required
action
enum<string>
required
Available options:
expanded,
copied,
navigated,
collapsed,
dwelled
session_id
string | null
message_id
string | null
content_hash
string | null
retrieval_log_id
string | null
position_shown
integer | null
dwell_time_ms
integer | null

Response

Successful Response