POST
/
session
/
{session_id}
/
event
Authorization
Path
Body
curl --request POST \
  --url https://api.honeyhive.ai/session/{session_id}/event \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "children": [
    {}
  ],
  "config": {},
  "duration": 123,
  "end_time": 123,
  "error": "<string>",
  "event_id": "<string>",
  "event_name": "<string>",
  "event_type": "<string>",
  "feedback": {},
  "inputs": {},
  "metadata": {},
  "metrics": {},
  "outputs": {},
  "project": "<string>",
  "session_id": "<string>",
  "source": "<string>",
  "start_time": 123,
  "user_properties": {}
}'
{
  "event_id": "<string>",
  "success": true
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

session_id
string
required

Body

application/json
children
object[]

Child events

config
object

The configuration of LLM, Tool or other for the event

duration
number

Duration of the event

end_time
number

End time of the event

error
string | null

Error from the event

event_id
string

The ID of the event

event_name
string

The name for the event

event_type
string

The type of the event

feedback
object

Feedback for the event

inputs
object

Inputs to the event

metadata
object

Metadata of the event

metrics
object

Metrics for the event

outputs
object

Outputs of the event

project
string

The project that the event belongs to

session_id
string | null

The ID of the session

source
string

Source of the event

start_time
number

Start time of the event

user_properties
object

User properties of the event

Response

200 - application/json
event_id
string

The ID of the event

success
boolean

Indicates whether recording the event was successful