Skip to content
v1
Docs

REST API

Idempotent requests

Send an Idempotency-Key header, 1 to 255 visible ASCII characters, with every POST, PUT and DELETE, so a retry after a timeout never runs twice.

A repeat of the same request with the same key within 24 hours returns the first answer without running again, and the answer carries Idempotent-Replayed: true. A repeated DELETE answers the stored 204. The same key with a different request is refused with 422 invalid_request. A key is per API key.

A retry after a timeout is therefore safe: send the same key again. The official SDKs do it for you, for every write method.

The rotation of a log source’s token answers the new ingest_token once. The same Idempotency-Key again answers the stored receipt with the token null, because WatchTower15 never keeps a secret for a replay. A lost answer therefore needs a new rotation, with a new key, and the same holds for metricSources.rotateToken.