Generate marketing assets without calling an API

Generate marketing assets live, on-demand, and without calling an external API

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!DOCTYPE html>
<html lang="en-US">
  <head>
    <title>
        Marvel Legends Amazing Spider-Man:
        Retro Collection
    </title>

    <meta
      property="og:image"
      content="https://snapsbrew.com/signed-url/image.jpg
      ?template_id=e9d05fdf-4213-4abd-aea4-ba9faf864e5b
      &variants=eyJsYXllciI6InRpdGxlIiwidGV4dCI6IkFtY
      XppbmcgU3BpZGVyLU1hbiJ9&signature=a3734710df1e52
      6567516904c6d04586df54c92f0f5b9b5c0e7bbb955584b555"
    >
Amazing Spider-Man
Retro Collection

Retail price: $24.99

Market value: $99.99

Rarity Score: 20%

legendsverse.com

Marvel Legends Amazing Spider-Man: Retro Collection

Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum voluptatibus itaque non cupiditate accusamus fuga, esse aperiam ea quidem sunt alias.

Generate assets once, use them forever

With Snapsbrew's signed URLs you will spend only one credit per image generated, it doesn't matter how many times the url is called if the variants are never changed.

Generated synchronously

Your image is generated in a couple of seconds, no need to wait for a webhook.

Generated only once

Your image is generated the first time, and served from a CDN after that.

Signed URL == API

If you can generate it with Snapsbrew's API, you can generating with signed URLs.

Perfect for social cards

No need to spend credits if your page is not shared on a social network.

Super secure, super easy

Build your variants object and encrypt it with your API key. Snapsbrew will validate your url before spending your credits.

<!-- index.php -->

<head>
  
  <meta property="og:image" content=" $figure->metaImage() ">

</head>
// App\Models\Figure.php


public function metaImage()
{
    $variants = json_encode([
        [
            'layer' => 'title',
            'text' => $this->tile,
        ],
        [
            'layer' => 'image',
            'text' => $this->image,
        ],
    ]);

    $variants = base64_encode($variants);
    $variants = rtrim(strtr($variants, '+/', '-_'),'=');

    $apiKey = config('snapsbrew.signed_url_api');

    $fields = [
        'variants' => $variants,
        'template_id' => config('snapsbrew.fb_meta_image_template_id'),
    ];

    ksort($fields);

    $fields = http_build_query($fields);

    $signature = hash_hmac('sha256', $fields, $apiKey);

    return 'https://snapsbrew.com/signed-url/image.jpg?'.$fields.'&signature='.$signature;
}

Learn how Legendsverse is
using Signed URLs

With Signed URLs Legendsverse has been able to generate all the images they need while saving hundreds of credits

Read more

Take your marketing a step forward Start your free trial today.

Automate repetitive tasks that could be done by a computer. Focus on things only you can do.

Sign up for free
App screenshot