Quickstart
Create a working API documentation portal in about five minutes.
This quickstart guide will help you swiftly set up a customizable API Documentation Portal for your APIs using the APIMatic Command Line Interface (CLI).
By the end of this guide, you'll have a fully functional API Documentation Portal with:
- Interactive API reference documentation
- A live API playground for testing API endpoints
- SDKs in C#, Python, and TypeScript, with ready-to-use code samples
- A Context Plugin that gives AI coding agents accurate context about your API and SDKs
- Language-specific getting started guides
Time required: about 5 minutes
Let's get started!
Prerequisites
- Node.js v24 or later
- npm
1. Install the APIMatic CLI
npm i -g @apimatic/cli@betaConfirm the install:
apimatic --version2. Log in
apimatic auth loginFollow the browser prompt to sign in with your APIMatic email and password. Then check your session:
apimatic auth statusThe output confirms your APIMatic account email and the SDK languages available on your plan (C#, Python, TypeScript).
3. Create a portal project
Make an empty directory for the project and move into it:
mkdir hello-apimatic
cd hello-apimaticLaunch the interactive setup:
apimatic quickstartChoose API Documentation Portal from the menu. The wizard walks you through:
- Importing your API definition
- Choosing SDK languages
- Scaffolding the project
- Generating the portal files
- Starting a local preview server
What's next
Your APIMatic portal is running. From here you can browse the generated API reference, try endpoints in the playground, download SDKs with code samples, install the Context Plugin in your IDE, and start customizing your portal with the apimatic.json reference.
To start the preview server again later:
apimatic portal serve