Overview
This API implements idempotency for specific endpoints to prevent duplicate request processing. Idempotency ensures that making the same request multiple times has the same effect as making it once, which is crucial for operations like creating entities or sending invitations.How It Works
What a key is scoped to
A cached response is keyed on your organization, the HTTP method, the route including its version segment, and your key — not on the key alone. Two consequences worth knowing:- The same UUID sent to two different endpoints does not collide. Reusing a key across operations is still bad practice, but it will not replay the wrong response body.
- A key is private to your organization. Two customers sending the same UUID never see each other’s response.
Supported Endpoints
Every endpoint that accepts a key advertises anidempotency-key parameter on its reference page. The current set:
Agency (/v2/downstream/*) — every write:
POST /v2/downstream/entitiesPOST /v2/downstream/producersPOST /v2/downstream/producers/{producerId}/entitiesPOST /v2/downstream/contactsPOST /v2/downstream/compliance-configsPOST /v2/downstream/corporate-registration-filingsPOST /v2/downstream/documents
/v1/* and /v2/upstream/*):
POST /v1/downstream-entity-associations/addandPOST /v2/upstream/downstream-entity-associations/addPOST /v1/downstream-entity-associations/inviteandPOST /v2/upstream/downstream-entity-associations/invitePOST /v1/policiesandPOST /v2/upstream/policiesPOST /v1/policies/uploadandPOST /v2/upstream/policies/uploadPOST /v1/policies/{policyId}/transactionsandPOST /v2/upstream/policies/{policyId}/transactions
No other carrier write on
v2 supports idempotency keys. On v1 the two deprecated dangerously- association endpoints also accept one; both are absent from v2. Sending one to an endpoint that does not accept it is harmless — the header is ignored — but the request is not protected against a retry.Headers
Include one of these headers in your requests to enable idempotency:Usage Guidelines
When to Use Idempotency Keys
Creating new entities or resources
Sending invitations or notifications
Any operation that should not be duplicated
Network retry scenarios
User interface double-click prevention
Behavior
Error Handling
Example Usage
Request with Idempotency Key
Generating UUIDs
Use any UUID v4 generator:Best Practices
Generate Unique Keys
Use a fresh UUID for each logical operation
Client-Side Generation
Generate UUIDs on the client side before making requests
Retry Logic
Use the same idempotency key when retrying failed requests
Key Management
Don’t reuse keys across different operations
Testing
Include both scenarios in your tests:- Requests with idempotency keys
- Requests without idempotency keys
Postman Variables
You can use Postman’s built-in variable for testing:This implementation ensures reliable API operations and prevents duplicate processing in distributed systems and unreliable network conditions.