POST
/
v0
/
log

Creates a log associated to a project. Logs are LLM-call-level data that might depend on other variables.

A “explicit_types” dictionary can be passed as part of the entries. If present, any matching key inside this dictionary will override the inferred type of that particular entry.

This method returns the id of the new stored log.

Authorizations

Authorization
string
required

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

Body

project
string
required

Name of the project the stored entries will be associated to.

entries
object
required

Dictionary containing one or more key:value pairs that will be logged into the platform. Keys can have an optional version defined after a forward slash. E.g. system_msg/v1. If defined, these versions will be used when grouping results on a per-key basis. Values must be JSON serializable. If a explicit_types dictionary is present, its values will override the inferred types of the entries.