---
title: Create your first route
description: Install the Node.js SDK, create a route, and verify the returned route ID.
url: https://pr-6-df95adf6d023.thally.app/quickstart
---

# Create your first route

Install the Node.js SDK, create a route, and verify the returned route ID.

Create a production route in one typed call. You need Node.js 20 or later and a
Cinderlane API key stored in `CINDERLANE_API_KEY`.

    ```bash
    npm install @cinderlane/node
    ```

    ```ts
    import { createCinderlaneClient } from '@cinderlane/node'

    const cinderlane = createCinderlaneClient({
      apiKey: process.env.CINDERLANE_API_KEY!,
    })

    const route = await cinderlane.createRoute({
      name: 'checkout-primary',
      destination: 'https://checkout.example.com',
    })

    console.log(route.id)
    ```

    A successful call prints an identifier beginning with `rte_`. Retrieve it
    later with `cinderlane.getRoute(route.id)`.

  Cinderlane accepts API keys only in the `Authorization: Bearer …` header.