- Docs
- Parameters
- identify_as_hcti
identify_as_hcti
Identify a URL screenshot request as coming from HTML/CSS to Image.
How it works
Section titled “How it works”Set identify_as_hcti to true to add this header to the top-level page request:
X-HCTI-SCREENSHOT: 1The 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.
JSON example
Section titled “JSON example”{ "url": "https://example.com/report", "identify_as_hcti": true}Form example
Section titled “Form example”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.