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, 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 | GET | /account | analytics:read | Get the current user profile and plan info |
| Update account | PUT | /account | analytics:read | Update the current user's name |
Get account
curl "https://datafa.st/api/v1/admin/account" \
-H "Authorization: Bearer dft_xxx"
Update account
curl -X PUT "https://datafa.st/api/v1/admin/account" \
-H "Authorization: Bearer dft_xxx" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}'