Automation
Idempotency
Prevent duplicate work for retries.
Send the Idempotency-Key header to safely retry capture requests.
curl -X POST https://api.pageshot.com/v1/capture \
-H "Content-Type: application/json" \
-H "X-Access-Key: your_api_key" \
-H "Idempotency-Key: 4db4766f-9f16-46ce-8a1b-2eb8e0f1f1a2" \
-d '{ "url": "https://example.com", "format": "png" }'Behavior
While the idempotency key is cached, repeated requests return the same response (or the same error) without duplicating work.