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:
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.
- When Lamina returns
needs_input, show its question and send the answer withreply. - At
awaiting_approval, show the brief, outputs and credits. Sendapprovewith the returned plan version and exact generation limit only after the merchant agrees. - With a registered receiver, use the signed completion event to display the media. Otherwise use
getto check progress and retrieve results. Callgetwith the same request ID to recover the latest state or renew download links.
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
- 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. - On your server, fetch Lamina’s public signing key from
https://app.uselamina.ai/api/webhooks/signing-key. Verify the Ed25519 signature inX-Lamina-Webhook-Signature(hex) against the timestamp inX-Lamina-Webhook-Timestamp, a literal dot and the raw request body. Reject stale timestamps. - Store verified events by
eventId, acknowledge them with HTTP 2xx and userequestIdto update the correct chat. Apply the highesteventSequencereceived for each request. - 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_requestwithaction: "get". Once registered, new updates can also arrive at the receiver.