---
title: "Get the image associated with a template"
method: POST
path: "/api/v1/templates/image"
tags: ["Template"]
---

# Get the image associated with a template

`POST /api/v1/templates/image`

Returns metadata about the image contentlet associated with a template, including the image's inode, name, identifier, and file extension. Returns 404 if the template does not exist or has no associated image.

## Request body

- TemplateImageForm
  - `templateId` string

## Response `200`

Template image metadata returned successfully

- object — Template image metadata containing inode, name, identifier, and file extension of the associated image contentlet

## Other responses

- `401` — Authentication required
- `404` — Template does not exist or has no associated image

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
