30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Elementor Template

elementor/get-template returns a single Elementor template with its metadata, its display conditions, and optionally its full document payload.

The payload is optional because it is large and usually not what you need.

At a glance

Abilityelementor/get-template
ToolsetElementor — toolset/elementor
GroupElementor › Templates & Theme Builder
RequiresElementor, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Most questions about a template are about its metadata: what type it is, whether it is published, and — for Theme Builder templates — where it applies. All of that is small.

The document is the whole design, which on a page template is a substantial JSON tree. Fetching it by default would make every listing-adjacent read expensive for no reason.

Theme Builder templates take effect through display conditions: rules saying which parts of the site a header, footer, single or archive template applies to. A template with no conditions is a template that renders nowhere.

So the conditions come back by default. “Which header is this and where does it show” is the question, and answering it should not require a second call.

Take the payload when you are exporting, duplicating by hand, or inspecting the structure — and use elementor/export-template when portability is the point.

Input

NameTypeRequiredWhat it is
template_idintegerYesThe template post ID.
include_databooleanNo — defaults to falseInclude the full _elementor_data payload.

What comes back

NameTypeWhat it is
templateobjectThe template with its metadata and conditions.
dataarrayThe document payload, when requested.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What is template 640 and where does it apply?

It resolves to one call:

{
  "ability": "elementor/get-template",
  "parameters": {
    "template_id": 640
  }
}

Worth knowing

  • Conditions come back by default; the document payload does not.
  • The payload is large on page templates.
  • For moving a template between sites, export rather than reading the payload.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading