remagicaDocs home
API referenceTemplates

List presets

GET
/presets

Needs a key withtemplates:read

The presets for the canvas's Presets panel, by tab and search, each with the graph to insert and its example results.

Requires scope templates:read.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Query Parameters

category?string

Only presets in this tab.

Value in"marketing""branding""ecommerce"
search?string

Only those whose title or description contains this (any case).

Lengthlength <= 200

Response Body

The presets, in panel order.

application/json
  1. response
presets*array<>
Example Request
curl -X GET 'https://api.remagica.com/api/v1/presets'
Example Response
{  "presets": [    {      "coverThumbnailUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.jpg",      "coverUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.jpg",      "outputKind": "image",      "previewUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",      "category": "marketing",      "description": "Product shots for the autumn campaign.",      "fragment": {        "edges": [          {            "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",            "source": "string",            "sourceHandle": "string",            "target": "string",            "targetHandle": "string"          }        ],        "nodes": [          {            "data": {              "results": [],              "settings": {},              "status": "default"            },            "height": 1280,            "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",            "parentId": "eb290249-5b3d-4f60-8e2a-1d9c6b4f7e05",            "position": {              "x": 1,              "y": 1            },            "type": "string",            "width": 1024          }        ],        "results": {}      },      "slug": "string",      "title": "Autumn campaign"    }  ]}