navan-webhooks-events

Featured

Set up webhook listeners for real-time Navan event notifications. Use when you need to receive booking, expense, or travel disruption events from Navan. Trigger with "navan webhooks", "navan events", "navan webhook setup".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Navan Webhooks & Events ## Overview Navan supports asynchronous event delivery via callback URLs registered through the REST API. Since there is no public SDK, webhook handlers receive raw HTTP POST requests with JSON payloads. This skill covers endpoint setup, payload verification, event routing, and idempotent processing for the key event types: booking lifecycle, expense workflow, and travel disruptions. ## Prerequisites - Active Navan account with API credentials (Admin > Travel admin > Settings > Integrations) - OAuth 2.0 access token (see `navan-install-auth`) - Publicly accessible HTTPS endpoint for callback URL (use ngrok for local development) - Node.js 18+ with Express or equivalent HTTP framework ## Instructions ### Step 1: Register a Webhook Callback URL ```typescript const response = await fetch('https://api.navan.com/v1/webhooks', { method: 'POST', headers: { 'Authorization': `Bearer ${accessToken}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ url: 'https://your-domain.com/webhooks/navan', events: [ 'booking.created', 'booking.updated', 'booking.cancelled', 'expense.submitted', 'expense.approved', 'expense.rejected', 'trip.disrupted' ], secret: process.env.NAVAN_WEBHOOK_SECRET }) }); const webhook = await response.json(); console.log('Webhook registered:', webhook.id); ``` ### Step 2: Verify Payload Signatures ```typescript import crypto from 'node:crypto'; funct...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category