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
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • CreateWorkspaceResponse
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • Python SDK
    • Overview
  • Go SDK
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Example Usage
  • Fields
TypeScript SDKAPI ReferenceModels

CreateWorkspaceResponse - TypeScript SDK

CreateWorkspaceResponse type definition
Was this page helpful?
Previous

OAuth - TypeScript SDK

OAuth method reference
Next
Built with

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

Example Usage

1import { CreateWorkspaceResponse } from "@openrouter/sdk/models";
2
3let value: CreateWorkspaceResponse = {
4 data: {
5 createdAt: "2025-08-24T10:30:00Z",
6 createdBy: "user_abc123",
7 defaultImageModel: "openai/dall-e-3",
8 defaultProviderSort: "price",
9 defaultTextModel: "openai/gpt-4o",
10 description: "Production environment workspace",
11 id: "550e8400-e29b-41d4-a716-446655440000",
12 ioLoggingApiKeyIds: null,
13 ioLoggingSamplingRate: 1,
14 isDataDiscountLoggingEnabled: true,
15 isObservabilityBroadcastEnabled: false,
16 isObservabilityIoLoggingEnabled: false,
17 name: "Production",
18 slug: "production",
19 updatedAt: null,
20 },
21};

Fields

FieldTypeRequiredDescriptionExample
datamodels.Workspace✔️N/A{"created_at": "2025-08-24T10:30:00Z","created_by": "user_abc123","default_image_model": "openai/dall-e-3","default_provider_sort": "price","default_text_model": "openai/gpt-4o","description": "Production environment workspace","id": "550e8400-e29b-41d4-a716-446655440000","io_logging_api_key_ids": null,"io_logging_sampling_rate": 1,"is_data_discount_logging_enabled": true,"is_observability_broadcast_enabled": false,"is_observability_io_logging_enabled": false,"name": "Production","slug": "production","updated_at": "2025-08-24T15:45:00Z"}