Skip to main content
POST
/
public
/
share-generation
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"
  }'
{
  "shareToken": "abc123xyz789",
  "shareUrl": "https://genlook.app/s/abc123xyz789",
  "expiresAt": "2024-02-15T10:30:00Z"
}
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

generationId
string
required
A generation ID with status COMPLETED.
effectiveDomain
string
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

shareToken
string
required
Unique token for the share link.
shareUrl
string
required
Complete shareable URL.
expiresAt
string
required
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.