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

# Share Images With Recipient Endpoint

`POST /shareImagesWithRecipient`

## Request

- Base URL: `https://api.pavoot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pavoot.com/shareImagesWithRecipient`
- Auth: none declared

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/pavoot-api.md) - [All operations](https://skmtc.dev/pavoot/apis/pavoot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pavoot/apis/pavoot-api/revisions/8c0cd91c2a05?raw)
