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

# Create your first route

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

## Get started with Cinderlane

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`. This quickstart walks you through installing the SDK, initializing a client, and creating your first route with a destination URL.

#### Install the SDK

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

#### Create a client and route

    ```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)
    ```

#### Verify the result

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

> **Note:**
  Cinderlane accepts API keys only in the `Authorization: Bearer` header. Never include credentials in query strings, browser bundles, or committed configuration files.