---
title: "Share Images With Recipient Endpoint"
method: POST
path: "/shareImagesWithRecipient"
---

# Share Images With Recipient Endpoint

`POST /shareImagesWithRecipient`

Shares multiple images with a recipient by adding entries to the image_shares table.

Expects:
    - JSON with:
        - 'imageIds': list of image IDs to share
        - 'recipientId': ID of the recipient to share with

Process:
    1. Checks if images and recipient exist
    2. Adds entries to image_shares table, ignoring duplicates

Returns:
    - Success message with counts of shared images
    - Detailed results including successful and skipped operations

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/3966713f5d52/schema)
