API referenceTemplates
List templates
GET
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.
apiKeyheader
x-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.
category?stringOnly templates in this category.
Value in
"cinematic""advertising""fashion""branding""fmcg""fastfood""editing""campaigns"owner?stringOnly 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?stringOnly those whose title or description contains this (any case).
Length
length <= 200The templates, in gallery order.
application/json- response
templates*array<>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" } ]}