Skip to main content

REST API Overview

The ECGrid REST API v2.6 is the active, recommended interface for all new ECGrid integrations. It provides full access to network, mailbox, trading partner, parcel, interchange, and reporting functions over HTTPS using JSON.

Base URL

https://rest.ecgrid.io

Authentication

All endpoints (except GET /v2/auth/version) require authentication via one of two methods:

MethodHeaderNotes
API KeyX-API-Key: <key>Recommended for server-to-server integrations
Bearer JWTAuthorization: Bearer <token>Obtained from POST /v2/auth/login

See Authentication & Session Management for full details.

Request / Response Format

All requests and responses use application/json. Every response is wrapped in a standard envelope:

{
"success": true,
"data": { },
"errorCode": "",
"message": ""
}
FieldTypeDescription
successbooleantrue if the call succeeded; false on error
dataobject | array | nullThe response payload
errorCodestringMachine-readable error code when success is false
messagestringHuman-readable description of the result or error

Endpoints by Resource Group

119 total endpoints across 16 resource groups.

TagCountDescription
Auth6Login, logout, token refresh, session info, password change, version
Networks6Network profile, contact, configuration, X12 delimiters
Mailboxes7Mailbox CRUD, configuration, X12 delimiters
IDs13ECGrid ID management, trading partner CRUD, VAN routing
Partners7Interconnect (partner) management, notes
Parcels15Upload, download, inbox/outbox lists, confirmation, manifest
Interchanges8Interchange tracking, cancel, resend, manifest
Callbacks8Webhook registration, event queue, testing
Carbon Copies5CC routing rules CRUD
Certificates5AS2/SFTP certificate management
Comms8Communication channel configuration
Users16User CRUD, roles, API keys, password management
Keys4API key lifecycle management
Portals2Portal provisioning
Reports8Usage statistics and traffic reports
Status Lists1Reference lists for status codes and ENUMs

OpenAPI Specification

The full OpenAPI 3 spec is available at:

See Also