Added

Account Response Includes Observability Workspace Reference

The account API response now includes a reference to the account's observability workspace, enabling clients to detect when observability features are available.

What's New

  • Account response includes observabilityWorkspaceId field (nullable)
  • When present, indicates the account has an observability workspace provisioned
  • Enables clients to conditionally show observability-related UI features

Updated Endpoint

  • GET /api/v1/accounts/{accountId}

Response Format

{
  "id": "acc_123",
  "name": "My Account",
  "organizationSlug": "my-org",
  "accountSlug": "my-account",
  "logoUrl": "https://...",
  "primaryColor": "#6450f9",
  "observabilityWorkspaceId": "ws_456"
}

The observabilityWorkspaceId field will be null if no observability workspace has been provisioned for the account.

Getting Started

Check for the presence of observabilityWorkspaceId in the account response to determine if observability features should be displayed:

const account = await client.accounts.get({ accountId });
const hasObservability = account.observabilityWorkspaceId !== null;