POST
/
event-ingestion
/
api
/
v2
/
events
/
interactions
curl --request POST \
  --url https://backend.nebuly.com/event-ingestion/api/v2/events/interactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "interaction": {
    "conversation_id": "<string>",
    "output": "<string>",
    "time_start": "<string>",
    "time_end": "<string>",
    "messages": [
      {}
    ],
    "end_user": "<string>",
    "rag_sources": [
      "<string>"
    ],
    "model": "<string>",
    "tags": {},
    "feature_flag": [
      "<string>"
    ]
  },
  "anonymize": true
}'

You can use this endpoint to send a user interaction in simple AI systems. This approach is suggested for non-agentic systems, where the response of the ai system is generated in a single call to the LLM, without using any external tools or resources.

Please refer to the interaction with trace endpoint for a more comprehensive way to track interactions.

For users of the european region, the correct endpoint is https://backend.eu.nebuly.com/event-ingestion/api/v2/events/interactions.

interaction
object
required

The interaction to send to the nebuly platform.

anonymize
boolean
default:"true"

Boolean flag to anonymize your data