---
title: "Add Letter to Send Queue"
method: POST
path: "/email/v1/letters/by_folder/{folderId}"
tags: ["emailService"]
---

# Add Letter to Send Queue

`POST /email/v1/letters/by_folder/{folderId}`

Adds a letter to the specified folder's send queue. The `emailFolderId` parameter must reference a folder with the `is_pending` flag set to `true`. In the request body, the `destination_folder_id` must reference a folder with the `is_sent` flag set to `true`.

## Path parameters

- `folderId` integer, required

## Request body

- LetterSendDto
  - `destination_folder_id` integer
  - `signature_id` integer
  - `subject` string
  - `body` string
  - `body_html` string
  - `parent_message_id` string
  - `main_message_id` string
  - `is_read` boolean
  - `contacts` object[]
    - `email` string
    - `name` string
    - `contact_type` string
  - `crm_entities` LetterCrmEntities

## Response `201`

OK

- LetterDetails
  - `id` integer
  - `email_id` integer
  - `signature_id` integer
  - `subject` string
  - `body` string
  - `body_html` string
  - `date` integer
  - `is_read` boolean
  - `status` string
  - `contacts` LetterContact[]
    - `id` integer
    - `name` string
    - `email` string
  - `crm_entities` LetterCrmEntities

## Other responses

- `401` — Access token is missing or invalid
- `422` — Validation error response

---

[API](https://skmtc.net/uspacy/apis/uspacy-api-2.md) · [All operations](https://skmtc.net/uspacy/apis/uspacy-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uspacy/uspacy-api-2/versions/c3f48fd1c26b/schema)
