remagicaDocs home
API referenceTemplates

List templates

GET
/templates

Needs a key withtemplates:read

The templates on the Templates page, by category and search, with their cover and hover preview.

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 templates in this category.

Value in"cinematic""advertising""fashion""branding""fmcg""fastfood""editing""campaigns"
owner?string

Only your workspace's own: mine (those you saved) or team (those saved for the whole workspace). Left out: ours and your workspace's.

Value in"mine""team"
search?string

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

Lengthlength <= 200

Response Body

The templates, in gallery order.

application/json
  1. response
templates*array<>
Example Request
curl -X GET 'https://api.remagica.com/api/v1/templates'
Example Response
{  "templates": [    {      "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",      "canDelete": true,      "categories": [        "cinematic"      ],      "description": "Product shots for the autumn campaign.",      "ownerName": "string",      "slug": "string",      "title": "Autumn campaign",      "visibility": "personal"    }  ]}