Get Timezones
Use the Timezones API to query the timezone list currently supported by the server. The Device Settings API only accepts timezone values from the returned key field.
Quick Guide
Prerequisites
In the Playground, sign in to Dot and select Authorize. In a script, use a personal API key or an OAuth access token as a Bearer token.
Request Examples
GET
/api/authV2/open/timezonesGenerated Code
Before running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Response Example
[
{
"key": "Asia/Shanghai",
"name": "Shanghai",
"utcOffsetMinutes": 480,
"utcOffsetLabel": "UTC+8"
}
]Troubleshooting
Endpoint
/api/authV2/open/timezones
Method
GET
Request Schema
Leave the request body empty.
Response Schema
Prop
Type
Identifier accepted when setting the device timezone.
Display name in the language selected by the user.
Current UTC offset in minutes. Positive values are east of UTC.
Current UTC offset, formatted for display.
Status Codes
| HTTP status code | Description |
|---|---|
401 | Grant web access again, or check the API key and OAuth access token. |
403 | Your account does not have access to this endpoint. |
429 | Wait for the number of seconds in Retry-After. |
Did this solve your problem?
Join our community