# Get a production session Retrieves detailed information about a specific production session. Requires JWT token authentication in the Authorization header. Only the session owner (user who opened it) can view the session. Endpoint: GET /api/control/production/sessions/{sessionId} Version: 2.0.0 Security: bearerAuth ## Path parameters: - `sessionId` (string, required) Session identifier (unique identifier) Example: "6507f1e3c9d8e2a4b1f9c3d5" ## Response 200 fields (application/json): - `status` (string) Example: "success" - `data` (object) - `data.sessionId` (string) Session unique identifier Example: "6507f1e3c9d8e2a4b1f9c3d5" - `data.companyId` (string) Company identifier Example: "comp_12345" - `data.projectId` (string) Project identifier Example: "proj_123" - `data.auth0Id` (string) User identifier who opened the session Example: "user_123456789" - `data.sectorId` (string) Sector identifier Example: "sector_001" - `data.sector_name` (string) Sector name Example: "Lote A-1" - `data.timezone` (string) Project timezone Example: "America/Mexico_City" - `data.day` (string) Session day (normalized to start of day in project timezone) Example: "2025-10-19T00:00:00.000Z" - `data.status` (string) Session status Enum: "open", "closed" - `data.openedAt` (string) Timestamp when the session was opened (ISO 8601 UTC) Example: "2025-10-19T08:00:00.000Z" - `data.closedAt` (string,null) When the session was closed (null if still open) - `data.maxDurationHours` (integer) Maximum duration in hours Example: 12 - `data.samplingUnit` (string) Unit of measurement (e.g., box, kg, ton) Example: "box" - `data.pricePerUnit` (number) Price per unit Example: 5.5 - `data.bonus` (object) - `data.bonus.type` (string, required) Bonus type (flat amount or percentage) Enum: "flat", "percent" - `data.bonus.value` (number, required) Bonus value (0-100 for percent, any positive for flat) Example: 10 - `data.bonus.note` (string) Optional note about the bonus Example: "High quality bonus" - `data.totals` (object) - `data.totals.totalUnits` (number) Total units recorded in this session Example: 150 - `data.notes` (string) Optional notes about the session Example: "Good weather conditions" ## Response 401 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 403 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 404 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 500 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information"