Skip to main content

List Timezones

Retrieve a paginated list of the timezones you can assign to a contact.

The list is the same for every account. Use it to find the timezone_uuid to set on a contact when you create, upsert, or update one, or to filter contacts by timezone on List Contacts. Results are ordered by region, then by city.

Request

GET /timezones

Query Parameters

All parameters are optional.

ParameterTypeDefaultDescription
pageinteger1Page number (min: 1)
per_pageinteger100Items per page (min: 1, max: 100)
searchstring-Case-insensitive substring match over the timezone name, region, and city. For example, war matches Europe/Warsaw (max 255 characters).
regionstring-Exact region match, e.g. Europe (max 64 characters). An unknown region returns an empty page.

search and region combine with AND.

Example Request

curl -X GET "https://email.easy.tools/api/v1/timezones?region=Europe" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"

Find a timezone by name:

curl -X GET "https://email.easy.tools/api/v1/timezones?search=warsaw" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"

Response

Success Response (200 OK)

{
"data": [
{
"uuid": "a1c4e2f8-3b6d-4f9a-8c2e-1d5b7a9c3e0f",
"iana": "Europe/Amsterdam",
"region": "Europe",
"city": "Amsterdam"
},
{
"uuid": "5f0b2d7c-9e14-4a83-b6d1-2c8f4e6a0b35",
"iana": "Europe/Berlin",
"region": "Europe",
"city": "Berlin"
},
{
"uuid": "748ff067-d041-4a2f-a7ad-a6f7ce049cdf",
"iana": "Europe/Warsaw",
"region": "Europe",
"city": "Warsaw"
}
],
"pagination": {
"current_page": 1,
"per_page": 100,
"total": 3
}
}

Response Fields

Each entry in data has the fields described in Timezone Object.

Pagination Object

FieldTypeDescription
current_pageintegerCurrent page number
per_pageintegerNumber of items per page
totalintegerTotal number of matching timezones

Error Responses

Validation Error (422 Unprocessable Entity)

Returned when page or per_page is out of range.

{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid",
"details": {
"per_page": ["The per page field must not be greater than 100."]
}
}
}