Get All Timezones

Retrieve a complete list of supported timezones for your SenderWiz platform using Admin API access.

🌍 Get All Timezones

Fetch and display the full list of timezones available in your SenderWiz installation via Admin API.


🔹 HTTP Request

GET ADMIN-API-URL/timezones

🔸 Query Parameters

Parameter
Default
Description

page

1

Current page to retrieve.

per_page

10

Number of records per page.


🔐 Authorization Header

X-ADMIN-KEY: your-admin-api-key-here

💻 PHP Example

// GET ALL TIMEZONES
$response = $adminEndpoint->getTimezones($pageNumber = 1, $perPage = 10);

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';

📦 Sample JSON Response

{
  "status": "success",
  "data": {
    "count": "10",
    "total_pages": 1,
    "current_page": 1,
    "next_page": null,
    "prev_page": null,
    "records": [
      {
        "timezone_id": "1",
        "name": "(GMT-11:00) Pacific/Midway"
      },
      {
        "timezone_id": "2",
        "name": "(GMT-11:00) Pacific/Niue"
      },
      {
        "timezone_id": "3",
        "name": "(GMT-11:00) Pacific/Pago_Pago"
      },
      {
        "timezone_id": "4",
        "name": "(GMT-10:00) Pacific/Honolulu"
      },
      {
        "timezone_id": "5",
        "name": "(GMT-10:00) Pacific/Rarotonga"
      },
      {
        "timezone_id": "6",
        "name": "(GMT-10:00) Pacific/Tahiti"
      },
      {
        "timezone_id": "7",
        "name": "(GMT-09:30) Pacific/Marquesas"
      },
      {
        "timezone_id": "8",
        "name": "(GMT-09:00) America/Adak"
      },
      {
        "timezone_id": "9",
        "name": "(GMT-09:00) Pacific/Gambier"
      },
      {
        "timezone_id": "10",
        "name": "(GMT-08:00) America/Anchorage"
      }
    ]
  }
}

Last updated