Skip to main content
POST
Send Door Lock Command

Overview

For ATrack protocol family, sends lock/unlock SMS via Twilio; otherwise completes without SMS when IMEI missing (200 + error object pattern).

Endpoint

POST /api/SendDoorLock

Query parameters

integer
required
Legacy vehicle id.
boolean
required
true to lock doors.

Response

200 OK — empty on success.

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from POST /api/authentication/token/user or POST /api/authentication/token/api-key.

Lifetime: ~24 hours (86,399 seconds). Cache the token and reuse it. Re-authenticate 5 minutes before expiry.

Scoping:

  • User tokens are scoped to a single company.
  • API key tokens may restrict access to a vehicle allowlist and/or action set (see token claims).

No refresh endpoint — re-authenticate with your credentials when the token expires.

Headers

Content-Type
string
Authorization
string
required

Bearer your_token

Query Parameters

id
integer
required
isLock
boolean
required

Response

Successful response

The response is of type object.