For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
  • Go SDK
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • Workspace
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Fields
Go SDKAPI ReferenceModels

Workspace - Go SDK

Workspace type definition
Was this page helpful?
Previous

OAuth - Go SDK

OAuth method reference
Next
Built with

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
CreatedAtstring✔️ISO 8601 timestamp of when the workspace was created2025-08-24T10:30:00Z
CreatedBy*string✔️User ID of the workspace creatoruser_abc123
DefaultImageModel*string✔️Default image model for this workspaceopenai/dall-e-3
DefaultProviderSort*string✔️Default provider sort preference (price, throughput, latency, exacto)price
DefaultTextModel*string✔️Default text model for this workspaceopenai/gpt-4o
Description*string✔️Description of the workspaceProduction environment workspace
IDstring✔️Unique identifier for the workspace550e8400-e29b-41d4-a716-446655440000
IoLoggingAPIKeyIds[]int64✔️Optional array of API key IDs to filter I/O logging. Null means all keys are logged.<nil>
IoLoggingSamplingRatefloat64✔️Sampling rate for I/O logging (0.0001-1). 1 means 100% of requests are logged.1
IsDataDiscountLoggingEnabledbool✔️Whether data discount logging is enabled for this workspacetrue
IsObservabilityBroadcastEnabledbool✔️Whether broadcast is enabled for this workspacefalse
IsObservabilityIoLoggingEnabledbool✔️Whether private logging is enabled for this workspacefalse
Namestring✔️Name of the workspaceProduction
Slugstring✔️URL-friendly slug for the workspaceproduction
UpdatedAt*string✔️ISO 8601 timestamp of when the workspace was last updated2025-08-24T15:45:00Z