--- title: "getServerTime (Service)" slug: "dpgw-ig-getservertime-service-5-12" updated: 2026-01-12T11:17:22Z published: 2026-01-14T17:21:37Z canonical: "docs.onespan.com/dpgw-ig-getservertime-service-5-12" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # getServerTime (Service) > This command is deprecated! Do not use anymore. > API version: 2 > > Availability: DIGIPASS Gateway 5.0 and later > > Authentication: Basic HTTP authentication using the front-end API key. The getServerTime service retrieves the current server time as Unix time to be used in activation and re-activation of Mobile Authenticator Studio 4.x. The server time returned used the Unix time format (POSIX time or UNIX Epoch time), i.e. the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), not counting leap seconds. ## URL https://dpgateway_host:dpgateway_port/rest/v2/provisioning/getServerTime ## Request The getServerTime service does not accept any parameters. ## Response | getServerTime return values | | --- | | Return value | Description | | resultCodes | A JSON object that contains the return and status codes of the service. | | result | A JSON object that contains the current server time as Unix time. This is the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC). Leap seconds are not counted. | ### Example ```json {  "resultCodes":    {      "returnCodeEnum": "RET_SUCCESS",      "statusCodeEnum": "STAT_SUCCESS",      "returnCode": 0,      "statusCode": 0    },  "result":    {      "serverTime": 1547556827    } } ```