Source: https://datafa.st/docs/api/account/account
Markdown source: https://datafa.st/docs/api/account/account.md
Description: Get and update the current account profile used by account tokens and the CLI.

# Admin account

These endpoints let you verify the account attached to a token and update basic account profile fields.

Use this page when you need to verify which DataFast account a token belongs to, display account metadata in your own internal tool, or let an AI agent confirm it is authenticated before taking action.

> The DataFast CLI uses these endpoints for commands like [`datafast whoami`](/docs/cli-config#whoami), but you can call them directly from any backend or script.

Base path: `https://datafa.st/api/v1/admin`

| Endpoint | Method | Path | Permission | Purpose |
|---|---|---|---|---|
| [Get account](/docs/api/account/account/retrieve) | GET | `/account` | `analytics:read` | Get the current user profile and plan info |
| [Update account](/docs/api/account/account/update) | PUT | `/account` | `analytics:read` | Update the current user's name |

## Get account

```sh
curl "https://datafa.st/api/v1/admin/account" \
  -H "Authorization: Bearer dft_xxx"
```

## Update account

```sh
curl -X PUT "https://datafa.st/api/v1/admin/account" \
  -H "Authorization: Bearer dft_xxx" \
  -H "Content-Type: application/json" \
  -d '{"name":"Jane Doe"}'
```

Related docs: [authentication and scopes](/docs/api/authentication), [Account API overview](/docs/api/account), [CLI config](/docs/cli-config).

## Code examples

### Example request

```bash
curl "https://datafa.st/api/v1/admin/account" \
  -H "Authorization: Bearer dft_xxx"
```

### Success response

```json
{
  "status": "success",
  "data": [
    {
      "name": "Jane Doe",
      "email": "jane@example.com",
      "hasAccess": true,
      "planType": "pro",
      "createdAt": "2026-05-19T00:00:00.000Z"
    }
  ]
}
```
