Generate SDKs

SDK Generation Overview

Production-ready client libraries for your API, generated and kept in sync by APIMatic.

How APIMatic generates an SDK

1. Transform

Your API definition (OpenAPI, RAML, API Blueprint, and others) is converted into APIMatic's internal format, which holds SDK-specific details that standard formats don't have.

2. Validate

The definition is checked for problems such as duplicate parameters or request bodies on GET endpoints. Minor issues are fixed automatically; anything that needs your attention is reported. See Validate & Lint.

3. Lay out the code

Parts of your API map to parts of the SDK:

In your APIIn the SDK
SettingsConfiguration files
EndpointsMethods on controller classes
Groups of endpointsController classes
Data modelsModel classes, with types inferred
HTTP errorsException classes

The SDK also gets an HTTP layer, helper utilities, a client interface, and the packaging files each language needs.

4. Document

Each SDK ships with a README written for its language, from setup through code samples.

5. Package

Download the SDK as a ZIP, publish it to a package registry or GitHub, or add it to your developer portal.

Customize your APIMatic SDKs

  • Custom code you add to generated files is kept when you regenerate the SDK after your API changes. Save it with apimatic sdk save-changes.

On this page