Workspace

workspace.created

A new workspace was created.

When it fires

Sent right after CreateWorkspaceService succeeds, for example when an owner clicks "Create workspace" or completes onboarding.

Payload

ts
{
    type: 'workspace.created',
    data: {
        workspace: {
            id: string         // UUID
            name: string
            slug: string
            plan: string       // 'free' | 'starter' | 'business' | 'enterprise'
            createdAt: string  // ISO timestamp
        }
    }
}

Example

json
{
    "id": "019e7d98-6b82-7305-ac80-478fa6557995",
    "type": "workspace.created",
    "apiVersion": "2026-05-31",
    "createdAt": "2026-05-31T10:33:20.123Z",
    "workspaceId": "0192a1b2-c3d4-7000-8000-000000000001",
    "actor": {
        "userId": "0192a1b2-c3d4-7000-8000-000000000002",
        "name": "Jane Doe",
        "email": "jane@example.com"
    },
    "data": {
        "workspace": {
            "id": "0192a1b2-c3d4-7000-8000-000000000001",
            "name": "Acme",
            "slug": "acme",
            "plan": "free",
            "createdAt": "2026-05-31T10:33:20.123Z"
        }
    }
}