POST
/
log-request

Log a request to the system. This is useful for logging requests from custom LLM providers.

Headers

X-API-KEY
string
required

API key to authorize the operation.

Body

application/json
provider
string
required
model
string
required
input
object
required
output
object
required
request_start_time
string
required
request_end_time
string
required
parameters
object
tags
string[]
metadata
object
prompt_name
string | null
prompt_version_number
integer | null
prompt_input_variables
object
input_tokens
integer
default: 0
output_tokens
integer
default: 0
price
number
default: 0
function_name
string
default:
score
integer
default: 0

Response

201 - application/json
id
integer
required
prompt_version
object
required