Skip to main content
GET
/
device
/
server-time
Retrieve Server Time
curl --request GET \
  --url https://api.getmelody.io/device/server-time \
  --header 'Authorization: Bearer <token>'
{
  "epoch_ms": 123
}

Authorizations

Authorization
string
header
required

Device Token for SDK operations. Obtain via: GET /api/haptics/device/device_token Format: {device_id}-{1|2}-{random} Note: ApiToken (from POST /device/otp/confirm) can also be used for most SDK endpoints.

Response

200 - application/json

OK

epoch_ms
integer<int64>

The current server time in milliseconds.