RoscoLive API v1.0(v2.37.0)
  1. Event
RoscoLive API v1.0(v2.37.0)
  • Company
    • Create a company
      PUT
    • Get a company by ID
      GET
    • Update company
      POST
    • Get a company
      GET
    • Get companies
      GET
  • Device
    • Geotab
      • Get device by geotab device serial number
    • Update a device settings
      POST
    • Get reported DTCs for devices
      GET
    • Get company devices
      GET
    • Search devices
      GET
    • Play in-cab audible alert sound for device
      POST
    • Get list of trip dates for device
      GET
    • Get list of trips for passed device and date
      GET
    • Get a device
      GET
    • Get devices for all companies available for user
      GET
    • Get available video list for date
      GET
    • Get device list for multiple companies
      GET
  • Driver Scoring / Coaching
    • Get driver scores
      GET
    • Get unknown driver trips
      GET
  • Event
    • Request Custom Event
      PUT
    • Get Company Events
      GET
    • Send an event
      PUT
    • Get snapshot/location of event
      GET
    • Get Device Events for Period
      GET
    • Request custom video from device
      PUT
    • Get event filters list for date range in company
      GET
  • Group
    • Get devices of a group
  • Metadata
    • Get metadata of a device
    • Get metadata of devices
    • Get alerts of a driver
  1. Event

Request Custom Event

Tested
PUT
/events/custom_event
Endpoint to request custom event for device with ID device_id starting at start_ts.
If not specified, the following parameters will use their default values:
ParamDefault Value
duration30 secs
media_typeall
if media_type=all then request will return a snapshot for start_ts and video for start_ts + duration;
if media_type=video then request will return a video for start_ts + duration;
if media_type=snapshot then request will return a snapshot for start_ts.

User Role Permissions#

The following table shows which user roles are allowed to send requests using this API endpoint.
RolePermission
Partner
Partner View
Custom Partner
Fleet Manager
Group Manager
User
Custom User

Request

Body Params multipart/form-data

Responses

🟢200Success
application/json
Body

🟠400Invalid datetime format
🟠401Login Required
🟠404Resource Not Found
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/events/custom_event' \
--form 'device_id=""' \
--form 'start_ts=""' \
--form 'duration=""' \
--form 'display_name=""' \
--form 'data=""' \
--form 'geotab_user_id=""' \
--form 'media_type=""'
Response Response Example
200 - Success (Device is NOT offline/sleep and request does NOT exist)
{
    "meta": {
        "code": 200
    },
    "response": {
        "event_id": 1924553
    },
    "result": "OK"
}
Modified at 2025-11-04 14:39:55
Previous
Get unknown driver trips
Next
Get Company Events
Built with