Create a publicly shareable link for a completed generation. Share links can be used on social media, messaging apps, or embedded in your store.
Rate limit: 20 share link creations per minute.
Request
The generation ID from a completed generation. Must be a valid generation that has status COMPLETED.
The actual domain where the customer was when sharing (e.g., yourstore.com). Used for proper link generation and attribution. If not provided, uses 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. Used in the share URL path.
Complete shareable URL. This URL can be shared publicly and displays the try-on result.
ISO 8601 timestamp when the share link expires. After this date, the link will no longer be accessible.
{
"shareToken" : "abc123xyz789" ,
"shareUrl" : "https://genlook.app/s/abc123xyz789" ,
"expiresAt" : "2024-02-15T10:30:00Z"
}
Share Link Features
Share links provide:
Public access : Anyone with the link can view the try-on result
Product information : Shows product details and links back to your store
Social sharing : Optimized for sharing on social media platforms
Analytics : View counts and engagement tracking
Cache the share URL in your application. If a share link already exists for a generation, you can reuse it instead of creating a new one.
Share links expire after a set period (typically 30 days). Check the expiresAt field and create a new link if needed.
Using Share Links
Share links can be used in several ways:
Web Share API : Use the browser’s native share dialog
Copy to Clipboard : Copy the URL for manual sharing
Social Media : Post directly to social platforms
Email : Include in email campaigns
Embedding : Embed in blog posts or product pages
Share links are hosted on genlook.app and include proper SEO metadata, Open Graph tags, and Twitter Card support for rich previews.
Error Responses
400 Bad Request
404 Not Found
400 Bad Request
429 Too Many Requests
500 Internal Server Error
{
"message" : "Generation ID is required"
}
Retrieving Shared Generations
To retrieve a shared generation (public endpoint, no authentication required):
GET https://genlook.app/s/{shareToken}
This returns the generation details including the image URL, product information, and merchant details.
The shared generation endpoint is public and doesn’t require authentication. It’s rate-limited to prevent abuse.