---
title: "Current user, their workspaces and whether the account can be deleted"
method: GET
path: "/api/v1/me"
tags: ["Account"]
---

# Current user, their workspaces and whether the account can be deleted

`GET /api/v1/me`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/me`
- Auth: HTTP bearer

## Response `200`

OK

- MeBody
  - `access_reset` AccessResetBody, required
    - `api_keys` integer, required: API keys revoked
    - `apps` integer, required: Connected apps disconnected
    - `auth_hooks` integer, required: Supabase hooks turned off
    - `password` boolean, required: True when the password was removed
    - `phone` string, nullable, required: Masked phone number that was unlinked, null when there was none
    - `reset_at` string, date-time, required
    - `webhooks` integer, required: Webhooks turned off
    - `whatsapp` integer, required: WhatsApp numbers signed out and paused
  - `can_delete` boolean, required
  - `delete_blockers` DeleteBlockerBody[], nullable, required
    - `reason` 'has_members' | 'platform', required: has_members: other people use the workspace; platform: the workspace runs sign-in for the whole service
    - `workspace_id` integer, required
    - `workspace_name` string, required
  - `needs_profile` boolean, required
  - `user` AccountUserBody, required
    - `created_at` string, date-time, required
    - `email` string, nullable, required: Null for accounts created with a phone number
    - `email_verified` boolean, required: True once the email was confirmed with a code or a sign-in link
    - `has_password` boolean, required
    - `id` integer, required
    - `is_admin` boolean, required
    - `locale` string, required
    - `name` string, required: Empty until the person enters a name
    - `phone` string, nullable, required: E.164 number the account signs in with, null for email accounts
    - `public_id` string, uuid, required
  - `workspaces` AccountWorkspaceBody[], nullable, required
    - `created_at` string, date-time, required
    - `id` integer, required
    - `name` string, required
    - `plan` 'free' | 'starter' | 'growth' | 'scale', required
    - `role` 'owner' | 'admin' | 'developer' | 'viewer', required
    - `slug` string, required
    - `trial_ends_at` string, date-time, nullable, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
