Users
Get the current user
Returns the authenticated User derived from the bearer token on the request — i.e. a "whoami" probe for confirming credentials are valid and inspecting the caller's identity, organisation and site access.
Although the endpoint is mounted under the api-public middleware (no auth required for the route to resolve), the response body is meaningful only when a bearer token is supplied — without one, the body is null. Use this in clients that need to test "is my token still good?" without committing to a heavier authenticated request.
get/customers/user
Response
The current user, or null if the request is unauthenticated.
Example response
{
"id": "5e1e3f6c-2a44-4f6e-8c61-9c1f7d2e1c11",
"name": "John Smith",
"given_name": "John",
"family_name": "Smith",
"email": "john.smith@example.com",
"email_verified": true,
"organisation_id": "9c3ad1e2-2d1b-4f4f-9e07-6d6c4f3a2b1a",
"organisation_name": "Trybe Spa Group",
"avatar_id": "7d2a1f9c-5b3e-4d8c-9f0a-2c4e6f8b1d3a",
"avatar": {
"file_name": "super-cool-photo.jpg",
"mime_type": "image/jpeg",
"original_url": "https://example.com/media/super-cool-photo.jpg",
"size": 84256,
"url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
},
"cashier_id": "cashier-042",
"status": "active",
"2fa_enabled": true,
"twofa_enabled": true,
"created_at": "2020-01-01T00:00:00.000Z",
"updated_at": "2020-01-01T00:00:00.000Z",
"managed_by_sso": true
}