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
string
required
The bearer token used to authenticate the company.
string
required
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
string
required
The Vehicle Identification Number (VIN) of the vehicle to which the command will be sent.
string
required
The remote command to execute on the vehicle.
string
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
string
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}.string
The vehicle’s unique identification number.
string
The command that was requested.
string
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.datetime
The date and time when the command was registered in the mobway system [YYYY-MM-DD HH:MM:SS] (UTC-3).
string
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.string
The alert message, in Portuguese, to be displayed to the user before confirming the action. It is present only in the confirmation response.
string
The cause of the request error. This field is only present when the request fails.