API documentationAPI reference

Idempotency

Idempotency means repeating a request does not perform the action twice. Do not assume that sending an Idempotency-Key gives you this protection: check the specific operation in the API Reference.

Do not assume an accepted key guarantees replay or duplicate suppression. Only rely on such behavior when the operation explicitly documents it.

Create a key

When an operation accepts the header, use a unique value for the logical request:

Idempotency-Key: 6f529c40-1b46-48bd-bfee-e9cc14ed2475

If you retry an operation that explicitly guarantees keyed replay, reuse the key and identical request body.

Reconcile an ambiguous result

For example, if a Reach activation times out, read its state before sending another activation:

curl "https://api.torre.ai/v1/openings/$OPENING_ID/reach" \
  -H "Authorization: Bearer $TORRE_API_KEY"

If the campaign already has the approved settings, do not activate it again. If you cannot establish the outcome, investigate before making another paid request.

Attraction initialization and revisions

Quiet opening initialization uses an attractionInitializationKey UUIDv4 in the body. Reuse that key for the same posting attempt to retrieve the same opening's current state; it is not response replay. Resume an existing openingId rather than creating another after connection. Preferences use the last read revision; on 409 attraction_revision_conflict, read and reconcile instead of retrying stale intent. Neither mechanism makes publication, completion or Reach activation atomic or automatically retryable. See Attract candidates.