AgentLink API overview
AgentLink exposes three categories of endpoints: public discovery and proxy, authenticated embedded-admin APIs, and webhooks.Public discovery endpoints
These routes are CORS-enabled and intended for external agents and browser-based clients. The shop-scoped discovery and proxy routes carry shop validation, rate limits, and per-request installation verification;/healthz is an unauthenticated liveness probe.
Curl example
SetAPP_ORIGIN to the app’s HTTPS origin, without a trailing slash. Fetch a shop’s public UCP discovery profile:
UCP profile discovery
The/.well-known/ucp endpoint returns a signed JSON profile with merchant identity, endpoints, capabilities, payment handlers, and policies. When a profile is active and an audit has been run, the response includes a x-agentic-profile-signature header containing the ECDSA P-256/SHA-256 signature of the compact JSON body.
MCP proxy
POST /mcp/:shop/:type forwards JSON-RPC MCP requests to the shop’s configured MCP endpoint. The proxy:
- Supports
AuthorizationandMCP-Protocol-Versionheader forwarding. - Enforces per-shop rate limits (120 requests per minute).
- Records SHA-256 request/response hashes with AES-256-GCM encrypted replay bodies.
- Returns
x-agentic-request-idheader for log correlation. - Rejects bodies over 1 MiB.
- Requires an active subscription or developer entitlement.
Authenticated embedded-admin APIs
These routes require a Shopify App Bridge session token and are scoped to the authenticated shop. Merchant mutation routes require owner/admin subject.Integration APIs
These are under the/api/integrations prefix and require merchant admin auth:
Privacy exports
Billing routes
Authentication varies by route./billing/plans does not require authentication. /billing/callback verifies the signed, single-use billing state returned after Shopify billing approval. All other routes require a Shopify App Bridge session token for a merchant administrator.
Agency dashboard
Under the/agency prefix, authenticated by an app-issued HS256 bearer token:
Webhooks
AgentLink registers Shopify webhooks under the/webhooks prefix:
All webhooks use HMAC verification. Drift webhooks deduplicate on signed payload hash. Privacy webhooks are transactional, with paginated storage and retry support.
Pcnaid Documentation › Shopify Ecosystem › AgentLink › Developer