Copies configuration values and their sealed states into this API group.
Configuration to copy. Defaults to KUTT_CONFIG.
ProtectedrequestGets the current base URL, API key, and timeout for this API group's requests.
Checks the health of the Kutt v2 API using this instance's configuration.
true after a successful health request.
HTTPError If the API returns an unsuccessful HTTP response.
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.
Provides Kutt v2 health checks using this instance's configuration.
By default, the configuration is copied from KUTT_CONFIG when the instance is created.
See
https://docs.kutt.to/#tag/health
Example