Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { WorkspaceMember } from "@openrouter/sdk/models";

let value: WorkspaceMember = {
  createdAt: "2025-08-24T10:30:00Z",
  id: "660e8400-e29b-41d4-a716-446655440000",
  role: "member",
  userId: "user_abc123",
  workspaceId: "550e8400-e29b-41d4-a716-446655440000",
};

Fields

FieldTypeRequiredDescriptionExample
createdAtstring:heavy_check_mark:ISO 8601 timestamp of when the membership was created2025-08-24T10:30:00Z
idstring:heavy_check_mark:Unique identifier for the workspace membership660e8400-e29b-41d4-a716-446655440000
rolemodels.WorkspaceMemberRole:heavy_check_mark:Role of the member in the workspacemember
userIdstring:heavy_check_mark:Clerk user ID of the memberuser_abc123
workspaceIdstring:heavy_check_mark:ID of the workspace550e8400-e29b-41d4-a716-446655440000