Users API

Current User

GET /api/v2/users/me

Returns the authenticated user’s profile and the company resolved from the request.

Example Request

curl "https://app.keito.ai/api/v2/users/me" \
  -H "Authorization: Bearer kto_xxxxx" \
  -H "Keito-Account-Id: your_company_id"

Example Response Shape

{
  "id": "user_id_here",
  "first_name": "Jane",
  "last_name": "Doe",
  "email": "jane@example.com",
  "roles": ["administrator", "manager", "member"],
  "user_type": "human",
  "company": {
    "id": "company_id_here",
    "name": "Acme Consulting"
  }
}