Quickstart
Get nautical charts rendering in your app in under 5 minutes. For the full onboarding walkthrough, see the Getting Started Guide.
1. Get your API key
Sign up and complete the onboarding flow (terms, plan selection, payment method). Then navigate to Platform → API Keys and click Create key. Copy the key — it's only shown once.
2. Verify your key
Test that your key works with a simple request to the Feature API:
curl "https://api.chrt.co/v1/features?bbox=-71,42,-70,43&layer=DEPARE&limit=1" \
-H "x-api-key: YOUR_API_KEY"
# Expect: HTTP/2 200
# Content-Type: application/json
# A GeoJSON FeatureCollection3. Install the SDK
The fastest way to integrate is with the official TypeScript SDK. It handles authentication, style URLs, and request signing for you.
npm install @chrtco/sdk4. Render your first chart
With the SDK, you get a fully styled nautical chart in 3 lines — no manual layer configuration needed.
import { Chrt } from '@chrtco/sdk'
const chrt = new Chrt('YOUR_API_KEY')
const map = new maplibregl.Map({
container: 'map',
style: chrt.style({ palette: 'DAY' }), // S-52 nautical style
center: [-70.8636, 42.0217], // Gloucester, MA
zoom: 12,
transformRequest: chrt.transformRequest(), // mints + attaches the tile token
})Without the SDK
Tiles are served from tiles.chrt.co and gated by a short-lived JWT you mint from your key. The flow is two steps — see the Vector Tiles reference for the full contract:
# 1. Mint a tile token with your API key
curl -X POST "https://api.chrt.co/v1/mint/tile-token" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{ "region": "NOAA_ENC" }'
# → { "token": "<jwt>", "expires_at": ..., "region": "NOAA_ENC" }
# 2. Request tiles with the token as a Bearer header
curl "https://tiles.chrt.co/v1/tiles/NOAA_ENC/10/301/384.mvt" \
-H "Authorization: Bearer <jwt>"5. Query features (optional)
Use the REST API to fetch features in a bounding box:
curl "https://api.chrt.co/v1/features?bbox=-71,42,-70,43&layer=DEPARE&limit=100" \
-H "x-api-key: YOUR_API_KEY"6. Next steps
- Read the full Getting Started Guide for onboarding, map styles, and team setup
- Learn about API key management and scopes
- Explore the Vector Tiles endpoint reference
- Query features with the Feature API
For situational awareness only — not for primary navigation. CHRT is not an ECDIS and is not SOLAS-compliant.