For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve a widget with its type

Returns the same widget as GET /widgets/{id}/, but widget_type is the full widget type object — identifier, name, and schema — instead of an identifier. Useful for rendering an edit form for the widget's attributes.

Localizable attribute values are returned in the language of the request — see IGNORE_ACCEPT_LANGUAGE_HEADER under Dynamic Settings & Environment Variables.

get
/widgets/{id}/detailed/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the widget.

Responses
200

The requested widget with its embedded widget type.

application/json

A CMS widget with its widget type embedded.

pkintegerRead-onlyOptional

The unique identifier of the widget.

created_datestring · date-timeRead-onlyOptional

When the widget was created.

modified_datestring · date-timeRead-onlyOptional

When the widget was last changed.

namestring · max: 255Optional

The display name of the widget. Not unique.

slugstring · max: 255Optional

The unique, normalized (lower-case, hyphenated) key the storefront uses to look the widget up.

templatestring · max: 512Optional

The path of the template used to render the widget.

get/widgets/{id}/detailed/
GET /api/v1/remote/1/widgets/{id}/detailed/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 12,
  "created_date": "2026-09-29T09:08:29.608203Z",
  "modified_date": "2026-09-29T09:08:29.608215Z",
  "name": "Home Hero Banner",
  "slug": "home-hero-banner",
  "widget_type": {
    "pk": 1,
    "name": "hero_banner",
    "schema": {
      "title": {
        "type": "text",
        "required": true
      },
      "image": {
        "type": "image",
        "required": false
      }
    }
  },
  "template": "widgets/hero-banner.html",
  "attributes": {
    "title": "Summer Sale",
    "subtitle": "Up to 50% off"
  },
  "attributes_kwargs": {}
}

Last updated

Was this helpful?