---
url: "https://developers.vzconnect.com/apis/logbook-api-v1/versions/ea989433-4e89-4d02-91b7-d8d691be26a1"
---

OpenAPI specification document.

```json
{"openapi":"3.0.0","info":{"title":"Logbook API","description":"The LogBook API provides LogBook and compliance-related information to 3rd party systems for partnership opportunities and customer solutions. It enhances Time Card Reporting, Fleet Maintenance, Fleet Management, Routing, and Dispatching systems with a driver's LogBook information. The Compliance API is offered as a RESTful web service and uses the standard REST verb GET. The unique identifier used within this API method set is the Driver Number.\n\nNote: The current version does not support devices tracking Non-Powered Assets. The returned response is restricted to the Reveal account's data plan; if the information being queried is outside of the data plan, a 400 Bad Request response is returned.","version":"1.0","x-vzc-portal":{"category":"Compliance & Safety","summary":"Real-time and historical visibility into driver duty status and hours-of-service compliance to support informed operational decisions.","business":{"description":"provides real-time and historical visibility into driver duty status and hours-of-service compliance to support informed operational decisions. By connecting this data directly with payroll, HR, routing, and fleet management systems, the API reduces manual tracking and streamlines cross-departmental coordination. Returned information is tailored based on your organization's Reveal data plan.","purpose":"The Logbook API gives your organization a current view of each driver's duty and compliance status.\n\nIt also shows the driver's duty history for any 24-hour period that starts within the previous six months, and the hours remaining under the driver's hours-of-service rule cycle.\n\nThis helps managers identify potential compliance concerns and make informed operational decisions.\n\nBusinesses can connect this information with timecards, payroll and HR, fleet management, routing and dispatch, maintenance, and reporting systems.\n\nThese connections help teams coordinate work, reduce manual effort, and gain a fuller view of driver activity. Returned information is limited by the organization's Reveal data plan.\n\nThe Logbook API helps reduce manual work and supports consistent compliance oversight."},"use-cases":[{"title":"Real-Time Duty & HOS Monitoring","description":"Give managers current visibility into driver duty status, 24-hour recent history, and remaining cycle hours to ensure continuous compliance."},{"title":"Cross-Departmental System Integration","description":"Support routing, dispatch, fleet management, maintenance, payroll, HR, and business intelligence reporting with connected driver status data."},{"title":"Compliance Oversight & Labor Savings","description":"Reduce manual timecard tracking and strengthen oversight of hours-of-service (HOS) regulatory compliance across the fleet."},{"title":"Automated Dispatch & Violation Prevention","description":"Cross-reference real-time HOS remaining drive time against planned dispatch routes to prevent assigning jobs that would trigger regulatory violations."}],"icon-svg-base64":"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NSIgaGVpZ2h0PSI3NSIgdmlld0JveD0iMCAwIDc1IDc1IiBmaWxsPSJub25lIj4NCjx0aXRsZT5JY29uPC90aXRsZT4NCjxwYXRoIGQ9Ik0wIDBoNzV2MWgtNzV6TTAgMWg3NXYxaC03NXpNMCAyaDc1djFoLTc1ek0wIDNoNzV2MWgtNzV6TTAgNGg3NXYxaC03NXpNMCA1aDc1djFoLTc1ek0wIDZoNzV2MWgtNzV6TTAgN2g3NXYxaC03NXpNMCA4aDc1djFoLTc1ek0wIDloNDZ2MWgtNDZ6TTY2IDloOXYxaC05ek0wIDEwaDQ2djFoLTQ2ek02NiAxMGg5djFoLTl6TTAgMTFoNDZ2MWgtNDZ6TTY2IDExaDl2MWgtOXpNMCAxMmg0NnYxaC00NnpNNjYgMTJoOXYxaC05ek0wIDEzaDQ2djFoLTQ2ek02NiAxM2g5djFoLTl6TTAgMTRoNDZ2MWgtNDZ6TTY2IDE0aDl2MWgtOXpNMCAxNWg0NnYxaC00NnpNNjYgMTVoOXYxaC05ek0wIDE2aDQ2djFoLTQ2ek02NiAxNmg5djFoLTl6TTAgMTdoNDZ2MWgtNDZ6TTY2IDE3aDl2MWgtOXpNMCAxOGg0NnYxaC00NnpNNjYgMThoOXYxaC05ek0wIDE5aDc1djFoLTc1ek0wIDIwaDc1djFoLTc1ek0wIDIxaDc1djFoLTc1ek0wIDIyaDc1djFoLTc1ek0wIDIzaDc1djFoLTc1ek0wIDI0aDc1djFoLTc1ek0wIDI1aDc1djFoLTc1ek0wIDI2aDc1djFoLTc1ek0wIDI3aDc1djFoLTc1ek0wIDI4aDE4djFoLTE4ek01NyAyOGgxOHYxaC0xOHpNMCAyOWgxOHYxaC0xOHpNNTcgMjloMTh2MWgtMTh6TTAgMzBoMTh2M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NTNoMXYxaC0xek00MSA2NmgxdjFoLTF6TTUwIDcwaDF2MWgtMXpNNTEgNzFoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjQzOSIvPg0KPHBhdGggZD0iTTU0IDQ4aDF2MWgtMXpNNjcgNDhoMXYxaC0xek01MSA1MGgxdjFoLTF6TTUwIDUxaDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC40OTgiLz4NCjxwYXRoIGQ9Ik00MSA1NGgxdjFoLTF6TTQwIDU5aDF2MWgtMXpNNDAgNjJoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjY5Ii8+DQo8cGF0aCBkPSJNNTYgNDdoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjQzNSIvPg0KPHBhdGggZD0iTTUyIDQ5aDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC4zMTQiLz4NCjxwYXRoIGQ9Ik00MyA3MWgxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuNTYxIi8+DQo8L3N2Zz4NCg=="}},"tags":[{"name":"Logbook API","description":"Operations for retrieving a driver's current duty status, duty history for a 24-hour period starting at a date and time you choose (within the last 6 months) and remaining hours-of-service time within a REVEAL account."}],"x-kong-plugin-pre-function":{"enabled":true,"config":{"access":["local uri = kong.request.get_path()\nlocal new_uri = uri:gsub('^/logbook/v1', '/compliance/eld/akana')\nkong.service.request.set_path(new_uri)","local CLAIM = \"reveal_account_id\"\nlocal SEP   = \"_\"\nngx.req.clear_header(\"apikey\")\nlocal auth = kong.request.get_header(\"authorization\")\nif not auth then return end\nlocal app_id = auth:match(\"[Aa]tmosphere_app_id%s*=%s*([^,%s]+)\")\nif not app_id then return end\napp_id = app_id:match('^\"(.*)\"$') or app_id:match(\"^'(.*)'$\") or app_id\nlocal token = auth:match(\"[Bb]earer%s+([^%s,]+)\")\nlocal payload = token and token:match(\"^[^.]+%.([^.]+)%.\")\nif not payload then return end\npayload = payload:gsub(\"-\", \"+\"):gsub(\"_\", \"/\")\npayload = payload .. string.rep(\"=\", (4 - #payload % 4) % 4)\nlocal json = ngx.decode_base64(payload)\nif not json then return end\nlocal account_id = json:match('\"' .. CLAIM .. '\"%s*:%s*\"?([^\",}%s]+)')\nif not account_id then return end\nngx.req.set_header(\"apikey\", app_id .. SEP .. account_id)"]}},"paths":{"/logbook/v1/driver/{drivernumber}/remainingtime":{"get":{"summary":"Retrieve remaining driving time for a driver.","description":"Returns Hours of Service (HOS) for a driver against the ruleset or cycle. The integrated user must provide a valid Driver Number. The response includes the driver's last status date and time along with the number of driving hours left for today and the on-duty hours left in the rule cycle. The values are based on the driver's most recent status and are refreshed every time a driver's status is changed. If the driver has no status within the last 6 months, the response is still 200 but contains only the _links object.","operationId":"getDriverRemainingTime","tags":["Logbook API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/logbook/v1/driver/[^/]+/remainingtime/?$"]},"parameters":[{"name":"drivernumber","in":"path","required":true,"description":"Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.","schema":{"type":"string"},"example":"c_3379569"}],"responses":{"200":{"description":"Successfully retrieved remaining time data for the driver. When the driver has no status within the last 6 months, only the _links object is returned (with just the remainingtime link).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemainingTime"},"examples":{"withStatus":{"summary":"Driver with a status in the last 6 months","value":{"DriverNumber":"c_3379569","FirstName":"Driver First Name","LastName":"Driver Last Name","VehicleNumber":"34343423","VehicleName":"Vehicle85","RuleCycle":8,"HoursAgainstRuleSet":{"DrivingLeftForToday":11.666667,"CycleTimeLeft":59.9833336},"LastStatus":"OnDutyNotDriving","LastStatusDateTimeUTC":"2019-08-07T06:48:02.88","HoursRemainingSinceLastStatus":{"DailyDrivingMinutes":700,"DailyOnDutyMinutes":900},"_links":{"remainingtime":{"href":"https://api.dev.eu.vzconnect.net/logbook/v1/driver/c_3379569/remainingtime"},"driver":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/drivers/c_3379569"},"vehicle":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/vehicles/34343423"},"logbooksettings":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/driversettings/logbooksettings/c_3379569"}}}},"noRecentStatus":{"summary":"Driver with no status in the last 6 months","value":{"_links":{"remainingtime":{"href":"https://api.dev.eu.vzconnect.net/logbook/v1/driver/c_3379569/remainingtime"}}}}}}}},"400":{"description":"Bad request. The information being queried is outside of the Reveal account's data plan.","content":{"application/json":{}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid. No response body is returned.","content":{"application/json":{}}},"404":{"description":"Driver not found with the specified driver number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Internal server error. No response body is returned.","content":{"application/json":{}}}}}},"/logbook/v1/driver/{drivernumber}/statuscurrent":{"get":{"summary":"Retrieve the current duty status for a driver.","description":"Retrieves the current LogBook status for a specific driver. The current LogBook status can be obtained by providing an existing driver number within the REVEAL account. If the driver has no status within the last 6 months, the response is still 200 but contains only the _links object.","operationId":"getDriverCurrentStatus","tags":["Logbook API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/logbook/v1/driver/[^/]+/statuscurrent/?$"]},"parameters":[{"name":"drivernumber","in":"path","required":true,"description":"Driver Number is the unique identifier for Drivers created within REVEAL. This is the same identifier provided in the GET request call in order to return the desired LogBook information. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.","schema":{"type":"string"},"example":"99"}],"responses":{"200":{"description":"Successfully retrieved the driver's current duty status. When the driver has no status within the last 6 months, only the _links object is returned (with just the current link).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogbookStatus"},"examples":{"withStatus":{"summary":"Driver with a status in the last 6 months","value":{"Status":"OnDutyNotDriving","SubStatus":"OffDuty30MinBreak","StatusDateTimeUTC":"2017-06-20T19:35:24.46","StatusDurationSeconds":88,"UpdateDatetTimeUTC":"2017-06-20T19:35:24.45","TrailerNumber":["999999"],"ShippingReference":["8888888"],"Remark":null,"Address":null,"ModifiedBy":"Last updated by Test User","DriverNumber":"99","FirstName":"Driver First Name","LastName":"Driver Last Name","VehicleNumber":"85","VehicleName":"Vehicle 85","TimeRemainingSinceLastStatus":{"DailyDrivingMinutes":45,"DailyOnDutyMinutes":15},"TimeUsedSinceLastReset":{"DailyDrivingMinutes":50,"DailyOnDutyMinutes":10},"_links":{"current":{"href":"https://api.dev.eu.vzconnect.net/logbook/v1/driver/99/statuscurrent"},"driver":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/drivers/99"},"vehicle":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/vehicles/85"},"logbooksettings":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/driversettings/logbooksettings/99"}}}},"noRecentStatus":{"summary":"Driver with no status in the last 6 months","value":{"_links":{"current":{"href":"https://api.dev.eu.vzconnect.net/logbook/v1/driver/99/statuscurrent"}}}}}}}},"400":{"description":"Bad request. The information being queried is outside of the Reveal account's data plan.","content":{"application/json":{}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid. No response body is returned.","content":{"application/json":{}}},"404":{"description":"Driver not found with the specified driver number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Internal server error. No response body is returned.","content":{"application/json":{}}}}}},"/logbook/v1/driver/{drivernumber}/statushistory":{"get":{"summary":"Retrieve duty status history for a driver.","description":"Retrieves a driver's duty status, vehicle and driver information for a 24-hour period. The user must provide a valid Driver Number along with a Start Date and Time. The response includes the LogBook status entries from the start date and time value entered up to 24 hours later, in chronological order, together with a count and links. Hourly and violation records are not included. The Start Date and Time must be within 6 months of the current date of the request being made. If there are no entries for the period, the response is still 200 with a Count of 0 and only the _links object.","operationId":"getDriverStatusHistory","tags":["Logbook API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/logbook/v1/driver/[^/]+/statushistory/?$"]},"parameters":[{"name":"drivernumber","in":"path","required":true,"description":"Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.","schema":{"type":"string"},"example":"99"},{"name":"startDateTimeUtc","in":"query","required":true,"description":"The start date and time (UTC) of the 24-hour period to retrieve, for example 2017-06-20T19:35:24. Must be within 6 months of the current date of the request. If the value is missing, cannot be parsed as a date and time, or is older than 6 months, a 400 error is returned.","schema":{"type":"string","format":"date-time"},"example":"2017-06-20T19:35:24.46"}],"responses":{"200":{"description":"Successfully retrieved the driver's duty status history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogbookStatusHistoryResponse"},"examples":{"withStatuses":{"summary":"Driver with status entries in the period","value":{"Count":1,"_links":{"history":{"href":"https://api.dev.eu.vzconnect.net/logbook/v1/driver/99/statushistory?startDateTimeUtc=2017-06-20T19:35:24.46"}},"_embedded":{"HosStatuses":[{"DistanceInKm":12.5,"Status":"Driving","SubStatus":"DrivingNoSubStatus","StatusDateTimeUTC":"2017-06-20T19:35:24.46","StatusDurationSeconds":3600,"UpdateDatetTimeUTC":"2017-06-20T19:35:24.45","TrailerNumber":["999999"],"ShippingReference":["8888888"],"Remark":null,"Address":null,"ModifiedBy":null,"DriverNumber":"99","FirstName":"Driver First Name","LastName":"Driver Last Name","VehicleNumber":"85","VehicleName":"Vehicle 85","TimeRemainingSinceLastStatus":{"DailyDrivingMinutes":45,"DailyOnDutyMinutes":15},"TimeUsedSinceLastReset":{"DailyDrivingMinutes":50,"DailyOnDutyMinutes":10},"_links":{"driver":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/drivers/99"},"vehicle":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/vehicles/85"},"logbooksettings":{"href":"https://api.dev.eu.vzconnect.net/cmd/v1/driversettings/logbooksettings/99"}}}]}}},"noStatuses":{"summary":"No status entries in the period","value":{"Count":0,"_links":{"history":{"href":"https://api.dev.eu.vzconnect.net/logbook/v1/driver/99/statushistory?startDateTimeUtc=2017-06-20T19:35:24.46"}}}}}}}},"400":{"description":"Bad request. Returned when startDateTimeUtc is missing, is not a valid date and time, or is older than 6 months, or when the information being queried is outside of the Reveal account's data plan. For parameter errors the body contains a Message, for example 'Parameter startdatetimeutc is required but was not provided.', 'Please use a valid date time format for the \"startdatetimeutc\" query string parameter. For example, yyyy-MM-ddTHH:mm:ss' or 'StartDate can't be older than 6 months'.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid. No response body is returned.","content":{"application/json":{}}},"404":{"description":"Driver not found with the specified driver number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Internal server error. No response body is returned.","content":{"application/json":{}}}}}}},"components":{"schemas":{"LogbookStatusHistory":{"type":"object","description":"A single LogBook status entry for a driver, including the distance in km driven during the status.","properties":{"DistanceInKm":{"type":"number","format":"double","description":"The distance in kilometers driven during this status, calculated from the odometer reading at the start of this status to the odometer reading at the start of the next status (or the first reading of the following day for the last entry). Only calculated for Driving statuses on the same vehicle; 0 otherwise or when no valid odometer readings are available.","example":12.5},"Status":{"type":"string","description":"The driver's duty status, either entered by the driver through the LogBook App or proposed by an admin within the REVEAL account. Returned as the status name: OffDuty, Driving (on duty and driving, set automatically when the vehicle is driven), OnDutyNotDriving (logging Hours of Service but not driving), SleeperBerth (in the sleeper cabin, not driving) and, in rare cases, NoStatus or Diagnostic.","example":"OnDutyNotDriving"},"SubStatus":{"type":"string","description":"The sub status applied to the main status in the LogBook App. Returned as the sub status name. Driving: DrivingNoSubStatus. OnDutyNotDriving: OnDutyNotDrivingNoSubStatus, OnDutyNotDrivingYardMoves, OnDutyNotDrivingFueling, OnDutyNotDrivingInspection, OnDutyNotDrivingLoad, OnDutyNotDrivingUnload, OnDutyNotDrivingFerryCrossing, OnDutyNotDrivingUnregulatedDrivingStart, OnDutyNotDrivingUnregulatedDrivingStop. OffDuty: OffDutyNoSubStatus, OffDutySplitBreak1, OffDutySplitBreak2, OffDutyDailyReset, OffDutyWeeklyReset, OffDuty30MinBreak, OffDutyPersonal, OffDutyPrivacy, OffDutyWaitingTime. SleeperBerth: SleeperBerthNoSubStatus, SleeperBerthSplitBreak1, SleeperBerthSplitBreak2, SleeperBerthDailyReset, SleeperBerthWeeklyReset, SleeperBerth30MinBreak. NoSubStatus is returned when no sub status applies.","example":"OffDuty30MinBreak"},"StatusDateTimeUTC":{"type":"string","format":"date-time","description":"The timestamp of the status change. Taken from the device time and sent to REVEAL as a UTC time.","example":"2017-06-20T19:35:24.46"},"StatusDurationSeconds":{"type":"integer","description":"Length of time (in seconds) for the status. For the first entry in the response this is the stored status duration; for later entries it is the number of seconds between the previous entry's StatusDateTimeUTC and this entry's StatusDateTimeUTC.","example":88},"UpdateDatetTimeUTC":{"type":"string","format":"date-time","description":"The timestamp value for when the updated Status was received by REVEAL.","example":"2017-06-20T19:35:24.45"},"TrailerNumber":{"type":"array","description":"Reference identifier(s) associated with the trailer entered within the LogBook App. A stored value is split on spaces, so an individual reference cannot contain a space.","items":{"type":"string"},"example":["999999"]},"ShippingReference":{"type":"array","description":"Reference number/identifier(s) associated with shipping stops for a particular vehicle entered in the LogBook app. A stored value is split on spaces, so an individual reference cannot contain a space.","items":{"type":"string"},"example":["8888888"]},"Remark":{"type":"string","nullable":true,"description":"Additional comments related to the status update that is entered within the LogBook App. Null when no remark was entered.","example":null},"Address":{"$ref":"#/components/schemas/Address"},"ModifiedBy":{"type":"string","description":"The individual who most recently modified the LogBook Status, in the form 'Last updated by <first name> <last name>'. Null when the status has not been modified or the modifying user cannot be resolved.","example":"Last updated by Test User","nullable":true},"DriverNumber":{"type":"string","description":"Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.","example":"99"},"FirstName":{"type":"string","description":"The first name of the driver as recorded within the REVEAL vehicle profile.","example":"Driver First Name"},"LastName":{"type":"string","description":"The last name of the driver as recorded within the REVEAL vehicle profile.","example":"Driver Last Name"},"VehicleNumber":{"type":"string","description":"Vehicle Number is the unique identifier for Vehicles created within REVEAL. Null when no vehicle is associated with the status.","example":"85","nullable":true},"VehicleName":{"type":"string","description":"The Vehicle Name as recorded within the REVEAL vehicle profile. Null when no vehicle is associated with the status.","example":"Vehicle 85","nullable":true},"TimeRemainingSinceLastStatus":{"allOf":[{"$ref":"#/components/schemas/DailyTime"}],"description":"Time Remaining Since Last Status, in minutes. Daily Driving Minutes: the time this driver has left to drive today, at the point the status change was struck, before they get a violation. Daily On Duty Minutes: the time this driver has left on duty today, at the point the status change was struck. Values default to 0 when the information is not available."},"TimeUsedSinceLastReset":{"allOf":[{"$ref":"#/components/schemas/DailyTime"}],"description":"Time Used Since Last Reset, in minutes. Daily Driving Minutes: the total time the driver has driven today since the last daily reset. Daily On Duty Minutes: the total on-duty time since the last daily reset. Values default to 0 when the information is not available."},"_links":{"$ref":"#/components/schemas/StatusHistoryItemLinks"}}},"LogbookStatus":{"type":"object","description":"Current LogBook status for a driver. When the driver has no status within the last 6 months, only _links.current is returned and all other properties are absent.","properties":{"Status":{"type":"string","description":"The driver's duty status, either entered by the driver through the LogBook App or proposed by an admin within the REVEAL account. Returned as the status name: OffDuty, Driving (on duty and driving, set automatically when the vehicle is driven), OnDutyNotDriving (logging Hours of Service but not driving), SleeperBerth (in the sleeper cabin, not driving) and, in rare cases, NoStatus or Diagnostic.","example":"OnDutyNotDriving"},"SubStatus":{"type":"string","description":"The sub status applied to the main status in the LogBook App. Returned as the sub status name. Driving: DrivingNoSubStatus. OnDutyNotDriving: OnDutyNotDrivingNoSubStatus, OnDutyNotDrivingYardMoves, OnDutyNotDrivingFueling, OnDutyNotDrivingInspection, OnDutyNotDrivingLoad, OnDutyNotDrivingUnload, OnDutyNotDrivingFerryCrossing, OnDutyNotDrivingUnregulatedDrivingStart, OnDutyNotDrivingUnregulatedDrivingStop. OffDuty: OffDutyNoSubStatus, OffDutySplitBreak1, OffDutySplitBreak2, OffDutyDailyReset, OffDutyWeeklyReset, OffDuty30MinBreak, OffDutyPersonal, OffDutyPrivacy, OffDutyWaitingTime. SleeperBerth: SleeperBerthNoSubStatus, SleeperBerthSplitBreak1, SleeperBerthSplitBreak2, SleeperBerthDailyReset, SleeperBerthWeeklyReset, SleeperBerth30MinBreak. NoSubStatus is returned when no sub status applies.","example":"OffDuty30MinBreak"},"StatusDateTimeUTC":{"type":"string","format":"date-time","description":"The timestamp of the status change. Taken from the device time and sent to REVEAL as a UTC time.","example":"2017-06-20T19:35:24.46"},"StatusDurationSeconds":{"type":"integer","description":"Length of time (in seconds) the current status has been in effect, as stored when the status was last updated.","example":88},"UpdateDatetTimeUTC":{"type":"string","format":"date-time","description":"The timestamp value for when the updated Status was received by REVEAL.","example":"2017-06-20T19:35:24.45"},"TrailerNumber":{"type":"array","description":"Reference identifier(s) associated with the trailer entered within the LogBook App. A stored value is split on spaces, so an individual reference cannot contain a space.","items":{"type":"string"},"example":["999999"]},"ShippingReference":{"type":"array","description":"Reference number/identifier(s) associated with shipping stops for a particular vehicle entered in the LogBook app. A stored value is split on spaces, so an individual reference cannot contain a space.","items":{"type":"string"},"example":["8888888"]},"Remark":{"type":"string","nullable":true,"description":"Additional comments related to the status update that is entered within the LogBook App. Null when no remark was entered.","example":null},"Address":{"$ref":"#/components/schemas/Address"},"ModifiedBy":{"type":"string","description":"The individual who most recently modified the LogBook Status, in the form 'Last updated by <first name> <last name>'. Null when the status has not been modified or the modifying user cannot be resolved.","example":"Last updated by Test User","nullable":true},"DriverNumber":{"type":"string","description":"Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.","example":"99"},"FirstName":{"type":"string","description":"The first name of the driver as recorded within the REVEAL vehicle profile.","example":"Driver First Name"},"LastName":{"type":"string","description":"The last name of the driver as recorded within the REVEAL vehicle profile.","example":"Driver Last Name"},"VehicleNumber":{"type":"string","description":"Vehicle Number is the unique identifier for Vehicles created within REVEAL. Null when no vehicle is associated with the status.","example":"85","nullable":true},"VehicleName":{"type":"string","description":"The Vehicle Name as recorded within the REVEAL vehicle profile. Null when no vehicle is associated with the status.","example":"Vehicle 85","nullable":true},"TimeRemainingSinceLastStatus":{"allOf":[{"$ref":"#/components/schemas/DailyTime"}],"description":"Time Remaining Since Last Status, in minutes. Daily Driving Minutes: the time this driver has left to drive today, at the point the status change was struck, before they get a violation. Daily On Duty Minutes: the time this driver has left on duty today, at the point the status change was struck. Values default to 0 when the information is not available."},"TimeUsedSinceLastReset":{"allOf":[{"$ref":"#/components/schemas/DailyTime"}],"description":"Time Used Since Last Reset, in minutes. Daily Driving Minutes: the total time the driver has driven today since the last daily reset. Daily On Duty Minutes: the total on-duty time since the last daily reset. Values default to 0 when the information is not available."},"_links":{"$ref":"#/components/schemas/StatusLinks"}}},"DailyTime":{"type":"object","properties":{"DailyDrivingMinutes":{"type":"integer","description":"Daily driving minutes.","example":45},"DailyOnDutyMinutes":{"type":"integer","description":"Daily on duty minutes.","example":15}}},"Address":{"type":"object","description":"The address related to the location entered within the LogBook app for when the status was updated or changed. Contains the global standards for address components. May be null when no address is available.","nullable":true,"properties":{"AddressLine1":{"type":"string","description":"Location specific identification such as a house number.","example":"31500 Bainbridge Rd"},"AddressLine2":{"type":"string","description":"Additional information to identify location such as an apartment number.","example":""},"Locality":{"type":"string","description":"City, town, etc.","example":"Solon"},"AdministrativeArea":{"type":"string","description":"State, province, etc.","example":"OH"},"PostalCode":{"type":"string","description":"Postal code.","example":"44139"},"Country":{"type":"string","description":"Country.","example":"USA"}}},"RemainingTime":{"type":"object","description":"Hours of Service (HOS) for a driver against the ruleset or cycle. When the driver has no status within the last 6 months, only _links.remainingtime is returned and all other properties are absent.","properties":{"DriverNumber":{"type":"string","description":"Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.","example":"c_3379569"},"FirstName":{"type":"string","description":"The first name of the driver as recorded within the REVEAL vehicle profile.","example":"Driver First Name"},"LastName":{"type":"string","description":"The last name of the driver as recorded within the REVEAL vehicle profile.","example":"Driver Last Name"},"VehicleNumber":{"type":"string","nullable":true,"description":"Vehicle Number is the unique identifier for Vehicles created within REVEAL. Null when no vehicle is associated with the last status.","example":"34343423"},"VehicleName":{"type":"string","nullable":true,"description":"The Vehicle Name as recorded within the REVEAL vehicle profile. Null when no vehicle is associated with the last status.","example":"Vehicle85"},"RuleCycle":{"type":"integer","description":"Shows the last Rule Cycle for the Driver (number of days).","example":8},"HoursAgainstRuleSet":{"$ref":"#/components/schemas/HoursAgainstRuleSet"},"LastStatus":{"type":"string","description":"The driver's last status received from the app, either entered by the driver through the LogBook App or proposed by an admin within the REVEAL account. Returned as the status name: OffDuty, Driving (on duty and driving, set automatically when the vehicle is driven), OnDutyNotDriving (logging Hours of Service but not driving), SleeperBerth (in the sleeper cabin, not driving) and, in rare cases, NoStatus or Diagnostic.","example":"OnDutyNotDriving"},"LastStatusDateTimeUTC":{"type":"string","format":"date-time","description":"The timestamp of the status change. Taken from the device time and sent to REVEAL as a UTC time. The remaining time can be calculated considering the last status time and date.","example":"2019-08-07T06:48:02.88"},"HoursRemainingSinceLastStatus":{"type":"object","description":"Time remaining since the last status, expressed in minutes (not hours). Daily Driving Minutes: the time this driver has left to drive today, at the point the status change was struck. Daily On Duty Minutes: the time this driver has left on duty today, at the point the status change was struck. Values default to 0 when the information is not available.","properties":{"DailyDrivingMinutes":{"type":"integer","description":"Daily driving time remaining, in minutes.","example":700},"DailyOnDutyMinutes":{"type":"integer","description":"Daily on duty time remaining, in minutes.","example":900}}},"_links":{"$ref":"#/components/schemas/RemainingTimeLinks"}}},"StatusLinks":{"type":"object","description":"Supplemental API links available for additional reference. The current link is always returned; driver, vehicle and logbooksettings are returned only when the driver has a status in the last 6 months.","nullable":true,"properties":{"current":{"$ref":"#/components/schemas/HyperlinkRef"},"driver":{"$ref":"#/components/schemas/HyperlinkRef"},"vehicle":{"$ref":"#/components/schemas/HyperlinkRef"},"logbooksettings":{"$ref":"#/components/schemas/HyperlinkRef"}}},"HoursAgainstRuleSet":{"type":"object","description":"Driving time left for today and on-duty time left in the rule cycle, in hours. Values default to 0 when the information is not available.","properties":{"DrivingLeftForToday":{"type":"number","format":"double","description":"Driving time in hours left for today.","example":11.666667},"CycleTimeLeft":{"type":"number","format":"double","description":"On-duty time in hours left in the current rule cycle.","example":59.9833336}}},"HyperlinkRef":{"type":"object","properties":{"href":{"type":"string","description":"The hyperlink reference URL."}}},"RemainingTimeLinks":{"type":"object","description":"Supplemental API links available for additional reference. The remainingtime link is always returned; driver, vehicle and logbooksettings are returned only when the driver has a status in the last 6 months.","nullable":true,"properties":{"remainingtime":{"$ref":"#/components/schemas/HyperlinkRef"},"driver":{"$ref":"#/components/schemas/HyperlinkRef"},"vehicle":{"$ref":"#/components/schemas/HyperlinkRef"},"logbooksettings":{"$ref":"#/components/schemas/HyperlinkRef"}}},"ApiError":{"type":"object","description":"Error returned when the driver number cannot be found or a request parameter is invalid.","properties":{"Message":{"type":"string","description":"A description of the error.","example":"Driver Information not found for DriverNumber: 99"}}},"StatusHistoryItemLinks":{"type":"object","description":"Supplemental API links available for additional reference.","properties":{"driver":{"$ref":"#/components/schemas/HyperlinkRef"},"vehicle":{"$ref":"#/components/schemas/HyperlinkRef"},"logbooksettings":{"$ref":"#/components/schemas/HyperlinkRef"}}},"StatusHistoryLinks":{"type":"object","description":"Supplemental API links available for additional reference.","properties":{"history":{"$ref":"#/components/schemas/HyperlinkRef"}}},"LogbookStatusHistoryResponse":{"type":"object","description":"LogBook status history for a driver over a 24-hour period.","properties":{"Count":{"type":"integer","description":"The number of status entries returned in _embedded.HosStatuses.","example":1},"_links":{"$ref":"#/components/schemas/StatusHistoryLinks"},"_embedded":{"type":"object","description":"The status entries for the period. Omitted when no entries exist for the period.","properties":{"HosStatuses":{"type":"array","description":"The status entries for the 24-hour period, in chronological order. Hourly and violation records are not included.","items":{"$ref":"#/components/schemas/LogbookStatusHistory"}}}}}}}},"servers":[{"url":"https://api.us.vzconnect.com"}]}
```
