---
title: "Add photo"
method: POST
path: "/medias/photo"
tags: ["Media"]
---

# Add photo

`POST /medias/photo`

## Request

- Base URL: `https://api.fanheroapi.com`
- URL: `https://api.fanheroapi.com/medias/photo`
- Auth: API key in header `apiKey`

## Headers

- `channel` string, required
- `organization` string, required

## Request body

- CreatePhotoInput
  - `filename` string, required: File name
  - `status` 'Uploading' | 'Uploaded' | 'Transcoding' | 'Ready' | 'Ingest' | 'Processing' | 'Complete' | 'ImageComplete' | 'AudioComplete' | 'SubtitleComplete', required: The current status of the photo file. Enum
  - `width` number, required: Width of image
  - `height` number, required: Height of image
  - `imgPath` string, required: The URL of the image file

## Response `201`

Image media created.

---

[API](https://skmtc.dev/fanhero/apis/headless-cms-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/revisions/fb8d50c05ee6?raw)
