The configuration to use for the client.
OptionalgetEnvironmentOptions?: () => Partial<ClientOptions>The function to use to get the environment options. By default, a function that
returns process.env is used.
Optionaloptions?: Partial<ClientOptions>The options to use for openapi-fetch.createOpenApiClient.
The Phoenix client as a strongly typed openapi-fetch client.
Call a DELETE endpoint
Call a GET endpoint
Call a HEAD endpoint
Call a OPTIONS endpoint
Call a PATCH endpoint
Call a POST endpoint
Call a PUT endpoint
Call a TRACE endpoint
Unregister middleware
Register middleware
import { createClient } from "@arize/phoenix-client";
const client = createClient();
const response = await client.GET("/v1/traces");
// ^ path string is strongly typed, and completion works with autocomplete
// path parameters, query parameters, and request body are also strongly typed based on the openapi spec,
// the path, and the method.
Create a Phoenix client.
The client is strongly typed and uses generated openapi types.