---
title: "Upload a photo to attach to a post or comment"
method: POST
path: "/community/images"
tags: ["Community"]
---

# Upload a photo to attach to a post or comment

`POST /community/images`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/community/images`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

multipart/form-data with a file field. PNG, JPEG, GIF, or WebP up to 5 MB; the type is checked from the file contents. Pass the returned id as imageIds when posting.

## Response `201`

id and contentType of the unattached photo

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
