Logging
Log a trace
POST
/
session
/
{session_id}
/
traces
Authorization
Path
Body
curl --request POST \
--url https://api.honeyhive.ai/session/{session_id}/traces \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"logs": [
{
"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": {}
}
]
}'
{
"session_id": "<string>",
"success": true
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
session_id
string
requiredBody
application/json
logs
object[]
The trace logs for the session
Response
200 - application/json
session_id
string
The ID of the session
success
boolean
Indicates whether the request was successful
curl --request POST \
--url https://api.honeyhive.ai/session/{session_id}/traces \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"logs": [
{
"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": {}
}
]
}'
{
"session_id": "<string>",
"success": true
}