ListWorkspacesResponse - TypeScript SDK

ListWorkspacesResponse type definition

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

Example Usage

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

Fields

FieldTypeRequiredDescriptionExample
resultmodels.ListWorkspacesResponse✔️N/A{"data": [{"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"}
],
“total_count”: 1<br />}