llms.txt Content
# Kubb
> Stop writing glue code. Define your API once and Kubb generates types, clients, hooks, validators and mocks.
## Table of Contents
### <span class="sidebar-icon" aria-hidden="true"><i class="iconoir-bookmark"></i></span><span class="sidebar-text">Reference</span>
- [Options](/plugins/plugin-axios/reference/options.md): Configuration options for @kubb/plugin-axios.
### <span class="sidebar-icon" aria-hidden="true"><i class="iconoir-book-stack"></i></span><span class="sidebar-text">Guide</span>
- [Authenticate your API client](/plugins/plugin-axios/guide/authentication.md): Add authentication to the client Kubb generates. Resolve bearer, basic, and apiKey credentials from your OpenAPI security schemes with one auth callback.
- [Set your own baseURL](/plugins/plugin-axios/guide/base-url.md): Set up base URLs for API clients generated by Kubb. Environment-specific configuration and dynamic base URLs.
- [Call operations](/plugins/plugin-axios/guide/calling-operations.md): Call the functions Kubb generates from your OpenAPI spec. Pass typed path, query, header, cookie, and body parameters, then read the status, data, and native response off one result.
- [Error handling](/plugins/plugin-axios/guide/error-handling.md): Handle failures from the client Kubb generates. Catch a ResponseError, switch to a returned error result with throwOnError, and tell a network failure apart from a 4xx or 5xx response.
- [Interceptors](/plugins/plugin-axios/guide/interceptors.md): Run code on every call the Kubb client makes. Add or rewrite headers before the send, observe or transform the response, react to errors, and register, replace, or remove handlers at runtime.
- [Serialization and parsing](/plugins/plugin-axios/guide/serialization.md): Control how Kubb encodes path, query, header, and cookie parameters, serializes request bodies per content type, and decodes and validates responses in the generated Fetch and Axios client.
- [Use a custom transport](/plugins/plugin-axio