OptionalcommentOptionalconfigReference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated.
OptionaldatasetOptionaldataThe data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric.
OptionalenvironmentThe environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
OptionalidOptionalmetadataOptionalobservationOptionalqueueThe annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
OptionalsessionOptionalsourceThe source of the score. Defaults to API. Set to ANNOTATION to prefill scores (e.g. from an LLM) for a human reviewer to verify in an annotation queue. When source is ANNOTATION, a configId is required unless dataType is CORRECTION. EVAL is reserved for internal evaluator outputs and is not accepted on this endpoint.
OptionaltraceThe value of the score. Must be passed as string for categorical and text scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false). Text score values must be between 1 and 500 characters.
Example
Example
Example
Example
Example
Example
Example
Example
Example