Langfuse JS/TS SDKs
    Preparing search index...

    Interface GetMediaUploadUrlRequest

    interface GetMediaUploadUrlRequest {
        contentLength: number;
        contentType: MediaContentType;
        field?: string;
        observationId?: string;
        sha256Hash: string;
        traceId?: string;
    }
    Index

    Properties

    contentLength: number

    The size of the media record in bytes

    contentType: MediaContentType
    field?: string

    The trace / observation field the media record is associated with. This can be one of input, output, metadata. Required if traceId is provided, ignored otherwise.

    observationId?: string

    The observation ID associated with the media record. If provided, traceId must be provided as well. If the media record is associated directly with a trace, this will be null.

    sha256Hash: string

    The SHA-256 hash of the media record

    traceId?: string

    The trace ID associated with the media record. If null, the media record is not associated with a trace, e.g. when uploading media for dataset items.