Create a Magic Link
A Magic Link opens a campaign's storefront where a recipient can place an order. Generate one from your CRM customer journey — for example on a birthday, or when someone reaches a loyalty tier — and deliver it in your own message.
1. Create the link
Call create-link for the campaign. The response contains the Magic Link URL to send to your recipient.
curl -X POST https://api.development.platform.framme.com/public/v1/campaigns/store/$CAMPAIGN_ID/create-link \
-H "Authorization: Bearer $TOKEN"2. Deliver it from your journey
Drop the returned URL into your CRM template (Fasttrack, Optimove, Smartico, CaptainUp, or your own tooling) so it reaches the recipient at the right moment.
3. Revoke when done
When a link should no longer be usable, deactivate it. This is idempotent — deactivating an already-inactive link is a no-op.
curl -X POST https://api.development.platform.framme.com/public/v1/campaigns/store/$CAMPAIGN_ID/deactivate-link \
-H "Authorization: Bearer $TOKEN"Need the campaign's ID and its products first? See Show campaign products.