# Create Countdown Timer

POST https://services.leadconnectorhq.com/countdown-timer/timers

Create a countdown timer for the access token's location

## Authentication

Send `Authorization: Bearer <token>` using:

- **Sub-Account token: OAuth access token or Private Integration Token.** Scopes: `countdown-timer/timer.write`

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "HighLevel API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/countdown-timer/timers": {
      "post": {
        "summary": "Create Countdown Timer",
        "operationId": "createCountdownTimer",
        "description": "Create a countdown timer for the access token's location",
        "parameters": [
          {
            "name": "Version",
            "in": "header",
            "description": "API Version",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCountdownTimerPublicV1BodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Timer created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCountdownTimerPublicV1ResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestDTO"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedDTO"
                }
              }
            }
          },
          "403": {
            "description": "The token does not have access to this location",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidLocationDTO"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "Location-Access": [
              "countdown-timer/timer.write"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      },
      "Agency-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "CreateCountdownTimerPublicV1BodyDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Timer name",
            "example": "Flash Sale Timer"
          },
          "timerType": {
            "type": "string",
            "description": "Timer type",
            "enum": [
              "fixed",
              "dynamic",
              "recurring"
            ],
            "example": "fixed"
          },
          "templateId": {
            "type": "string",
            "description": "Template ID from the list-templates endpoint",
            "example": "minimal"
          },
          "endDate": {
            "type": "string",
            "description": "End date in ISO 8601 format. Required for fixed timers.",
            "example": "2026-04-01T00:00:00.000Z"
          },
          "timezone": {
            "type": "string",
            "description": "Valid IANA timezone identifier",
            "example": "America/New_York"
          },
          "timerDuration": {
            "description": "Timer duration. Required for dynamic and recurring timers.",
            "example": {
              "days": 1,
              "hours": 2,
              "minutes": 0,
              "seconds": 0
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "days": {
                    "type": "number",
                    "description": "Number of days",
                    "example": 0
                  },
                  "hours": {
                    "type": "number",
                    "description": "Number of hours",
                    "example": 2
                  },
                  "minutes": {
                    "type": "number",
                    "description": "Number of minutes",
                    "example": 30
                  },
                  "seconds": {
                    "type": "number",
                    "description": "Number of seconds",
                    "example": 0
                  }
                },
                "required": [
                  "days",
                  "hours",
                  "minutes",
                  "seconds"
                ],
                "title": "DynamicTimerDurationApiDto"
              }
            ]
          },
          "waitTime": {
            "description": "Wait time between recurring loops",
            "example": {
              "days": 0,
              "hours": 0,
              "minutes": 30,
              "seconds": 0
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "days": {
                    "type": "number",
                    "description": "Number of days",
                    "example": 0
                  },
                  "hours": {
                    "type": "number",
                    "description": "Number of hours",
                    "example": 2
                  },
                  "minutes": {
                    "type": "number",
                    "description": "Number of minutes",
                    "example": 30
                  },
                  "seconds": {
                    "type": "number",
                    "description": "Number of seconds",
                    "example": 0
                  }
                },
                "required": [
                  "days",
                  "hours",
                  "minutes",
                  "seconds"
                ],
                "title": "DynamicTimerDurationApiDto"
              }
            ]
          },
          "designMeta": {
            "description": "Design metadata for timer appearance. Get defaults from the templates endpoint and customize as needed.",
            "example": {
              "backgroundColor": "#ffffff",
              "textColor": "#111827",
              "separatorColor": "#e5e7eb",
              "labels": {
                "days": "Days",
                "hours": "Hours",
                "minutes": "Minutes",
                "seconds": "Seconds"
              }
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "counterFontSize": {
                    "type": "number",
                    "description": "Counter font size in px",
                    "example": 50
                  },
                  "counterFontFamily": {
                    "type": "string",
                    "description": "Counter font family",
                    "example": "inter"
                  },
                  "counterFontWeight": {
                    "type": "string",
                    "description": "Counter font weight",
                    "example": "normal"
                  },
                  "labelFontSize": {
                    "type": "number",
                    "description": "Label font size in px",
                    "example": 15
                  },
                  "labelFontFamily": {
                    "type": "string",
                    "description": "Label font family",
                    "example": "inter"
                  },
                  "labelFontWeight": {
                    "type": "string",
                    "description": "Label font weight",
                    "example": "normal"
                  },
                  "digitColor": {
                    "type": "string",
                    "description": "Digit color (hex)",
                    "example": "#a21043"
                  },
                  "labelColor": {
                    "type": "string",
                    "description": "Label color (hex)",
                    "example": "#a21043"
                  },
                  "separatorColor": {
                    "type": "string",
                    "description": "Separator color (hex)",
                    "example": "#feccd6"
                  },
                  "backgroundColor": {
                    "type": "string",
                    "description": "Background color (hex)",
                    "example": "#ffffff"
                  },
                  "circleBorderColor": {
                    "type": "string",
                    "description": "Circle border color (hex)",
                    "example": "#000000"
                  },
                  "circleFillColor": {
                    "type": "string",
                    "description": "Circle fill color (hex)",
                    "example": "#ffffff"
                  },
                  "boxColor": {
                    "type": "string",
                    "description": "Box color (hex)",
                    "example": "#101828"
                  },
                  "borderColor": {
                    "type": "string",
                    "description": "Border color (hex)",
                    "example": "#101828"
                  },
                  "isTransparent": {
                    "type": "boolean",
                    "description": "Transparent background",
                    "example": false
                  },
                  "hasSeparator": {
                    "type": "boolean",
                    "description": "Show separator between units",
                    "example": true
                  },
                  "hasFillingBorder": {
                    "type": "boolean",
                    "description": "Show filling border animation",
                    "example": false
                  },
                  "hasBoxColor": {
                    "type": "boolean",
                    "description": "Show box color behind digits",
                    "example": false
                  },
                  "labels": {
                    "description": "Unit labels",
                    "example": {
                      "days": "Days",
                      "hours": "Hours",
                      "minutes": "Minutes",
                      "seconds": "Seconds"
                    },
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "days": {
                            "type": "string",
                            "description": "Label for days unit",
                            "example": "Days"
                          },
                          "hours": {
                            "type": "string",
                            "description": "Label for hours unit",
                            "example": "Hours"
                          },
                          "minutes": {
                            "type": "string",
                            "description": "Label for minutes unit",
                            "example": "Minutes"
                          },
                          "seconds": {
                            "type": "string",
                            "description": "Label for seconds unit",
                            "example": "Seconds"
                          }
                        },
                        "title": "DesignLabelsDto"
                      }
                    ]
                  },
                  "unitVisibility": {
                    "description": "Unit visibility toggles",
                    "example": {
                      "days": true,
                      "hours": true,
                      "minutes": true,
                      "seconds": true
                    },
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "days": {
                            "type": "boolean",
                            "description": "Show days",
                            "example": true
                          },
                          "hours": {
                            "type": "boolean",
                            "description": "Show hours",
                            "example": true
                          },
                          "minutes": {
                            "type": "boolean",
                            "description": "Show minutes",
                            "example": true
                          },
                          "seconds": {
                            "type": "boolean",
                            "description": "Show seconds",
                            "example": true
                          }
                        },
                        "title": "UnitVisibilityDto"
                      }
                    ]
                  },
                  "borderRadius": {
                    "type": "number",
                    "description": "Border radius in px",
                    "example": 12
                  },
                  "hasPadding": {
                    "type": "boolean",
                    "description": "Enable padding",
                    "example": true
                  },
                  "padding": {
                    "description": "Padding values",
                    "example": {
                      "top": 16,
                      "bottom": 16,
                      "left": 16,
                      "right": 16
                    },
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "top": {
                            "type": "number",
                            "description": "Top padding in px",
                            "example": 16
                          },
                          "bottom": {
                            "type": "number",
                            "description": "Bottom padding in px",
                            "example": 16
                          },
                          "left": {
                            "type": "number",
                            "description": "Left padding in px",
                            "example": 16
                          },
                          "right": {
                            "type": "number",
                            "description": "Right padding in px",
                            "example": 16
                          }
                        },
                        "title": "PaddingDto"
                      }
                    ]
                  },
                  "previewUrl": {
                    "type": "string",
                    "description": "Preview image URL from template",
                    "example": "https://storage.googleapis.com/cdn/countdown-timer/templates/minimal/preview.png"
                  }
                },
                "title": "DesignMetaApiDto"
              }
            ]
          },
          "hideTimerForAppleMail": {
            "type": "boolean",
            "description": "Hide timer for Apple Mail clients",
            "default": false,
            "example": false
          },
          "dynamicTimerParams": {
            "description": "Dynamic timer parameters. Required for dynamic timers.",
            "example": {
              "endTime": "17:00",
              "trigger": "sent"
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "endTime": {
                    "type": "string",
                    "description": "End time for dynamic timer",
                    "example": "17:00"
                  },
                  "trigger": {
                    "type": "string",
                    "description": "Trigger event",
                    "enum": [
                      "sent",
                      "opened",
                      "whatsapp_sent",
                      "whatsapp_opened"
                    ],
                    "example": "sent"
                  }
                },
                "required": [
                  "endTime",
                  "trigger"
                ],
                "title": "DynamicTimerParamsApiDto"
              }
            ]
          },
          "links": {
            "description": "Timer redirect links for active, expired, and non-user states",
            "example": {
              "activeLink": "https://example.com/sale",
              "expiryLink": "https://example.com/expired",
              "notUserLink": "https://example.com/signup"
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "activeLink": {
                    "type": "string",
                    "description": "Active state redirect link",
                    "example": "https://example.com/offer"
                  },
                  "expiryLink": {
                    "type": "string",
                    "description": "Expired state redirect link",
                    "example": "https://example.com/expired"
                  },
                  "notUserLink": {
                    "type": "string",
                    "description": "Non-user redirect link",
                    "example": "https://example.com"
                  }
                },
                "title": "TimerLinkApiDto"
              }
            ]
          },
          "expiryImageLink": {
            "type": "string",
            "description": "Image to show when timer expires",
            "example": "https://example.com/expiry.png"
          },
          "bgImageLink": {
            "type": "string",
            "description": "Background image for timer",
            "example": "https://example.com/bg.png"
          }
        },
        "required": [
          "name",
          "timerType",
          "templateId",
          "designMeta"
        ],
        "title": "CreateCountdownTimerPublicV1BodyDto"
      },
      "CreateCountdownTimerPublicV1ResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Timer ID",
            "example": "60d5f484f0f3c2001f2d5e4a"
          },
          "name": {
            "type": "string",
            "description": "Timer name",
            "example": "Flash Sale Timer"
          },
          "templateId": {
            "type": "string",
            "description": "Template ID",
            "example": "minimal"
          },
          "locationId": {
            "type": "string",
            "description": "Location ID",
            "example": "X9COWUStXtcLXTgBdqhm"
          },
          "status": {
            "type": "string",
            "description": "Timer status",
            "enum": [
              "active",
              "draft",
              "archived"
            ],
            "example": "draft"
          },
          "timerType": {
            "type": "string",
            "description": "Timer type",
            "enum": [
              "fixed",
              "dynamic",
              "recurring"
            ],
            "example": "fixed"
          },
          "endDate": {
            "type": "string",
            "description": "End date (ISO 8601)",
            "example": "2026-04-01T00:00:00.000Z"
          },
          "startDate": {
            "type": "string",
            "description": "Start date (ISO 8601)",
            "example": "2026-03-20T00:00:00.000Z"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "America/New_York"
          },
          "designMeta": {
            "description": "Design metadata for timer appearance",
            "example": {
              "digitColor": "#a21043",
              "labelColor": "#a21043",
              "backgroundColor": "#ffffff",
              "counterFontSize": 50
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "counterFontSize": {
                    "type": "number",
                    "description": "Counter font size in px",
                    "example": 50
                  },
                  "counterFontFamily": {
                    "type": "string",
                    "description": "Counter font family",
                    "example": "inter"
                  },
                  "counterFontWeight": {
                    "type": "string",
                    "description": "Counter font weight",
                    "example": "normal"
                  },
                  "labelFontSize": {
                    "type": "number",
                    "description": "Label font size in px",
                    "example": 15
                  },
                  "labelFontFamily": {
                    "type": "string",
                    "description": "Label font family",
                    "example": "inter"
                  },
                  "labelFontWeight": {
                    "type": "string",
                    "description": "Label font weight",
                    "example": "normal"
                  },
                  "digitColor": {
                    "type": "string",
                    "description": "Digit color (hex)",
                    "example": "#a21043"
                  },
                  "labelColor": {
                    "type": "string",
                    "description": "Label color (hex)",
                    "example": "#a21043"
                  },
                  "separatorColor": {
                    "type": "string",
                    "description": "Separator color (hex)",
                    "example": "#feccd6"
                  },
                  "backgroundColor": {
                    "type": "string",
                    "description": "Background color (hex)",
                    "example": "#ffffff"
                  },
                  "circleBorderColor": {
                    "type": "string",
                    "description": "Circle border color (hex)",
                    "example": "#000000"
                  },
                  "circleFillColor": {
                    "type": "string",
                    "description": "Circle fill color (hex)",
                    "example": "#ffffff"
                  },
                  "boxColor": {
                    "type": "string",
                    "description": "Box color (hex)",
                    "example": "#101828"
                  },
                  "borderColor": {
                    "type": "string",
                    "description": "Border color (hex)",
                    "example": "#101828"
                  },
                  "isTransparent": {
                    "type": "boolean",
                    "description": "Transparent background",
                    "example": false
                  },
                  "hasSeparator": {
                    "type": "boolean",
                    "description": "Show separator between units",
                    "example": true
                  },
                  "hasFillingBorder": {
                    "type": "boolean",
                    "description": "Show filling border animation",
                    "example": false
                  },
                  "hasBoxColor": {
                    "type": "boolean",
                    "description": "Show box color behind digits",
                    "example": false
                  },
                  "labels": {
                    "description": "Unit labels",
                    "example": {
                      "days": "Days",
                      "hours": "Hours",
                      "minutes": "Minutes",
                      "seconds": "Seconds"
                    },
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "days": {
                            "type": "string",
                            "description": "Label for days unit",
                            "example": "Days"
                          },
                          "hours": {
                            "type": "string",
                            "description": "Label for hours unit",
                            "example": "Hours"
                          },
                          "minutes": {
                            "type": "string",
                            "description": "Label for minutes unit",
                            "example": "Minutes"
                          },
                          "seconds": {
                            "type": "string",
                            "description": "Label for seconds unit",
                            "example": "Seconds"
                          }
                        },
                        "title": "DesignLabelsDto"
                      }
                    ]
                  },
                  "unitVisibility": {
                    "description": "Unit visibility toggles",
                    "example": {
                      "days": true,
                      "hours": true,
                      "minutes": true,
                      "seconds": true
                    },
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "days": {
                            "type": "boolean",
                            "description": "Show days",
                            "example": true
                          },
                          "hours": {
                            "type": "boolean",
                            "description": "Show hours",
                            "example": true
                          },
                          "minutes": {
                            "type": "boolean",
                            "description": "Show minutes",
                            "example": true
                          },
                          "seconds": {
                            "type": "boolean",
                            "description": "Show seconds",
                            "example": true
                          }
                        },
                        "title": "UnitVisibilityDto"
                      }
                    ]
                  },
                  "borderRadius": {
                    "type": "number",
                    "description": "Border radius in px",
                    "example": 12
                  },
                  "hasPadding": {
                    "type": "boolean",
                    "description": "Enable padding",
                    "example": true
                  },
                  "padding": {
                    "description": "Padding values",
                    "example": {
                      "top": 16,
                      "bottom": 16,
                      "left": 16,
                      "right": 16
                    },
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "top": {
                            "type": "number",
                            "description": "Top padding in px",
                            "example": 16
                          },
                          "bottom": {
                            "type": "number",
                            "description": "Bottom padding in px",
                            "example": 16
                          },
                          "left": {
                            "type": "number",
                            "description": "Left padding in px",
                            "example": 16
                          },
                          "right": {
                            "type": "number",
                            "description": "Right padding in px",
                            "example": 16
                          }
                        },
                        "title": "PaddingDto"
                      }
                    ]
                  },
                  "previewUrl": {
                    "type": "string",
                    "description": "Preview image URL from template",
                    "example": "https://storage.googleapis.com/cdn/countdown-timer/templates/minimal/preview.png"
                  }
                },
                "title": "DesignMetaApiDto"
              }
            ]
          },
          "timerDuration": {
            "type": "object",
            "description": "Timer duration",
            "example": {
              "days": 1,
              "hours": 2,
              "minutes": 0,
              "seconds": 0
            }
          },
          "links": {
            "type": "object",
            "description": "Timer links",
            "example": {
              "activeLink": "https://example.com",
              "expiryLink": "https://example.com/expired"
            }
          },
          "trackingLink": {
            "type": "string",
            "description": "Tracking link URL",
            "example": "https://t.example.com/abc123"
          },
          "hasLink": {
            "type": "boolean",
            "description": "Whether timer has an active link",
            "example": true
          },
          "previewUrl": {
            "type": "string",
            "description": "Preview image URL",
            "example": "https://storage.googleapis.com/cdn/countdown-timer/preview/abc123.gif"
          },
          "thumbnailUrl": {
            "type": "string",
            "description": "Thumbnail image URL",
            "example": "https://storage.googleapis.com/cdn/countdown-timer/thumbnail/abc123.png"
          },
          "expiryImageLink": {
            "type": "string",
            "description": "Expiry image link",
            "example": "https://example.com/expiry.png"
          },
          "loopCount": {
            "type": "number",
            "description": "Number of recurring loops",
            "example": 3
          },
          "waitTime": {
            "type": "object",
            "description": "Wait time between loops",
            "example": {
              "minutes": 30
            }
          },
          "hideTimerForAppleMail": {
            "type": "boolean",
            "description": "Hide timer for Apple Mail clients",
            "example": false
          },
          "hideRecurringTimerFunnels": {
            "type": "boolean",
            "description": "Hide recurring timer in funnels",
            "example": false
          },
          "dynamicTimerParams": {
            "type": "object",
            "description": "Dynamic timer parameters",
            "example": {
              "endTime": "17:00",
              "trigger": "sent"
            }
          },
          "createdAt": {
            "type": "string",
            "description": "Created timestamp",
            "example": "2026-03-20T12:00:00.000Z"
          },
          "updatedAt": {
            "type": "string",
            "description": "Updated timestamp",
            "example": "2026-03-20T12:00:00.000Z"
          }
        },
        "required": [
          "id",
          "name",
          "locationId",
          "status",
          "timerType"
        ],
        "title": "CreateCountdownTimerPublicV1ResponseDto"
      },
      "BadRequestDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "type": "string",
            "example": "Bad Request"
          }
        },
        "title": "BadRequestDTO"
      },
      "UnauthorizedDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 401
          },
          "message": {
            "type": "string",
            "example": "Invalid token: access token is invalid"
          },
          "error": {
            "type": "string",
            "example": "Unauthorized"
          }
        },
        "title": "UnauthorizedDTO"
      },
      "InvalidLocationDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code for invalid location access",
            "example": 403
          },
          "message": {
            "type": "string",
            "description": "Error message describing the location access failure",
            "example": "The token does not have access to this location"
          }
        },
        "title": "InvalidLocationDTO"
      },
      "UnprocessableDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 422
          },
          "message": {
            "example": [
              "Unprocessable Entity"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "example": "Unprocessable Entity"
          }
        },
        "title": "UnprocessableDTO"
      }
    }
  }
}
```

## Code Examples

**cURL**

```bash
curl -L -X POST 'https://services.leadconnectorhq.com/countdown-timer/timers' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "name": "Flash Sale Timer",
  "timerType": "fixed",
  "templateId": "minimal",
  "endDate": "2026-04-01T00:00:00.000Z",
  "timezone": "America/New_York",
  "timerDuration": {
    "days": 1,
    "hours": 2,
    "minutes": 0,
    "seconds": 0
  },
  "waitTime": {
    "days": 0,
    "hours": 0,
    "minutes": 30,
    "seconds": 0
  },
  "designMeta": {
    "backgroundColor": "#ffffff",
    "textColor": "#111827",
    "separatorColor": "#e5e7eb",
    "labels": {
      "days": "Days",
      "hours": "Hours",
      "minutes": "Minutes",
      "seconds": "Seconds"
    }
  },
  "hideTimerForAppleMail": false,
  "dynamicTimerParams": {
    "endTime": "17:00",
    "trigger": "sent"
  },
  "links": {
    "activeLink": "https://example.com/sale",
    "expiryLink": "https://example.com/expired",
    "notUserLink": "https://example.com/signup"
  },
  "expiryImageLink": "https://example.com/expiry.png",
  "bgImageLink": "https://example.com/bg.png"
}'
```

**Node.js**

```javascript
const options = {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
      "name": "Flash Sale Timer",
      "timerType": "fixed",
      "templateId": "minimal",
      "endDate": "2026-04-01T00:00:00.000Z",
      "timezone": "America/New_York",
      "timerDuration": {
        "days": 1,
        "hours": 2,
        "minutes": 0,
        "seconds": 0
      },
      "waitTime": {
        "days": 0,
        "hours": 0,
        "minutes": 30,
        "seconds": 0
      },
      "designMeta": {
        "backgroundColor": "#ffffff",
        "textColor": "#111827",
        "separatorColor": "#e5e7eb",
        "labels": {
          "days": "Days",
          "hours": "Hours",
          "minutes": "Minutes",
          "seconds": "Seconds"
        }
      },
      "hideTimerForAppleMail": false,
      "dynamicTimerParams": {
        "endTime": "17:00",
        "trigger": "sent"
      },
      "links": {
        "activeLink": "https://example.com/sale",
        "expiryLink": "https://example.com/expired",
        "notUserLink": "https://example.com/signup"
      },
      "expiryImageLink": "https://example.com/expiry.png",
      "bgImageLink": "https://example.com/bg.png"
  })
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/countdown-timer/timers', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/countdown-timer/timers"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

payload = {
    "name": "Flash Sale Timer",
    "timerType": "fixed",
    "templateId": "minimal",
    "endDate": "2026-04-01T00:00:00.000Z",
    "timezone": "America/New_York",
    "timerDuration": {
        "days": 1,
        "hours": 2,
        "minutes": 0,
        "seconds": 0
    },
    "waitTime": {
        "days": 0,
        "hours": 0,
        "minutes": 30,
        "seconds": 0
    },
    "designMeta": {
        "backgroundColor": "#ffffff",
        "textColor": "#111827",
        "separatorColor": "#e5e7eb",
        "labels": {
            "days": "Days",
            "hours": "Hours",
            "minutes": "Minutes",
            "seconds": "Seconds"
        }
    },
    "hideTimerForAppleMail": false,
    "dynamicTimerParams": {
        "endTime": "17:00",
        "trigger": "sent"
    },
    "links": {
        "activeLink": "https://example.com/sale",
        "expiryLink": "https://example.com/expired",
        "notUserLink": "https://example.com/signup"
    },
    "expiryImageLink": "https://example.com/expiry.png",
    "bgImageLink": "https://example.com/bg.png"
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/countdown-timer/timers',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => '{
  "name": "Flash Sale Timer",
  "timerType": "fixed",
  "templateId": "minimal",
  "endDate": "2026-04-01T00:00:00.000Z",
  "timezone": "America/New_York",
  "timerDuration": {
    "days": 1,
    "hours": 2,
    "minutes": 0,
    "seconds": 0
  },
  "waitTime": {
    "days": 0,
    "hours": 0,
    "minutes": 30,
    "seconds": 0
  },
  "designMeta": {
    "backgroundColor": "#ffffff",
    "textColor": "#111827",
    "separatorColor": "#e5e7eb",
    "labels": {
      "days": "Days",
      "hours": "Hours",
      "minutes": "Minutes",
      "seconds": "Seconds"
    }
  },
  "hideTimerForAppleMail": false,
  "dynamicTimerParams": {
    "endTime": "17:00",
    "trigger": "sent"
  },
  "links": {
    "activeLink": "https://example.com/sale",
    "expiryLink": "https://example.com/expired",
    "notUserLink": "https://example.com/signup"
  },
  "expiryImageLink": "https://example.com/expiry.png",
  "bgImageLink": "https://example.com/bg.png"
}',
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .post("https://services.leadconnectorhq.com/countdown-timer/timers")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .header("Content-Type", "application/json")
  .body("{\"name\":\"Flash Sale Timer\",\"timerType\":\"fixed\",\"templateId\":\"minimal\",\"endDate\":\"2026-04-01T00:00:00.000Z\",\"timezone\":\"America/New_York\",\"timerDuration\":{\"days\":1,\"hours\":2,\"minutes\":0,\"seconds\":0},\"waitTime\":{\"days\":0,\"hours\":0,\"minutes\":30,\"seconds\":0},\"designMeta\":{\"backgroundColor\":\"#ffffff\",\"textColor\":\"#111827\",\"separatorColor\":\"#e5e7eb\",\"labels\":{\"days\":\"Days\",\"hours\":\"Hours\",\"minutes\":\"Minutes\",\"seconds\":\"Seconds\"}},\"hideTimerForAppleMail\":false,\"dynamicTimerParams\":{\"endTime\":\"17:00\",\"trigger\":\"sent\"},\"links\":{\"activeLink\":\"https://example.com/sale\",\"expiryLink\":\"https://example.com/expired\",\"notUserLink\":\"https://example.com/signup\"},\"expiryImageLink\":\"https://example.com/expiry.png\",\"bgImageLink\":\"https://example.com/bg.png\"}")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
  "strings"
)

func main() {
  url := "https://services.leadconnectorhq.com/countdown-timer/timers"
  payload := strings.NewReader(`{
  "name": "Flash Sale Timer",
  "timerType": "fixed",
  "templateId": "minimal",
  "endDate": "2026-04-01T00:00:00.000Z",
  "timezone": "America/New_York",
  "timerDuration": {
    "days": 1,
    "hours": 2,
    "minutes": 0,
    "seconds": 0
  },
  "waitTime": {
    "days": 0,
    "hours": 0,
    "minutes": 30,
    "seconds": 0
  },
  "designMeta": {
    "backgroundColor": "#ffffff",
    "textColor": "#111827",
    "separatorColor": "#e5e7eb",
    "labels": {
      "days": "Days",
      "hours": "Hours",
      "minutes": "Minutes",
      "seconds": "Seconds"
    }
  },
  "hideTimerForAppleMail": false,
  "dynamicTimerParams": {
    "endTime": "17:00",
    "trigger": "sent"
  },
  "links": {
    "activeLink": "https://example.com/sale",
    "expiryLink": "https://example.com/expired",
    "notUserLink": "https://example.com/signup"
  },
  "expiryImageLink": "https://example.com/expiry.png",
  "bgImageLink": "https://example.com/bg.png"
}`)
  req, _ := http.NewRequest("POST", url, payload)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/countdown-timer/timers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"
request["Content-Type"] = "application/json"
request.body = '{
  "name": "Flash Sale Timer",
  "timerType": "fixed",
  "templateId": "minimal",
  "endDate": "2026-04-01T00:00:00.000Z",
  "timezone": "America/New_York",
  "timerDuration": {
    "days": 1,
    "hours": 2,
    "minutes": 0,
    "seconds": 0
  },
  "waitTime": {
    "days": 0,
    "hours": 0,
    "minutes": 30,
    "seconds": 0
  },
  "designMeta": {
    "backgroundColor": "#ffffff",
    "textColor": "#111827",
    "separatorColor": "#e5e7eb",
    "labels": {
      "days": "Days",
      "hours": "Hours",
      "minutes": "Minutes",
      "seconds": "Seconds"
    }
  },
  "hideTimerForAppleMail": false,
  "dynamicTimerParams": {
    "endTime": "17:00",
    "trigger": "sent"
  },
  "links": {
    "activeLink": "https://example.com/sale",
    "expiryLink": "https://example.com/expired",
    "notUserLink": "https://example.com/signup"
  },
  "expiryImageLink": "https://example.com/expiry.png",
  "bgImageLink": "https://example.com/bg.png"
}'

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$body = '{
  "name": "Flash Sale Timer",
  "timerType": "fixed",
  "templateId": "minimal",
  "endDate": "2026-04-01T00:00:00.000Z",
  "timezone": "America/New_York",
  "timerDuration": {
    "days": 1,
    "hours": 2,
    "minutes": 0,
    "seconds": 0
  },
  "waitTime": {
    "days": 0,
    "hours": 0,
    "minutes": 30,
    "seconds": 0
  },
  "designMeta": {
    "backgroundColor": "#ffffff",
    "textColor": "#111827",
    "separatorColor": "#e5e7eb",
    "labels": {
      "days": "Days",
      "hours": "Hours",
      "minutes": "Minutes",
      "seconds": "Seconds"
    }
  },
  "hideTimerForAppleMail": false,
  "dynamicTimerParams": {
    "endTime": "17:00",
    "trigger": "sent"
  },
  "links": {
    "activeLink": "https://example.com/sale",
    "expiryLink": "https://example.com/expired",
    "notUserLink": "https://example.com/signup"
  },
  "expiryImageLink": "https://example.com/expiry.png",
  "bgImageLink": "https://example.com/bg.png"
}'

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/countdown-timer/timers' -Method 'POST' -Headers $headers -Body $body -ContentType 'application/json'
$response | ConvertTo-Json
```
