Getting Started

Environments & Base URLs

Staging and production hosts, auth headers, and base routes.

For e-commerce stores that integrate with Sendy to sync orders, catalog, inventory, and real-time chat.


Environments

EnvironmentAPI Base URL
Productionhttps://api.sendyiq.com
Staginghttps://stagging-api.sendyiq.com

Authentication

All integration endpoints require an API key issued from the Sendy dashboard.

X-API-Key: <keyId>.<secret>
Content-Type: application/json   (required for request bodies)

Base Route

/api/v1/store/integrations/*

Available Scopes

ScopeAccess
orders:readRead orders
orders:writeCreate / update / cancel orders
catalog:readRead products and inventory
catalog:writePush catalog and stock updates
messaging:readRead chat conversations
messaging:writeSend messages, create conversations

Key Endpoints

MethodPathScopeNotes
GET/api/v1/store/integrations/ordersorders:readList orders
POST/api/v1/store/integrations/ordersorders:writeCreate single order
POST/api/v1/store/integrations/orders/bulkorders:writeCreate multiple orders
PUT/api/v1/store/integrations/orders/{id}orders:writeUpdate order
DELETE/api/v1/store/integrations/orders/{id}orders:writeCancel order
POST/api/v1/store/integrations/orders/send-otporders:writeSend OTP to customer phone
POST/api/v1/store/integrations/orders/storefrontorders:writeOTP-verified storefront order
GET/api/v1/store/integrations/catalogcatalog:readRead catalog / products
POST/api/v1/store/integrations/catalogcatalog:writePush catalog update
GET/api/v1/store/integrations/chat/conversationsmessaging:readList chat conversations
POST/api/v1/store/integrations/chat/hub-tokenmessaging:readExchange API key for a short-lived WebSocket token

Real-time (WebSocket / SignalR)

Connect to the chat hub using the short-lived token returned by POST /chat/hub-token. The raw API key must never appear in a URL or WebSocket frame.

EnvironmentWebSocket URL
Productionwss://api.sendyiq.com/hubs/store-conversations
Stagingwss://stagging-api.sendyiq.com/hubs/store-conversations

After connecting, call JoinStore(token) to subscribe to the store's conversation stream.


Contract Notes

  • payment_method is required on every order create request — omitting it returns 400.
  • Address linkage is required on create / bulk order flows:
    • addressProvinceCode — from GET /api/v1/public/provinces
    • addressAreaId — from GET /api/v1/public/provinces/{code}/areas
  • fulfillmentType must be from_to or warehouse.
  • Duplicate SKUs in items on the same order are rejected with 400.

MCP / AI Agent

Sendy exposes a Streamable-HTTP MCP server for AI-agent integrations. Auth is OAuth 2.0 PKCE bearer (not API key).

EnvironmentMCP Endpoint
Productionhttps://api.sendyiq.com/api/v1/store/mcp
Staginghttps://stagging-api.sendyiq.com/api/v1/store/mcp

Full setup guide: ../03-integrations/store-mcp-server.md


Detailed Specs

Source: DOCS/07-external-connectors/store.md