For the complete documentation index, see llms.txt. This page is also available as Markdown.

API SDKs

Install the official Go, Python, and TypeScript SDKs to query data and manage groundcover resources.

The groundcover API SDKs provide typed clients for querying observability data and managing resources such as dashboards, monitors, destinations, and notification routes. These are API clients; use the OpenTelemetry integration to instrument applications.

Authentication

Create an API key for a service account with the permissions needed for your operation. An ingestion key cannot be used to manage resources or query data.

For operations marked Admin required, the service account must have Admin permissions. Check the operation's API example for its required role and any additional authentication requirements.

The SDKs read these environment variables:

export GC_API_KEY='<YOUR_API_KEY>'
export GC_BACKEND_ID='<YOUR_BACKEND_ID>'
export GC_BASE_URL='https://api.groundcover.com'

Find the Backend ID under Settings → Access → API Keys. For a self-hosted deployment, set GC_BASE_URL to your environment's API URL and use an API key issued by that environment. Keep API keys in server-side code or a secret store, not in browser applications.

Go

Install the Go SDK:

go get github.com/groundcover-com/groundcover-sdk-go

Initialize a client using the environment variables above:

package main

import (
    "log"
    groundcover "github.com/groundcover-com/groundcover-sdk-go"
)

func main() {
    client, err := groundcover.NewClient()
    if err != nil {
        log.Fatal(err)
    }
    _ = client // Use client.Dashboards, client.Metrics, and other services.
}

See the Go API reference and runnable examples.

Python

Install the Python SDK from GitHub into your project:

Create a client and call a typed API function:

Typed operations expose synchronous and asynchronous methods. See the Python README for configuration and examples.

TypeScript / JavaScript

Install @groundcover/api-client:

Run this example in a server-side JavaScript or TypeScript environment:

See the TypeScript SDK repository for configuration and typed operations.

REST and SDK coverage

The SDKs cover a selected set of API operations. An endpoint in API Examples may not yet have a typed method in your installed SDK. Use the documented HTTP endpoint when needed, and check the SDK's generated operations before assuming a method exists.

Workflow methods have been removed from the Go SDK. For notification automation, use Destinations and Notification Routes.

Last updated