Skip to content
v1.0.0
OpenAPI 3.0.1

Timer Clone API

This API call allows you to update timer links in the HTML code when copying an email template outside the Stripo editor. It ensures that the timers are correctly cloned and updated in the new template.

Server:https://plugins.stripo.email
Client Libraries

Methods

​
Methods Operations

Updating Timer Block Links

​

Clone timers and update timer links in HTML

Headers

  • Authorization token

Body

required
application/json
  • HTML code containing timer links

Responses

  • Successful response with updated HTML and timer mapping

    • HTML code with updated timer links

    • Mapping of old timer IDs to new timer IDs and URLs. Keys are old timer IDs, values are objects containing new timer information.

      Properties: 1
    application/json
Request Example for post/api/v1/timers/clone
curl https://plugins.stripo.email/api/v1/timers/clone \
  --request POST \
  --header 'ES-PLUGIN-AUTH: Bearer YOUR_AUTH_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "html": "Timer link: ..."
}'
{
  "html": "Timer link: ...",
  "timersMap": {
    "152701": {
      "id": 152751,
      "url": "https://cdt-timer-plugins.stripocdn.email/api/v1/images/VxPC8zhLbJuBOfRINW0LODFkYw7WWRpi5WgOOq4AGsI"
    },
    "152702": {
      "id": 152752,
      "url": "https://cdt-timer-plugins.stripocdn.email/api/v1/images/s5exXSdnyicX1pCXcz83Faw-C7kFWaTlkeHuxpPS8rs"
    }
  }
}