> This page is for version v2026-04-01 (default).
> For other versions, use one of these documentation indexes:
> - v2026-04-01 (default): https://docs.givechariot.com/v2026-04-01/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.givechariot.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.givechariot.com/_mcp/server.

# Create a Mail Item

POST https://api.givechariot.com/v1/mail_items
Content-Type: application/json

Create a mail item from a scanned PDF. Use [Upload a File](/api/files/upload) with purpose `inbound_mail_item`, then pass the returned file ID to this endpoint.

Chariot records any donations it finds anywhere in the mail item, including on a check, in a grant letter, or in a donor’s handwritten note. If the mail item contains a check, Chariot also deposits it.

Reference: https://docs.givechariot.com/api/mail-items/create

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.givechariot.com` (Production, default)
- `https://sandboxapi.givechariot.com` (Sandbox)

## Request

### Headers

- `Idempotency-Key` (string, required) — A required key that returns the same mail item when you retry the request with the same key.

### Body (application/json)

This endpoint expects an object.

- `file_id` (string, required) — The ID of the PDF uploaded with purpose `inbound_mail_item`.

## Response

### 201

The mail item was created.

- `id` (string, required) — The unique identifier for the mail item.
- `status` (enum, required) — The processing status of a Mail Item. - `processing`: The mail item is being scanned and parsed. - `needs_review`: The mail item requires your review. - `under_review`: Chariot is reviewing the mail item. No action is required. - `processed`: The mail item has been successfully parsed and classified, and is ready for any downstream automations or workflows to run on it. - `rejected`: The mail item will not produce a Donation (e.g., return-to-sender, illegible, unrelated correspondence).
  - Allowed values: `processing`, `needs_review`, `under_review`, `processed`, `rejected`
- `received_at` (datetime, required) — The date and time when the mail item was physically received at the lockbox.
- `scans` (list of MailItemScan, required) — The scans taken of the mail item, newest first. A mail item typically has one scan; a second scan appears after an admin requests a rescan of the physical mail.
- `created_at` (datetime, required) — The date and time when the mail item record was created.
- `updated_at` (datetime, required) — The date and time when the mail item record was last updated.
- `lockbox_id` (string, optional) — The unique identifier for the lockbox that received the mail item.
- `donation_ids` (list of string, optional) — The `donation_` IDs recorded from the mail item, oldest first, which you can fetch through the Donations API. The array is empty until Chariot finishes processing the mail item.
- `deposit_ids` (list of string, optional) — The `deposit_` IDs for checks Chariot deposited from the mail item, oldest first, usually with zero or one entry. The array is empty at creation or if the mail item has no check, and a rescan after a failed deposit adds another entry.

## Errors

### 400 Bad Request Error

The request is invalid or contains invalid parameters

- `type` (string, required) — A URI reference identifying the problem type.
- `title` (string, required) — A short, human-readable summary of the problem type.
- `status` (integer, required) — The HTTP status code for this error.
- `detail` (string, required) — A human-readable explanation specific to this occurrence.

### 401 Unauthorized Error

Unauthorized. The request is missing the security (OAuth2 Bearer token) requirements and the server is unable to verify the identify of the caller.

- `type` (string, required) — A URI reference identifying the problem type.
- `title` (string, required) — A short, human-readable summary of the problem type.
- `status` (integer, required) — The HTTP status code for this error.
- `detail` (string, required) — A human-readable explanation specific to this occurrence.

### 403 Forbidden Error

Access denied

- `type` (string, required) — A URI reference identifying the problem type.
- `title` (string, required) — A short, human-readable summary of the problem type.
- `status` (integer, required) — The HTTP status code for this error.
- `detail` (string, required) — A human-readable explanation specific to this occurrence.

### 409 Conflict Error

Resource Conflicts

- `type` (string, required) — A URI reference identifying the problem type.
- `title` (string, required) — A short, human-readable summary of the problem type.
- `status` (integer, required) — The HTTP status code for this error.
- `detail` (string, required) — A human-readable explanation specific to this occurrence.

### 500 Internal Server Error

Internal Server Error

- `type` (string, required) — A URI reference identifying the problem type.
- `title` (string, required) — A short, human-readable summary of the problem type.
- `status` (integer, required) — The HTTP status code for this error.
- `detail` (string, required) — A human-readable explanation specific to this occurrence.

## Types

### MailItemScan

A single scan of a Mail Item. Multiple entries represent rescans.

- `file_id` (string, required) — The unique identifier for the scanned document file. Fetch contents via the File API.
- `created_at` (datetime, required) — The date and time when the scan was taken.

## Examples

**Request**

```json
{
  "file_id": "file_01j8rs605a4gctmbm58d87mvsj"
}
```

**Response**

```json
{
  "id": "mail_01j8rs605a4gctmbm58d87mvsj",
  "status": "processed",
  "received_at": "2020-01-31T23:59:59Z",
  "scans": [
    {
      "file_id": "file_01j8rs605a4gctmbm58d87mvsj",
      "created_at": "2020-01-31T23:59:59Z"
    }
  ],
  "created_at": "2020-01-31T23:59:59Z",
  "updated_at": "2020-01-31T23:59:59Z",
  "lockbox_id": "lockbox_01j8rs605a4gctmbm58d87mvsj",
  "donation_ids": [
    "donation_01j8rs605a4gctmbm58d87mvsj"
  ],
  "deposit_ids": [
    "deposit_01j8rs605a4gctmbm58d87mvsj"
  ]
}
```