REST APIeasy-svg-pro/v1/history/library

easy-svg-pro/v1/history/library

Lists the kept versions of one icon in the free icon library.

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/library

Example

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

Description

Looks the icon up by slug in the free plugin's icon post type and returns its revisions, each run through the free hardener, with the one matching the live drawing marked current. Needs a free plugin new enough to harden icons, otherwise 409 easy_svg_pro_no_hardener.

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

Parameters

query
iconstring
Required

A free library icon, by its slug.

Return value

returnobject

{icon, keep, versions: [{id, date, markup, current}], note}. 404 easy_svg_pro_no_icon when the slug is not in the library.

Response

{icon, keep, versions: [{id, date, markup, current}], note}. 404 easy_svg_pro_no_icon when the slug is not in the library.

{
  "icon": "arrow",
  "keep": 10,
  "versions": [
    {
      "id": 512,
      "date": "2026-10-20 09:12:00",
      "markup": "<svg ...></svg>",
      "current": true
    }
  ],
  "note": ""
}