---
title: "Allow a refused mail's sender and file its kept files"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Allow a refused mail's sender and file its kept files

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/arrivals/not-accepted/&#123;id&#125;/allow</code>
</div>
</div>

For a mail refused because its sender is not on the inbox's list, and that still keeps its invoice files: adds the sender to the list (a new version of `PUT /v1/email-inbox`'s senders, unless an entry already admits it), then files the kept files through the validation operation an arriving mail uses. The mail is then `filed` and its kept files are deleted. A repeated call never files the mail twice.

A refused mail keeps its XML and PDF files for 30 days, or until it is filed or dismissed. Only a signed-in person may call this.

## Path parameters

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The sender is allowed and the files are filed. |
| `400` | The sender cannot be added to the list (`invalid_email_inbox`), for example because the list is full. |
| `401` | No usable credential was sent (`invalid_credentials`), or it is not a signed-in person (`session_required`). |
| `404` | This company has no mail with that id (`arrival_not_found`). |
| `409` | The mail keeps no file (`nothing_kept`). It was filed, dismissed, is older than 30 days, or kept none. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/allow-a-refused-mail-s-sender-and-file-its-kept-files/index.mdx
