> For the complete documentation index, see [llms.txt](https://elacitylabs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elacitylabs.gitbook.io/docs/api/reference/images.md).

# Images

Image and thumbnail serving

## GET /image/{id}

> Get an image by ID

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Images","description":"Image and thumbnail serving"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"paths":{"/image/{id}":{"get":{"tags":["Images"],"summary":"Get an image by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Image file","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}}}}}}}
```

## GET /image/{subfolder}/{id}

> Get an image from a subfolder

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Images","description":"Image and thumbnail serving"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"paths":{"/image/{subfolder}/{id}":{"get":{"tags":["Images"],"summary":"Get an image from a subfolder","parameters":[{"name":"subfolder","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Image file","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}}}}}}}
```

## GET /thumbnails/{contentType}/{subset}

> Get a thumbnail

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Images","description":"Image and thumbnail serving"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"paths":{"/thumbnails/{contentType}/{subset}":{"get":{"tags":["Images"],"summary":"Get a thumbnail","parameters":[{"name":"contentType","in":"path","required":true,"schema":{"type":"string"}},{"name":"subset","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Thumbnail image","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}}}}}}}
```
