---
title: "Account"
icon : "api"
description: "Resolve the account that owns the Bearer key on the request."
---

# Account

<Endpoint
  method="GET"
  path  ="https://api.envyauth.my.id/api/v3/me/account"
/>

Returns the account row for the API token on the request.

## Request

```bash
curl https://api.envyauth.my.id/api/v3/me/account \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

## Response

<CodeGroup tabs={[
  {
    title: '200 OK',
    lang : 'json',
    code : '{\n  "success": true,\n  "data": {\n    "account": {\n      "id":            "uuid",\n      "discord_id":    "1118453649727823974",\n      "username":      "SyN SoYoun",\n      "plan":          "max",\n      "server_region": "us-east-1",\n      "reg_date_unix": 1748419200\n    }\n  },\n  "requestid": "uuid"\n}',
  },
  {
    title: '401 Unauthorized',
    lang : 'json',
    code : '{\n  "success": false,\n  "error": "Missing or invalid Bearer token",\n  "code":  "UNAUTHORIZED",\n  "requestid": "uuid"\n}',
  },
  {
    title: '403 Forbidden',
    lang : 'json',
    code : '{\n  "success": false,\n  "error": "Token does not have permission for GET /api/v3/me/account — current scopes: [delete]",\n  "code":  "SCOPE_DENIED",\n  "requestid": "uuid"\n}',
  },
]} />

## Fields

| Field | Type | Meaning |
|---|---|---|
| `id` | string | Internal account UUID. |
| `discord_id` | string | Discord snowflake linked to the account. |
| `username` | string | Dashboard username. |
| `plan` | string | Plan tier: `free`, `starter`, or `max`. |
| `server_region` | string | Region where the account's data is hosted. |
| `reg_date_unix` | number | Unix timestamp (seconds) of account creation. |
