TemplatesTeams publishing a REST API
API documentation template
Everything developers look for first, in the order they look for it, with an API reference built from your OpenAPI file.
14-day Pro trial, no card. Your content stays in Git.
What’s inside
7 files: typemark.json and these pages.
Guides
Get started
- Introduction
- Quickstart
- Authentication
Build
- Errors
- Webhooks
API reference
Endpoints
- API reference from openapi.yaml
A page from it: quickstart.mdx
MDX, as it sits in your repository. You edit it in the visual editor or as source.
---
title: Quickstart
description: Get a test key, install the library and create your first order in five minutes.
---
Create your first order with a test key. Nothing here charges money.
<Steps>
<Step title="Get a test key">
In the Acme dashboard, open **Developers** > **API keys** and copy the key that starts with `test_`.
</Step>
<Step title="Install the library">
```bash
npm install @acme/api
```
</Step>
<Step title="Create an order">
```javascript
import Acme from '@acme/api'
const acme = new Acme(process.env.ACME_API_KEY)
const order = await acme.orders.create({ amount: 2500, currency: 'eur' })
console.log(order.id, order.status)
```
You should see an order ID and the status `open`:
```text
ord_1N4h2k open
```
</Step>
</Steps>
<Tip>
Amounts are in the smallest unit of the currency: `2500` is 25.00 EUR.
</Tip>
## Next
Handle the [webhook](/webhooks) that tells you the order was paid.