# Workspaces ## List accessible workspaces `client.Workspaces.List(ctx) (*WorkspaceListResponse, error)` **get** `/workspaces` Returns the workspaces available to the authenticated public API key, including each workspace's public ID, name, creation timestamp, and caller role. ### Returns - `type WorkspaceListResponse struct{…}` - `Workspaces []WorkspaceListResponseWorkspace` - `CreatedAt int64` - `Name string` Workspace name - `Role string` Workspace role - `WorkspaceID string` Workspace identifier ### Example ```go package main import ( "context" "fmt" "github.com/florafauna-ai/flora-go" "github.com/florafauna-ai/flora-go/option" ) func main() { client := flora.NewClient( option.WithAPIKey("My API Key"), ) workspaces, err := client.Workspaces.List(context.TODO()) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", workspaces.Workspaces) } ``` #### Response ```json { "workspaces": [ { "created_at": 0, "name": "Brand Studio", "role": "role", "workspace_id": "ws_abc123" } ] } ```