Skip to main content
Use this endpoint to retrieve the profile of the currently authenticated user. The response confirms the identity tied to the Bearer token you are using. If the token belongs to a user who has never accessed the HackGATE API before, the system automatically provisions their account on first call — no separate registration step is required.

Endpoint

GET https://api-admin.hackgate.io/api/account/currentUser

Request

Authorization
string
required
Bearer token. See Authentication.

Response

email
string
The email address associated with the authenticated user’s account.

Behavior

  • Existing user — returns the profile for the account already on record.
  • New user — if no account exists for the authenticated identity, HackGATE creates one automatically and returns the new profile. You do not need to call a separate registration endpoint.

Example

curl https://api-admin.hackgate.io/api/account/currentUser \
  -H "Authorization: Bearer <token>"
{
  "email": "researcher@example.com"
}