curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/connections/sync' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"api_key": "YOUR_API_KEY",
"environment": "string",
"sync_tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"webhook_secret": "YOUR_API_KEY"
}'
Save (/v1/connections/sync)
Credentials tested and immutable connection revision saved
POST
/
v1
/
connections
/
sync
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/connections/sync' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"api_key": "YOUR_API_KEY",
"environment": "string",
"sync_tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"webhook_secret": "YOUR_API_KEY"
}'
Request body
ConnectionInput
string
required
Tenant-scoped API key issued by StateSet Sync, never a platform admin key.
string
required
string
required
string
required
HMAC secret configured for this tenant on StateSet Sync.
Response
No response body. Credentials tested and immutable connection revision saved.Status codes
| Code | Meaning |
|---|---|
200 | Credentials tested and immutable connection revision saved |
400 | Connection test rejected |
403 | Organization administrator required |
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/sync' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"api_key": "YOUR_API_KEY",
"environment": "string",
"sync_tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"webhook_secret": "YOUR_API_KEY"
}'
Last modified on October 20, 2026