remagicaDocs home
API referenceThumbnails

Get a thumbnail reference

GET
/thumbnail-references/{id}

Needs a key withreferences:read

One thumbnail reference with its curation notes and licence record.

Requires scope references: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.

Path Parameters

id*string
Length1 <= length <= 40

Response Body

The reference.

application/json
  1. response
categories*array<string>
curationStatus*string

recommended_with_context (curated), unreviewed or avoid_as_generation_reference.

height*integer
id*string

Stable ref-NNNN id.

key*string

Storage key of the original: pass it as a reference image's key to use it in a generation.

previewUrl*string

A 480px WebP for grids.

recipes*array<string>
referenceReady*boolean

Curated: recipes and defaults use it.

source*string
title*string
url*string

The original image.

width*integer
contentType*string
curationNotes*array<string>
license*

The licence record kept with the image.

sha256*string
sourceUrl*string|null
Example Request
curl -X GET 'https://api.remagica.com/api/v1/thumbnail-references/a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05'
Example Response
{  "categories": [    "string"  ],  "curationStatus": "string",  "height": 1280,  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",  "previewUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",  "recipes": [    "string"  ],  "referenceReady": true,  "source": "string",  "title": "Autumn campaign",  "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",  "width": 1024,  "contentType": "image/png",  "curationNotes": [    "string"  ],  "license": {},  "sha256": "string",  "sourceUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"}