curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/connections/sftp/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"host": "string",
"host_key": "string",
"inbound_dir": "string",
"mailbox_policy": {
"delete_after_ack": false,
"inbound_prefixes": [],
"outbound_prefixes": {},
"poll_interval_seconds": 10
},
"outbound_dir": "string",
"password": "YOUR_API_KEY",
"port": 1,
"private_key_pem": "string",
"user": "string"
}'
Sftp save
Tested mailbox saved; production pickup remains gated by partner readiness
POST
/
v1
/
connections
/
sftp
/
{partner_id}
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/connections/sftp/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"host": "string",
"host_key": "string",
"inbound_dir": "string",
"mailbox_policy": {
"delete_after_ack": false,
"inbound_prefixes": [],
"outbound_prefixes": {},
"poll_interval_seconds": 10
},
"outbound_dir": "string",
"password": "YOUR_API_KEY",
"port": 1,
"private_key_pem": "string",
"user": "string"
}'
Path parameters
string
required
Trading partner identifier
Request body
MailboxInput
string
required
string
required
string
required
MailboxPolicy
Show MailboxPolicy
Show MailboxPolicy
boolean
Delete only after durable processing and successful acknowledgment publication. Invalid or uncertain files remain on the server for operator review. Default:
false.string[]
Empty uses .edi/.x12/.txt; otherwise only these case-sensitive prefixes. Default:
[].object
Agreed document codes, keyed by X12 set (including 997/999/TA1). When nonempty, a missing code fails acceptance instead of inventing a name. Default:
{}. Additional keys map to values of type string.integer (int32)
Default:
10. Minimum: 0.string
required
string,null
integer (int32)
required
Minimum:
0.string,null
string
required
Response
No response body. Tested mailbox saved; production pickup remains gated by partner readiness.Status codes
| Code | Meaning |
|---|---|
200 | Tested mailbox saved; production pickup remains gated by partner readiness |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/connections/sftp/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"host": "string",
"host_key": "string",
"inbound_dir": "string",
"mailbox_policy": {
"delete_after_ack": false,
"inbound_prefixes": [],
"outbound_prefixes": {},
"poll_interval_seconds": 10
},
"outbound_dir": "string",
"password": "YOUR_API_KEY",
"port": 1,
"private_key_pem": "string",
"user": "string"
}'
Last modified on October 20, 2026