Endpoint
POST vehicle-command
Sends a remote command to a vehicle connected to the company
POST
This route starts the execution of a remote command for a single specific vehicle. The command is executed in the background. Use the GET
/vehicle-command/{command_id} route to check the command status.Request
Header
The bearer token used to authenticate the company.
HMAC SHA256 signature of the request body, using the application’s sign-secret as the key. The body must be serialized as JSON without extra spaces and with keys sorted alphabetically before generating the signature. See the example below:The
code field (when sent in the second step of ignition commands) is not part of the signature. Only vin and command are signed.Body
The Vehicle Identification Number (VIN) of the vehicle to which the command will be sent.
The remote command to execute on the vehicle.
The 6-digit confirmation code returned in the first step of ignition commands (
enable_ignition and disable_ignition). Provide it to execute the command in the second call. This does not apply to other commands.Response
The unique identifier (UUID) of the command registered in the mobway system. Use this ID to check the command status later with GET
/vehicle-command/{command_id}.The vehicle’s unique identification number.
The command that was requested.
The initial status of the command. It can be “Confirmation”, when an ignition command is waiting for the second confirmation step (resubmission with the
code), “Pending”, when the command has not yet been processed, or “Error”, when the command was not executed successfully.The date and time when the command was registered in the mobway system [YYYY-MM-DD HH:MM:SS] (UTC-3).
The 6-digit confirmation code. It is present only in the confirmation response (
status: "Confirmation") for ignition commands. Resend the request with this value in the code field to execute the command.The alert message, in Portuguese, to be displayed to the user before confirming the action. It is present only in the confirmation response.
The cause of the request error. This field is only present when the request fails.