Get the authenticated account
GET
The first call to write, and the one to reach for when another endpoint answers 401 or 403: scopes echoes what the presented token actually holds.
apiToken account:readheader
AuthorizationBearer <token>A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.
Scope: account:read
The account.
application/json- response
id*stringOpaque account id. Do not parse.
email*stringFormat
emailname*stringcreditCents*integerAccount credit in cents. Positive means we hold credit for you.
scopes*array<string>Scopes the presented token holds.
curl -X GET 'https://api.deluxhost.net/v1/me' \ -H "Authorization: Bearer $DELUXHOST_TOKEN"Example Response
{ "id": "string", "email": "[email protected]", "name": "string", "creditCents": 0, "scopes": [ "string" ]}