How to specify offset for the times the API returns

API v3 allows you to specify a time offset to return the application times in your desired timezone.

For accounts created before the 26th of May 2019 by default, the application returns times in Mountain Standard Time (UTC -7 hours) and there is no automatic daylight saving time in the application.

For accounts created after the 26th of May 2019 by default, the application returns times in Coordinated Universal Time (UTC) and there is no automatic daylight saving time in the application.

To define the offset you can add a Timezone-Offset header to your API calls with value in seconds, so, for example, to add an hour to the default returned times you'd specify the value as 3600, and to remove an hour you'd set it to -3600.

CURL example:

curl --location --request GET 'https://your-la.ladesk.com/api/v3/tickets' \
--header 'apikey: API_KEY' \
--header 'Content-Type: application/json' \
--header 'Timezone-Offset: -3600'
×