Get developers to “it works” fast
The first five minutes with an SDK decide whether a developer keeps building or abandons the integration. A quickstart has one job: get them from zero to a successful API call with the minimum friction. This builder generates exactly that — prerequisites, install, authentication, one runnable first call, common use cases, and error handling — written idiomatically for the language you choose.
What goes into a good quickstart
Most SDK documentation pages fail because they try to do too many things at once. A quickstart is not reference documentation, a tutorial series, or a feature overview. It is a single, linear path from installation to confirmed working call. Everything that does not serve that path should be in a different section of the docs.
The five sections every quickstart needs:
- Prerequisites: Node version, Python version, Ruby version, Go version, plus any accounts or credentials the developer needs before they can start. No surprises.
- Install: one command. Copy-paste, run, done.
- Authentication: always using an environment variable. Hard-coded keys in quickstart code become production keys in source control. Model the right pattern from the first moment.
- First API call: the simplest call that produces visible output. The output is the proof that install and auth both worked. Without it the developer cannot tell if they are set up correctly.
- Error handling: what the exception or error object looks like, and how to read the status and message from it. This prevents the first support ticket.
How it works
You pick a language and the builder emits the idiomatic install command, import style, and error-handling pattern for it:
- JavaScript/TypeScript:
npm install,importorrequire,try/catchwith typed error check - Python:
pip install, module import,try/except, named exception class - Go:
go get, package import, multi-return error pattern witherrors.As - Ruby:
gem install,require,rescuewith specific exception class
The authentication step is always built around reading from an environment variable — never a hard-coded key. The env-var pattern is shown explicitly with the export or os.environ call because developers copy what is in front of them.
The first API call instantiates the client class with your specified constructor, then calls the method you define. It prints or logs the result so the developer can visually confirm the setup worked without reading further.
Designing the first call well
The first call in a quickstart should be a read, not a write. A list or get operation is safe: it does not create data, does not have side effects, and is easy to verify by looking at the output. Writes create real objects in the developer’s account, which can be confusing and hard to clean up, especially if the developer runs the quickstart multiple times.
Good first calls: customers.list(), products.get(id), account.info()
Avoid for first calls: orders.create(), payments.charge(), users.delete()
Save writes for the “common use cases” section that follows the first call, where the developer understands what they are doing and the context is clear.
Tips for the rest of the quickstart
- List two or three concrete use cases (create a customer, send an invoice, retrieve a report) with working snippets, so the developer can see where to go after the first call.
- Match the language’s idioms.
try/exceptin Python,errors.Asin Go,rescuein Ruby — each language community has conventions and SDK code that ignores them feels unfamiliar and harder to trust. - Test the quickstart on a fresh install. The most common quickstart failure is a missing prerequisite the author assumed was obvious. Run it in a clean environment before publishing.