# Template Static Elements API

| Image                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------- |
| *\<img width=’100’ height=’50’ src=’image-uuid:1abd7329-86f1-4f90-81e7-37ea26fcb3a9’ hash=’aaf24fa42dg42gd42sgd2s2gsd’/>* |
| *\<img width=’100’ height=’50’ src=’data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABQCAY==’/>*                       |

**Hash** — is a necessary attribute in order to confirm the veracity of the image during the signing flow.

There are 2 types of images:

1. Image uploaded to the platform.
2. Base64 version of image.

URL is not allowed for image source! Instead please download the picture and upload to the platform using API:

```
--upload--
POST /api/v1/template/image
response {
    "imageUuid" : "UUID",  //UUID of image
    "src" : "string",      //src for img tag in format "image-uuid:1abd7329-86f1-4f90-81e7-37ea26fcb3a9"
    "hash": "string"       //hash of the image
}

--download--
GET /api/v1/template/{uuid}/image?imageUuid={required}&envelopeUuid={optional}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/template-api/template-static-elements-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
