Install
Authenticate
Keep the API root and credential in environment variables:List projects
The runnable quickstart constructs the client and begins with a real read againstGET /projects:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Install and authenticate the Go SDK, then list projects.
go get bisibility.com/sdk-go
export BISIBILITY_API_KEY="your-api-key"
export BISIBILITY_BASE_URL="https://your-host.example/api/v1"
GET /projects:
apiKey, err := requiredEnv("BISIBILITY_API_KEY")
if err != nil {
return err
}
baseURL, err := requiredEnv("BISIBILITY_BASE_URL")
if err != nil {
return err
}
client, err := bisibility.NewClient(
bisibility.WithAPIKey(apiKey),
bisibility.WithBaseURL(baseURL),
)
if err != nil {
return err
}
ctx := context.Background()
var keywordID string
defer func() {
if keywordID == "" {
return
}
fmt.Printf("Deleting keyword %s\n", keywordID)
if _, deleteErr := client.DeleteKeyword(ctx, keywordID); deleteErr != nil && err == nil {
err = deleteErr
}
}()
fmt.Println("Listing projects")
projects, err := client.ListProjects(ctx)
if err != nil {
return err
}