--- title: "AS2 (Input agent)" slug: "profiles--entry-tab-2-as-2" updated: 2026-09-14T12:22:25Z published: 2026-09-14T12:22:25Z canonical: "docs.lobstersoftware.com/profiles--entry-tab-2-as-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # AS2 (Input agent) **URL:** http(s):///partner/AS2Retrieve/ The sender and receiver of the incoming data are then checked against those defined in the Profile (Channel). In addition, one of the attachment file names must match the given file pattern in the profile. If the conditions are met by multiple (active) profiles, it has to be ensured that only one of the profiles is executed. In those cases, the [Profile scoring](/v1/docs/en/intro-profiles-phase-1-profile-scoring) will decide. ## Settings ![images/download/attachments/137312302/as2-version-1-modificationdate-1747036846653-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/as2-version-1-modificationdate-1747036846653-api-v2.png) (1) **File pattern:** Pattern for the file name of the attachment. You can enter multiple file patterns separated by the pipe character (|) (e. g. **.txt|*.csv*). (2) **Subject:** Expected value for the subject. If the field is empty, the subject will not be evaluated. (3) **MIME type:** Data can be restricted to a specific MIME type. The MIME type of a received AS2 message is available in system variable VAR_SYS_AS2_MIME_TYPE. (4) Partner selection left: You can select a partner and then move any of his channels to the right. Only active AS2 channels with data direction *Incoming* are offered. (5) **Selected partner channels:** AS2 channels selected for the profile. At least one must be selected. ## HTTP request headers Request headers can be read with the system variables *MSG_CALL_HEADER_HTTP_*. ## HTTP response headers HTTP response headers can be set in the response via system variables named *VAR_RESPONSE_HTTP_HEADER_*. So variable VAR_RESPONSE_HTTP_HEADER_Server, for example, will create the HTTP response header "Server". The response header "Content-Length" is ignored, i.e. it cannot be overwritten. ## Notes - This Input agent allows checking the maximum size of input files. See [Maximum size of input files and messages](/v1/docs/en/intro-profiles-phase-1-max-size-input). - Data that cannot be assigned to any profile is moved to the “Unresolved” area. See also [Warning for non-assignable input data](/v1/docs/en/intro-profiles-phase-1-warning-nonassign). - The subject is available in the profile via the system variable *VAR_MAILSUBJECT*. A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. A central data record in partner management that consolidates the connection parameters for a communication partner, such as the URL, access credentials, and protocol. Changes to a channel immediately affect all profiles, ASM entries, and content inspection entries that use that channel. Communication protocol for secure EDI data exchange via HTTP/HTTPS. AS2 encrypts and signs messages and confirms receipt via MDN. AS2 is defined in the RFC 4130 standard. The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data).