Skip to main content
POST
/
experiments
/
{id}
/
variation
/
{variationId}
/
screenshot
/
upload
cURL
curl -X POST https://api.growthbook.io/api/v1/experiments/exp_1234/variation/var_abc123/screenshot/upload \
  -H "Content-Type: application/json" \
  -d '{"screenshot":"<base64-encoded-screenshot>","contentType":"image/png"}' \
  -u secret_abc123DEF456:
{
  "screenshot": {
    "path": "<string>",
    "description": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://growthbook-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

curl https://api.growthbook.io/api/v1 \
-H "Authorization: Bearer secret_abc123DEF456"

Path Parameters

id
string
required

The id of the requested resource

variationId
string
required

The variation ID (e.g. var_abc123) from the experiment's variations

Body

application/json
screenshot
string
required

Base64-encoded screenshot data

contentType
enum<string>
required

MIME type of the screenshot

Available options:
image/png,
image/jpeg,
image/gif
description
string

Optional description for the screenshot

Response

200 - application/json

Success

screenshot
object
required