GET
/api/public/v1/me

Get current user

Returns the user, employee, and organization tied to the API key.

GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/me" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key"
200Example response
json
{
  "message": "User retrieved successfully!",
  "content": {
    "user": {
      "id": "usr_123",
      "fullname": "Jane Doe",
      "email": "jane@example.com"
    },
    "employee": {
      "id": "emp_456",
      "organizationRoles": [
        "ADMIN"
      ]
    },
    "organization": {
      "id": "org_789",
      "displayName": "Acme Inc",
      "creditBalance": 12500
    }
  }
}