Ensuring Single Execution with Idempotency Keys
Idempotency keys help ensure that certain API operations are processed only once, even if the request is retried due to network interruptions or other transient issues. This mechanism is particularly useful for operations that create resources or trigger actions where duplicate execution would result in unintended effects.Header: IDEMPOTENCY-KEY
To use idempotency, include the IDEMPOTENCY-KEY header in your API requests. The value should be a random universally unique identifier (UUID). For example:
How It Works
1
Single Processing
When a request with an
IDEMPOTENCY-KEY is received, the API processes it and stores the result associated with the key.2
Subsequent Requests
If the same
IDEMPOTENCY-KEY is used in a subsequent request, the API returns the originally stored result instead of processing the operation again.3
Preventing Duplicates
This ensures that the action is performed only once, even if the client retries the request.
Usage Example: Creating an Auto Ramp
When creating an auto ramp, include anIDEMPOTENCY-KEY to ensure the operation is processed only once. For example:
Request
Response (First Request)
Response (Retry with Same Key)
Key Considerations
- Uniqueness: Use a unique
IDEMPOTENCY-KEYfor each operation. Reusing a key for different operations may result in unintended behavior. - Errors: If the initial request fails due to a validation or processing error, retries with the same
IDEMPOTENCY-KEYwill return the same error response.

