---
title: "Upload Reference Image"
method: POST
path: "/accounts/{account_id}/media/reference"
tags: ["media"]
---

# Upload Reference Image

`POST /accounts/{account_id}/media/reference`

## Request

- Base URL: `https://api.meetadmiral.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.meetadmiral.com/accounts/{account_id}/media/reference`
- Auth: none declared

Upload a brand asset (logo, product photo) as a reference image —
a `media` row with kind="reference", the same S3-backed store as
generated creative. Later generation calls pass its id back as one of
up to 3 `reference_media_ids` (app/ai/creative_image.py) so on-brand
output is conditioned on it. Flag-gated on the same creative_gen flag
as generation: a reference with nothing to feed isn't worth exposing.

## Path parameters

- `account_id` string, uuid, required

## Request body

- UploadReferenceRequest
  - `data` string, required
  - `content_type` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/meetadmiral/apis/admiral-api.md) · [All operations](https://skmtc.dev/meetadmiral/apis/admiral-api/llms.txt) · [OpenAPI document](https://skmtc.dev/meetadmiral/apis/admiral-api/revisions/3cf1ee58ce50?raw)
