Creates a client with a copy of KUTT_CONFIG, including sealed settings.
Later changes to the global configuration do not affect this client.
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.
Configurable client for the Kutt domains, health, links, and users APIs.
Each API group copies the client's configuration when it is created. Later changes to the client affect API groups created after that change.
See
https://docs.kutt.to
Example