Skip to main content

Authentication

All requests to https://mcp.ecgrid.io/mcp require exactly one of the following:

MethodHeaderFormat
API KeyX-APIKeyYour ECGrid API key from the ECGrid Developer Portal

Sending neither, returns 401. The raw API key never appears in server logs.

Auth Levels

Your API key carries a permission tier that determines which operations are available. The authLevel field is returned in every tool response.

Auth LevelAccess TypeDescription
TPUserRead-onlyTrading partner — read-only access scoped to a single trading partner relationship
MailboxUserStandardStandard access to a specific mailbox within a network
MailboxAdminAdminElevated administrative access to a specific mailbox
NetworkUserStandardStandard access across all mailboxes within your ECGrid network
NetworkAdminAdminFull administrative access across your ECGrid network — broadest level available to customers

All 36 tools are accessible at Any auth level, scoped to what your API key can see. A NetworkAdmin key sees all mailboxes on their network; a MailboxUser key sees only their assigned mailbox.

Getting Your API Key

  1. Go to the your ECGrid Portal
  2. Log in with your ECGrid account
  3. Navigate to account settings (Profile)
  4. Copy your API key

Keep your API key private. Do not share it, commit it to source control, or include it in client-side code. Treat it like a password.

See Also