GetWorkspaceResponse - TypeScript SDK

GetWorkspaceResponse type definition

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

Example Usage

1import { GetWorkspaceResponse } from "@openrouter/sdk/models";
2
3let value: GetWorkspaceResponse = {
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: "2025-08-24T15:45:00Z",
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"}