Glean Client API (0.9.0)

Introduction

These are the public APIs to enable implementing a custom client interface to the Glean system.

Usage guidelines

This API is evolving fast. Glean will provide advance notice of any planned backwards incompatible changes along with a 6-month sunset period for anything that requires developers to adopt the new versions.

SDK

Client bindings for the API can be generated for most popular languages (Python, Java, NodeJS, etc). To do so:

Download the OpenAPI specification for the API, by clicking on one of the following options:

  1. Download JSON specification
  2. Download YAML specification

Use openapi-generator-cli to generate bindings for your language of choice, for example:

$ npx @openapitools/openapi-generator-cli@latest generate -i client_api.yaml -g go

To see available languages:

$ npx @openapitools/openapi-generator-cli@latest list

Determine the host you need to connect to. This will be the URL of the backend for your Glean deployment, for example, customer-be.glean.com