linkspect API docs linkspect.com

Idempotency

A network error after you send POST /v1/checks leaves you not knowing whether the check was created. Send an Idempotency-Key header, and you can retry without risk of a second check (and a second charge):

curl https://api.linkspect.com/v1/checks \
  -H "Authorization: Bearer $LINKSPECT_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 3f6c2a0e-8d4b-4e1a-9c57-2b7d1e0f4a93" \
  -d '{"url": "https://example.com/", "targets": [{"country": "PL"}]}'