--- title: "Channel type AS2 (via HTTP)" slug: "rest-api-channels-as-2" updated: 2026-07-30T13:08:24Z published: 2026-07-30T13:08:24Z canonical: "docs.lobstersoftware.com/rest-api-channels-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. # Channel type AS2 (via HTTP) Use the following file for an AS2 channel. ## JSON ```json { "type": "AS2", "operation": "add", "name": "My AS2 channel", "relation": "My partner", "dmz": true, "direction": "both", "active": true, "id": 0, "local": { "id": "my local id", "server": "" }, "remote": { "id": "my remote id" }, "logSettings": { "retainDays": -1, "enabled": true }, "certificates": { "own": { "signing": 0, "encryption": 0, "tls": 0 }, "partner": { "signing": 0, "encryption": 0 } }, "sendSigned": false, "receiveSigned": false, "sendEncrypted": false, "receiveEncrypted": false, "sendCompressed": false, "cte": false, "removeSignatureSecurity": false, "signatureAlgorithm": "", "encryptionAlgorithm": "", "mdmType": "System", "mdmURL": "", "mdmDigestAlgorithm": "SHA-1", "contact": { "language": "de", "name": "John Doe", "fax": "", "email": "john.doe@example.com", "note": "" } } ``` ## Parameters | Parameter | Description | | --- | --- | | type | Fixed value *AS2*. | | operation | Fixed value *add*. | | name | Name of the channel to be added. | | relation | Name of the existing partner for which the channel is to be added. | | dmz | Checkbox *Invisible to DMZ* in the channel GUI will be set for value *false*. | | direction | The value *in* sets the value *incoming* in field *Direction* in the channel GUI. The value *out* sets the value *outgoing* in field *Direction* in the channel GUI. The value *both* sets the value *incoming and outgoing* in field *Direction* in the channel GUI. | | active | Checkbox *Active* in the channel GUI will be set for value *true*. | | id | Fixed value *0*. | | local (id, server) | Fields *Own ID* and *Partner address* in tab *Own* *ID* in the channel GUI. | | remote (id) | Field *Partner ID* in tab *Partner* *ID* in the channel GUI. | | logSettings (retainDays, enabled) | Checkboxes *Retain days* and *Use Comm-Log* in the channel GUI. | | certificates own (signing, encryption, tls) partner (signing, encryption) | Here you can specify the certificate ID (see local and patner [Certificates](/v1/docs/en/manage-partners-certificates)) for the fields *Local certificate (signing)*, *Local certificate (encryption)*, *Local certificate (TLS ClientAuth)*, *Partner certificate (signing)* and *Partner certificate (encryption)* in the channel GUI. | | sendSigned | Checkbox *Send signed* in the channel GUI. | | receiveSigned | Checkbox *Receive signed* in the channel GUI. | | sendEncrypted | Checkbox *Send encrypted* in the channel GUI. | | receiveEncrypted | Checkbox *Receive encrypted* in the channel GUI. | | sendCompressed | Checkbox *Send compressed* in the channel GUI. | | cte | Checkbox *Split message into blocks (CTE)* in the channel GUI. | | removeSignatureSecurity | Checkbox *Remove security settings of signature* in the channel GUI. | | signatureAlgorithm | Field *Signature algorithm* in the channel GUI. | | encryptionAlgorithm | Field *Encryption* in the channel GUI. | | mdmType | Field *MDN-Type* in the channel GUI. | | mdmURL | Field *MDN-URL* in the channel GUI. | | mdmDigestAlgorithm | Field *MDN-Digest alg.* in the channel GUI. | | contact (language, name, fax, e-mail, note) | See tab "*Partner contact"* (self-explanatory) in the channel GUI. | 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.