REST APIeasy-svg-pro/v1/history

easy-svg-pro/v1/history

Lists the kept versions of every icon in one icon set.

REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/history/history.php

Internal: not part of the promised public surface. It may change without notice.

Usage

GET /wp-json/easy-svg-pro/v1/history

Example

curl -X GET "https://example.com/wp-json/easy-svg-pro/v1/history?set=42&icon=arrow" \
	-H "X-WP-Nonce: $NONCE" -b "$COOKIES"

Description

Reads the set's WordPress revisions and returns, for each icon the set holds now, its earlier drawings, hardened before they are returned because the screen draws them. Icons that only exist in history are left out on purpose. keep is the number of versions kept per set, and note explains an empty history.

Permission: manage_options and an active licence with the Icon history feature switched on under Icons, Features.

Parameters

query
setinteger
Required

The icon set to read the history of. Minimum 1.

query
iconstring

One icon slug, when only its versions are wanted.

Return value

returnobject

{set, keep, icons: [{icon, label, versions: [{id, date, since, label, markup, current}]}], note}. 400 or 404 easy_svg_pro_no_set for a missing or wrong id.

Response

{set, keep, icons: [{icon, label, versions: [{id, date, since, label, markup, current}]}], note}. 400 or 404 easy_svg_pro_no_set for a missing or wrong id.

{
  "set": 42,
  "keep": 10,
  "icons": [
    {
      "icon": "arrow",
      "label": "Arrow",
      "versions": [
        {
          "id": 311,
          "date": "2026-10-20 09:12:00",
          "since": "2026-10-20 09:12:00",
          "label": "Arrow",
          "markup": "<svg ...></svg>",
          "current": false
        }
      ]
    }
  ],
  "note": ""
}