Skip to main content
POST
/
v1
/
events
Create a new event
curl --request POST \
  --url https://api.dp1.us.honeyhive.ai/v1/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_type": "model",
  "inputs": {},
  "project_id": "<string>",
  "source": "<string>",
  "event_name": "<string>",
  "event_id": "<string>",
  "session_id": "<string>",
  "parent_id": "<string>",
  "children_ids": [
    "<string>"
  ],
  "config": {},
  "outputs": {},
  "error": "<string>",
  "start_time": 123,
  "end_time": 123,
  "duration": 123,
  "metadata": {},
  "feedback": {},
  "metrics": {},
  "user_properties": {}
}
'
{
  "event_id": "7f22137a-6911-4ed3-bc36-110f1dde6b66",
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body for POST /v1/events (bare event object)

event_type
enum<string>
required

Type of event (model, tool, chain, or session)

Available options:
model,
tool,
chain,
session
inputs
object
required

Input data for the event

project_id
string

Project ID

source
string

Source of the event (e.g., sdk-python)

event_name
string

Name of the event

event_id
string

Unique event identifier

session_id
string

Session this event belongs to

parent_id
string

Parent event ID in the trace hierarchy

children_ids
string[]

Child event IDs in the trace hierarchy

config
object

Configuration used for this event

outputs
object

Output data from the event

error
string | null

Error message if the event failed

start_time
number

Event start time as Unix milliseconds

end_time
number

Event end time as Unix milliseconds

duration
number

Event duration in milliseconds

metadata
object

Arbitrary metadata for the event

feedback
object

Feedback data associated with the event

metrics
object

Metric values computed for the event

user_properties
object

User properties associated with the event

Response

Event created successfully

Response after creating an event

success
boolean
required
event_id
string
required