Skip to main content
GET
/
device
/
hsc
/
status
Haptic Script Status
curl --request GET \
  --url https://api.hapticsconnect.com/device/hsc/status \
  --header 'Authorization: Bearer <token>'
{
  "is_playing": true,
  "script_position": 50,
  "script_time": 1000
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

OK

Status of the haptic script on the device.

is_playing
boolean
required

Whether the script is currently playing.

Example:

true

script_position
number

The current position of the stroker in the script. Range: [0, 10000).

Example:

50

script_time
number

The current time in milliseconds of the script playback.

Example:

1000