Skip to content
HTML/CSS to ImageDocs

Identify a URL screenshot request as coming from HTML/CSS to Image.

Set identify_as_hcti to true to add this header to the top-level page request:

X-HCTI-SCREENSHOT: 1

The parameter is available for URL screenshots and defaults to false. The header is not added to page subrequests.

Use it when your application wants to:

  • Detect screenshot requests at the origin.
  • Select screenshot-specific content or styling.
  • Label requests in application logs.
{
"url": "https://example.com/report",
"identify_as_hcti": true
}
Terminal window
curl -X POST https://hcti.io/v1/image \
-u 'UserID:APIKey' \
--data-urlencode 'url=https://example.com/report' \
--data 'identify_as_hcti=true'

For a private header name or value, use the headers parameter.

Need help?

Talk to a human. Email support@htmlcsstoimage.com and we’ll help you get started.