---
title: "Replay AS2 Incoming Message"
method: POST
path: "/as2_incoming_messages/{id}/replay"
tags: ["as2_incoming_messages", "AS2 Incoming Messages"]
---

# Replay AS2 Incoming Message

`POST /as2_incoming_messages/{id}/replay`

## Request

- Base URL: `https://app.files.com/api/rest/v1`
- URL: `https://app.files.com/api/rest/v1/as2_incoming_messages/{id}/replay`
- Auth: none declared

Replay AS2 Incoming Message

## Path parameters

- `id` integer, required

## Response `201`

The As2IncomingMessages object.

- As2IncomingMessageEntity: As2IncomingMessageEntity model
  - `id` integer: ID of this AS2 incoming message record.
  - `replayed_from_message_id` integer: ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
  - `workspace_id` integer: ID of the Workspace associated with this AS2 Incoming Message.
  - `as2_partner_id` integer: Id of the AS2 Partner associated with this message.
  - `as2_station_id` integer: Id of the AS2 Station associated with this message.
  - `uuid` string: UUID assigned to this message.
  - `content_type` string: Content Type header of the incoming message.
  - `http_headers` object: HTTP Headers sent with this message.
  - `processing_result` 'not_started' | 'unable_to_find_station' | 'unable_to_find_partner' | 'unable_to_validate_signature' | 'decrypt_fail' | 'file_save_fail' | 'success': Result of processing.
  - `processing_result_description` string: Result of processing description.
  - `mic` string: AS2 Message Integrity Check
  - `mic_algo` string: AS2 Message Integrity Check Algorithm Used
  - `as2_to` string: AS2 TO header of message
  - `as2_from` string: AS2 FROM header of message
  - `message_id` string: AS2 Message Id
  - `subject` string: AS2 Subject Header
  - `date` string: Date Header
  - `body_size` string: Encrypted Payload Body Size
  - `attachment_filename` string: Filename of the file being received.
  - `ip` string: IP Address of the Sender
  - `created_at` string, date-time: Message creation date/time
  - `http_response_code` string: HTTP Response Code sent for this message
  - `http_response_headers` object: HTTP Headers sent for this message.
  - `recipient_serial` string: Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
  - `hex_recipient_serial` string: Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
  - `recipient_issuer` string: Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
  - `message_received` boolean: Message body received?
  - `message_decrypted` boolean: Message decrypted successfully?
  - `message_signature_verified` boolean: Message signature verified?
  - `message_processing_success` boolean: Message processed successfully?
  - `message_mdn_returned` boolean: MDN returned?
  - `encrypted_uri` string: URL to download the encrypted signed smime that is to sent as AS2 body
  - `smime_signed_uri` string: URL to download the file contents as smime with signature
  - `smime_uri` string: URL to download the file contents encoded as smime
  - `raw_uri` string: URL to download the original file contents
  - `mdn_response_uri` string: URL to download the http response body

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `405`: Method Not Allowed
- `409`: Conflict
- `412`: Precondition Failed
- `422`: Unprocessable Entity
- `423`: Locked
- `429`: Too Many Requests

## Changes

> 29 revisions in range; 4 not diffed.

- **2026-10-27** `b2dcaf799884`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/files/apis/files-com-api/changes/as2_incoming_messages/:id/replay/post.md)

---

[API](https://skmtc.dev/files/apis/files-com-api.md) - [All operations](https://skmtc.dev/files/apis/files-com-api/llms.txt) - [OpenAPI document](https://skmtc.dev/files/apis/files-com-api/revisions/c8a426b2010e?raw)
