Skip to main content
Create catalogue photos, banners, try-on media and ad videos from your product inputs. Your agent can use files or its existing Shopify connection; no Shopify reconnection to Lamina is needed.

Connect to Brand MCP

Use one remote Streamable HTTP endpoint: https://app.uselamina.ai/mcp/commerce. If you already have a Brand connector, keep its URL, OAuth client registration and stored credentials. Refresh tool discovery with tools/list after Lamina enables delegation for your integration. For a first installation, add the URL to your MCP host or run:
Complete the host’s OAuth flow, select the billing workspace and grant lamina:creative:read and lamina:creative:write. The host sends the access token in the HTTP Authorization header. OAuth setup and token renewal

Use the tool your connection discovers

For a delegated chatbot integration, discovery returns exactly one tool, commerce_request. Call it with action: "submit", your thread identifier in conversationRef, a unique message key, the merchant’s text, a maxAssistantCredits budget and any consented references. Save the returned requestId with your thread.
  1. When Lamina returns needs_input, show its question and send the answer with reply.
  2. At awaiting_approval, show the brief, outputs and credits. Send approve with the returned plan version and exact generation limit only after the merchant agrees.
  3. With a registered receiver, use the signed completion event to display the media. Otherwise use get to check progress and retrieve results. Call get with the same request ID to recover the latest state or renew download links.
All of these are actions on the same tool. Request examples, references and webhook delivery If discovery returns commerce_describe, your connection uses the direct Brand tools. Existing direct integrations can continue their app-specific preparation, approval and status flow. To switch a chatbot to the single tool, have Lamina configure delegation for its existing client and workspace before changing its tool calls. Direct tool reference

Set up your result webhook

  1. Create a public HTTPS POST endpoint on a domain your team controls, for example https://merchant.example/webhooks/lamina. Use the standard HTTPS port and accept the POST directly without redirects.
  2. On your server, fetch Lamina’s public signing key from https://app.uselamina.ai/api/webhooks/signing-key. Verify the Ed25519 signature in X-Lamina-Webhook-Signature (hex) against the timestamp in X-Lamina-Webhook-Timestamp, a literal dot and the raw request body. Reject stale timestamps.
  3. Store verified events by eventId, acknowledge them with HTTP 2xx and use requestId to update the correct chat. Apply the highest eventSequence received for each request.
  4. Give Lamina your workspace name, OAuth client ID and receiver URL for registration and ownership verification. Keep your tokens in your connector. Before registration, a workspace enabled for MCP retrieval can already use commerce_request with action: "get". Once registered, new updates can also arrive at the receiver.
Webhook payload and delivery details