Create a public share link for a completed generation. Links include Open Graph and Twitter Card metadata for rich social previews. Links expire after 30 days.
Request
A generation ID with status COMPLETED.
The customer-facing domain (e.g. yourstore.com). Defaults to the Shopify store domain.
curl -X POST "https://your-store.myshopify.com/apps/proxy_genlook-x/public/share-generation" \
-H "Content-Type: application/json" \
-d '{
"generationId": "gen_xyz789abc",
"effectiveDomain": "yourstore.com"
}'
Response
Unique token for the share link.
ISO 8601 expiration timestamp.
{
"shareToken": "abc123xyz789",
"shareUrl": "https://genlook.app/s/abc123xyz789",
"expiresAt": "2024-02-15T10:30:00Z"
}
Cache the shareUrl — if a share link already exists for a generation, reuse it instead of creating a new one.