SDK user features
Fern-generated SDKs provide a consistent set of features across all languages to help developers interact with your API. Usage information is auto-generated in your SDK’s README, which you can customize.
Installation and basic usage
Users install SDKs using standard package managers (npm for TypeScript, pip for Python, Maven/Gradle for Java, etc.) from language-specific registries.
Users initialize the client with your API’s base URL and any required authentication, then call methods on the client to interact with your API. Generated SDKs support modern runtimes across languages.
Error handling
When the API returns a 4xx or 5xx status code, the SDK throws an error that includes the status code, error message, response body, and raw response object.
Customization options
Your SDK users can configure individual requests using language-specific options: