Developer Tools

API Documentation

Integrate beautifully styled review images into your application with a single POST request.

Generate Image

POSThttps://aesthetic-proof.gooder.games/api/v1/generate

Returns a beautifully styled PNG image stream representing the review card. The default dimensions are 1200x630, or 840x460 if compact mode is enabled.

Request Headers

HeaderRequiredDescription
AuthorizationYesFormat: Bearer ap_your_secret_key
Content-TypeYesMust be application/json

JSON Body Parameters

name
stringRequired

Customer's full name (e.g. 'Jane Doe').

text
stringRequired

The review or testimonial text.

handle
string

Customer's social media handle (e.g. '@janedoe').

avatar_url
string

Direct public URL to the customer's avatar. Must be accessible to the Edge runtime.

rating
number

Rating from 1 to 5. Will display as visual stars on the card.

theme
string

'light' | 'dark' | 'transparent'. Defines the base contrast handling.

compact
boolean

If true, crops the image bounding box to 840x460, ideal for responsive embedding.

preset
string

Applies a pre-defined aesthetic override. Choose from: 'midnight', 'frost', 'sunset', or 'minimal'.

styles Object (Optional)

Deep CSS-like customization. All properties are optional. If provided, overrides preset aesthetics.

cardBackgroundstringHex or rgba format (e.g., 'rgba(255,255,255,0.1)')
textColorstringHex or rgba format
secondaryTextColorstringHex or rgba format
accentColorstringHex or rgba format (Used for stars and verified badges)
borderColorstringHex or rgba format
borderRadiusnumberCorner radius in pixels (e.g., 24)
elevationnumberPre-defined shadow strengths (0, 1, 2, or 3)

Responses & Status Codes

200 OKimage/png

Returns the binary PNG representation of the generated card.

400 Bad Requestapplication/json

The JSON payload is malformed or missing required parameters.

401 Unauthorizedapplication/json

The Authorization header is missing, or the API key format is invalid.

402 Payment Requiredapplication/json

Your credit balance is 0. Please refill your account on the dashboard.

No-Code & Zapier Integration

You do not need to write code to use Aesthetic Proof. You can automatically generate images whenever a user submits a Google Form, Typeform, or Stripe purchase using **Zapier** or **Make.com**.

  1. Trigger: Set up your trigger step (e.g., "New Typeform Entry").
  2. Action: Add a Webhooks by Zapier step and choose Custom Request.
  3. Method: POST
  4. URL: https://aesthetic-proof.gooder.games/api/v1/generate
  5. Data: Pass standard JSON linking your trigger variables (e.g., { "name": "1. Name", "text": "1. Feedback" }).
  6. Headers: Add Authorization mapped to Bearer ap_your_api_key.
  7. Result: Zapier will output a binary file object which you can pipe directly into a Google Drive folder or a Slack message!

Quick Examples

curl -X POST https://api.aesthetic-proof.gooder.games/v1/generate \
  -H "Authorization: Bearer ap_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Jane Doe",
    "text": "Aesthetic Proof is simply amazing!",
    "preset": "midnight"
  }' \
  --output feedback.png

Integration Architecture

Because the API requires an Authorization secret, do not call it directly from a frontend <img src="..."> tag. Doing so exposes your secret key.

Action: Always proxy the request through your own secure backend API, or generate and cache the images in an S3 bucket.