Reference
Log Request
POST
/
log-request
Log a request to the system. This is useful for logging requests from custom LLM providers.
Headers
X-API-KEY
string
requiredAPI key to authorize the operation.
Body
application/json
provider
string
requiredmodel
string
requiredinput
object
requiredoutput
object
requiredrequest_start_time
string
requiredrequest_end_time
string
requiredparameters
object
tags
string[]
metadata
object
prompt_name
string | null
prompt_version_number
integer | null
Required range:
x > 0
prompt_input_variables
object
input_tokens
integer
default: 0Required range:
x > 0
output_tokens
integer
default: 0Required range:
x > 0
price
number
default: 0Required range:
x > 0
function_name
string
default: score
integer
default: 0Required range:
0 < x < 100
Response
201 - application/json
id
integer
requiredprompt_version
object
requiredWas this page helpful?