> For the complete documentation index, see [llms.txt](https://postman-v1.guides.gov.sg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://postman-v1.guides.gov.sg/email-api-guide/programmatic-email-api/send-email-api/email-body/embedding-images/linked-images.md).

# Linked Images

## How It Works

Linked images are images hosted on a server and displayed in the body of an email via HTML image tags. The email client will retrieve the image from the source indicated in the `img` tag.

An example linked image is: `<img src="`[`https://file.go.gov.sg/ogp-logo.png`](https://file.go.gov.sg/ogp-logo.png)`">`.

## Recommended for Same Images Across Multiple Emails

If you are using the same set of images across multiple emails, an easy way to use linked images in your email is to upload the image to a service like GoGovSG and reuse the same `img` tags in your emails.

For step-by-step instructions on how to upload images to GoGovSG, [see this](/campaign-guide-email/email/format-bar.md#embedding-an-image-in-email).

## Unique Image for Each Email

If you are embedding a unique image for each email, you may consider:

* Programmatically uploading your image to a file hosting service
  * Currently, we do not provide such a service. However, we are looking into possible solutions, please [contact us](https://go.gov.sg/postman-contact-us) if this could be helpful to your agency.
* Using [content-ID images](/email-api-guide/programmatic-email-api/send-email-api/email-body/embedding-images/content-id-images.md)

## Sample API Call

```json
{
  "subject": "Test subject",
  "body": "<p>This contains an image</p><br><br><img src='https://file.go.gov.sg/ogp-logo.png'><br><br><p>hello there</p>",
  "recipient": "recipient@agency.gov.sg"
}
```

The resulting email:

<figure><img src="/files/aiKsSWuhsNimRJxkLEHk" alt="" width="335"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://postman-v1.guides.gov.sg/email-api-guide/programmatic-email-api/send-email-api/email-body/embedding-images/linked-images.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
