List access tokens
GET https://datafa.st/api/v1/admin/access-tokens
List dft_ account tokens.
Request
Authentication
dft_account token withapi-keys:read.
Response
Returns a JSON object with
status and endpoint-specific fields.Response fields
| Field | Type | Description |
|---|---|---|
data[]._id | string | Token ObjectId. |
data[].name | string | null |
data[].displayKey | string | Masked token shown in the dashboard. |
data[].scope | string | Token scope. Account tokens use user. |
data[].permissions | string[] | Granted permissions, or [*] for full access. |
data[].websiteIds | string[] | Allowed website IDs. Empty means all websites available to the account. |
data[].lastUsedAt | string | null |
data[].createdAt | string | Creation timestamp. |
data[].key | string | Only returned when creating a token. Full raw token shown once. |
Errors
Common errors include
400 for invalid input, 401 for missing or invalid tokens, 403 for missing permissions or website access, 404 for missing resources, and 500 for server errors.