AccountCurrent user

GET /user

Return the authenticated user for an account API token. A quick way to verify a token works.

curl https://api.botect.ai/user \
  -H "Authorization: Bearer YOUR_ACCOUNT_TOKEN"
{
  "id": 42,
  "name": "Ada Lovelace",
  "email": "ada@example.com",
  "created_at": "2026-01-01T00:00:00Z"
}

Returns the user the account API token authenticates as. The simplest way to confirm a token is valid.

GET https://api.botect.ai/user

Authentication

Account API token via Authorization: Bearer <token>. See Authentication.

Example

A valid token returns 200 with the user object; a bad or missing token returns 401. To inspect the account the token acts on, use Account context.