Documentation

API URL


GET /api/v1/convert-time

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET /api/v1/convert-time?sourceTime=2026-04-06T15:30:00&sourceZone=America/New_York&targetZone=Europe/London

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "data": {
    "base_location": {
      "datetime": "2025-12-31 07:00:00"
    },
    "target_location": {
      "datetime": "2025-12-31 12:00:00"
    }
  },
  "meta": {
    "correlationId": "abc123",
    "timestamp": "2026-06-05T00:00:00.000Z",
    "processingTime": "42ms"
  }
}

Error Response

Example
Code
400 MissingParameters - Missing source or target conversion inputs on convert-time: Request rejected due to incomplete conversion inputs
400 InvalidTimezone - Invalid IANA timezone supplied: Request rejected due to timezone validation failure
400 InvalidCurrentTimeInput - Missing or invalid timezone or location on current-time route: Request rejected due to invalid current-time inputs
404 EndpointNotFound - Route does not match a declared endpoint: Request path is not supported
500 InternalError - Unhandled conversion or data-access exception: Request failed due to runtime processing error

Last Updated:  May 4, 2026