Idempotency Headers
For any idempotent endpoints, Fern’s SDKs will allow you to specify idempotency headers.
Typically the headers include Idempotency-Key
, but you can also specify additional headers.
Note that the generated SDKs will not allow you to specify idempotency headers for non-idempotent endpoints. This is to ensure that the user knows exactly which invocations are idempotent and which are not.
Configuration
To enable idempotency headers in your API, you need to do the following in your overrides file:
- Configure the idempotency headers
- Mark individual endpoints as idempotent
OpenAPI
Fern Definition
openapi-overrides.yml