Skip to main content

Installation

This package is currently pre-release. Add the module to your project:
The module root contains no Go code; all packages live under arize/. Import the public arize package and any per-subclient packages you need:

Configuration

Authenticate using API keys obtained from the Arize Platform. The API key is required for all operations and can be provided via Config or the ARIZE_API_KEY environment variable. The API host is also configurable via Config.APIHost or the ARIZE_API_HOST environment variable. Refer to the API Hosts and Regions documentation for base URL configuration, which defaults to the global environment.

Regions

Use Config.Region to point the client at a specific Arize deployment region. Setting Region overrides APIHost, OTLPHost, FlightHost, and FlightPort. Region is mutually exclusive with SingleHost/SinglePort and BaseDomain.

Error Handling

The SDK returns typed errors for non-2xx HTTP responses. Compare against typed errors with errors.As and against sentinel errors with errors.Is.
Available typed errors (re-exported from the public arize package):
  • arize.APIError
  • arize.BadRequestError
  • arize.UnauthorizedError
  • arize.ForbiddenError
  • arize.NotFoundError
  • arize.ConflictError
  • arize.UnprocessableEntityError
  • arize.RateLimitError
  • arize.ServerError
  • arize.ResourceNotFoundError
  • arize.AmbiguousNameError
Sentinel errors:
  • arize.ErrMissingAPIKey
  • arize.ErrMultipleEndpointOverrides

Subclients

The Client exposes typed subclients as exported fields. Each subclient lives in its own package and is documented on its own page:

Pre-Release API Warnings

Pre-release APIs (ALPHA and BETA) are actively evolving based on user feedback. The SDK emits a one-time warning via the standard library’s log/slog package the first time you call a pre-release endpoint:
Subsequent calls to the same endpoint do not re-emit the warning.
For detailed information about API version stages, stability guarantees, and recommendations, see API Version Stages in the REST API reference.