Events
Create a new model event
Events
Create a new model event
Please refer to our instrumentation guide for detailed information
POST
/
events
/
model
Authorization
string
*
Bearer
Authorization
Required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
object
*
model_event
object
model_event
object
Add Example Value
project
string
*
project
Required
string
Project associated with the event
model
string
*
model
Required
string
Model name
provider
string
*
provider
Required
string
Model provider
messages
array
*
messages
Required
array
Messages passed to the model
response
object
*
response
Required
object
Final output JSON of the event
duration
number
*
duration
Required
number
How long the event took in milliseconds
usage
object
*
usage
Required
object
Usage statistics of the model
cost
number
cost
number
Cost of the model completion
error
string
error
string
Any error description if event failed
source
string
source
string
Source of the event - production, staging, etc
event_name
string
event_name
string
Name of the event
hyperparameters
object
hyperparameters
object
Hyperparameters used for the model
template
array
template
array
Template used for the model
template_inputs
object
template_inputs
object
Inputs for the template
tools
array
tools
array
Tools used for the model
tool_choice
string
tool_choice
string
Tool choice for the model
response_format
object
response_format
object
Response format for the model
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
model_event
object
Response
200 - application/json
event_id
string
success
boolean