Gets the API key sent in the X-API-KEY request header.
The configured API key, or an empty string when no key is set.
Gets the API base URL used to resolve endpoint paths such as v2/links.
The configured API base URL.
Gets the request timeout in milliseconds.
The configured timeout passed to AbortSignal.timeout.
Sets the API key sent in the X-API-KEY request header.
API key to send. An empty string omits the header.
Optionalseal: boolean
Whether to prevent further changes to this setting. Defaults to false.
This instance for chained configuration calls.
Sets the API base URL used to resolve endpoint paths such as v2/links.
API root URL, such as https://kutt.to/api/.
Optionalseal: boolean
Whether to prevent further changes to this setting. Defaults to false.
This instance for chained configuration calls.
Sets the request timeout in milliseconds.
Timeout passed to AbortSignal.timeout when a request starts.
Optionalseal: boolean
Whether to prevent further changes to this setting. Defaults to false.
This instance for chained configuration calls.
Stores a base URL, API key, and request timeout with optional per-setting seals.
New configurations default to
https://kutt.to/api/, an empty API key, and a timeout of 5,000 milliseconds. Sealed settings cannot be changed.