# Retrieve File Execution Input
Source: https://www.stedi.com/docs/healthcare/api-reference/get-execution-input

***

title: Retrieve File Execution Input
sidebarTitle: "File Execution Input"
openapi: core get /executions/{executionId}/input
-------------------------------------------------

This endpoint retrieves a file execution's input document before it passes through any translation or mappings. You can use this to retrieve 277CA claim acknowledgments or 835 Electronic Remittance Advice (ERAs) in X12 EDI format.

The input document can be in either X12 EDI or JSON format, depending on the direction of the file. For example:

* If you send an 834 benefit enrollment to a payer, the input document will be in the JSON format you submitted to Stedi's API.
* If a payer sends you a 277CA claim acknowledgment or an 835 Electronic Remittance Advice (ERA), the input document will be in the original X12 EDI format, including the envelope.

There are no size restrictions on documents when fetching from this endpoint.

## Response

This endpoint returns a `302` Temporary redirect to the document download URL. Many HTTP clients will automatically follow this redirect, or have a simple follow redirects configuration to set. For example, the `-L` or `--location` flags in cURL requests will automatically follow the redirect. In this case, the response will contain the full input document.

In the event you cannot, or chose not to automatically follow the redirect, the body of the response contains a JSON object with a single key `documentDownloadUrl` which contains a temporary URL to download the document. This URL is available for 60 minutes.