Langfuse icon

Langfuse

Log LLM traces, spans, generations, and scores to Langfuse, or query traces, prompts, datasets, sessions, and more via the Public API.

Public API → Custom Request

AI-generated

Summary

Send an arbitrary HTTP request to the Langfuse Public API at a specified relative path using a chosen HTTP method, optionally including query parameters and a JSON body for applicable methods.

Inputs

  • Path (required) — Specifies the relative endpoint path on the Langfuse Public API to which the custom request will be sent (e.g., "/v2/prompts").
  • Method (required) — Defines the HTTP method to use for the request, such as GET, POST, PUT, PATCH, or DELETE.
  • Query JSON — JSON object string representing query parameters to append to the URL. Effective only if advanced fields are shown (Show Advanced Fields is true).
  • Body JSON — JSON string defining the request body. Ignored for GET and HEAD requests, applicable for methods that support body payloads like POST and PUT. Visible when Show Advanced Fields is enabled.

Output shape

a parsed JSON response object from the Langfuse Public API corresponding to the custom request, including any data returned by the endpoint called

The node returns the raw response body parsed as JSON, preserving HTTP status and error details for programmatic handling. Query JSON and Body JSON fields are only applicable when Show Advanced Fields is enabled. The operation does not perform automatic pagination; thus, the user must handle pagination if the endpoint supports it.

Links

Discussion