---
title: "Get the current account, user and workspaces"
method: GET
path: "/api/v1/account/me"
tags: ["Account"]
---

# Get the current account, user and workspaces

`GET /api/v1/account/me`

## Request

- Base URL: `https://api.dotsy.ai`
- URL: `https://api.dotsy.ai/api/v1/account/me`
- Auth: HTTP bearer

Who the token is and which workspace the request acts in. `memberships` lists every workspace the person can switch to; pass one's id or slug as `X-Dotsy-Workspace` on later requests to act in it.

## Headers

- `X-Dotsy-Workspace` string

## Response `200`

The current account.

- AccountMe
  - `user` object, nullable, required: The signed-in person. Null for a `pga_` key, which has no user.
    - `name` string, required
    - `email` string, required
  - `account` object, required: The workspace this request acted in.
    - `id` string, required
    - `name` string, required
    - `slug` string, nullable, required
  - `isPlatformAdmin` boolean, required
  - `isConsoleAdmin` boolean, required: True when the signed-in person may use the Dotsy admin console. Always false for a `pga_` key or an OAuth token.
  - `servingOriginTemplate` string, nullable, required: Where published sites are served, with `{slug}` as the placeholder.
  - `memberships` object[], required: Every workspace the person belongs to. Always empty for a `pga_` key.
    - `orgId` string, required: Workspace id. Send it (or the slug) as `X-Dotsy-Workspace` to act in that workspace.
    - `name` string, required
    - `slug` string, nullable, required
    - `role` 'owner' | 'admin' | 'member', required
    - `ownerEmail` string, nullable, required: The workspace owner's email. Tells apart workspaces you joined as a guest.
    - `plan` 'free' | 'core', required: Workspace plan. A workspace with no plan row is free.
    - `isActive` boolean, required: True for the workspace this request acted in (`account`).
  - `telemetry` object, required: Health of the services behind this account.
    - `feedbackSink` 'ok' | 'degraded' | 'unconfigured', required: Whether feedback sent with publishes is being stored: `ok`, `degraded` (queued and retried), or `unconfigured`.

## Other responses

- `401`: Missing or invalid credentials.
- `403`: `forbidden_workspace`: you are not a member of the workspace named in `X-Dotsy-Workspace`.

---

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