---
title: "Get the current user and workspace"
method: GET
path: "/api/v1/me"
tags: ["me"]
---

# Get the current user and workspace

`GET /api/v1/me`

## Request

- Base URL: `https://api.cadencz.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cadencz.com/api/v1/me`
- Auth: HTTP bearer

Validates the Supabase access token, creates the Phase 0 user/workspace record on first sign-in, and returns the active workspace context.

## Response `200`

Successful Response

- CurrentUserResponse
  - `user` CurrentUserProfile, required
    - `id` string, required
    - `email` string, required
    - `name` string, required
    - `avatarUrl` string, nullable, required
    - `timezone` string, required
    - `isAdmin` boolean
    - `createdAt` string, nullable
  - `workspace` CurrentWorkspaceProfile, required
    - `id` string, required
    - `ownerId` string, required
    - `name` string, required
    - `handle` string, required
    - `avatarUrl` string, nullable, required
  - `workspaces` CurrentWorkspaceProfile[], required
    - `id` string, required
    - `ownerId` string, required
    - `name` string, required
    - `handle` string, required
    - `avatarUrl` string, nullable, required
  - `role` string
  - `accountId` string
  - `permissions` string[]
  - `workspaceCap` integer
  - `setupComplete` boolean

## Other responses

- `401`: Missing or invalid Supabase bearer token.
- `503`: Database or auth infrastructure unavailable.

---

[API](https://skmtc.dev/cadencz/apis/cadencz-api.md) · [All operations](https://skmtc.dev/cadencz/apis/cadencz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cadencz/apis/cadencz-api/revisions/3392fe5e93db?raw)
