Appearance
Quick start
Get endpoints showing in your project in a few minutes.
This walkthrough uses the Express connector. Other connectors are listed on Connect your app.
1. Create an account
- Open the dashboard: app.apiglimpse.com
- Sign up
- Create a project
- Create an API key and copy it (
ask_…). It is shown once when you create it.
2. Install the connector (example: Express)
bash
npm install @apiglimpse/middleware3. Set environment variables
bash
API_SENSOR_AGENT_URL=https://collect.apiglimpse.com
API_SENSOR_KEY=ask_YOUR_PROJECT_KEY_HERE
API_SENSOR_SAMPLE_RATE=14. Mount the middleware
js
import express from 'express';
import { apiSensor } from '@apiglimpse/middleware';
const app = express();
app.use(express.json());
app.use(
apiSensor({
agentUrl: process.env.API_SENSOR_AGENT_URL || 'https://collect.apiglimpse.com',
apiKey: process.env.API_SENSOR_KEY || '',
sampleRate: Number(process.env.API_SENSOR_SAMPLE_RATE || 1),
}),
);Mount after body parsers you care about, and early enough to cover the routes you want to see.
5. Check the dashboard
- Hit a few of your routes
- Open the dashboard → your project → endpoints (method + path within a few seconds)
- Optional:
curl -s $API_SENSOR_AGENT_URL/healthto confirm API Glimpse is reachable
Full options and CommonJS notes: Connect your app — Express.