Build on the
Mission OS.
A complete API surface for mission creation, audience management, outcome tracking, and AI orchestration. RESTful, documented, and production-ready.
import { XhuntClient } from '@xhunt/sdk';
const client = new XhuntClient({
apiKey: process.env.XHUNT_API_KEY,
});
// Create a mission programme
const mission = await client.missions.create({
title: 'Employee Onboarding',
goal: 'Time-to-productivity < 30 days',
audience: { segment: 'new-hires', count: 50 },
outcomes: [
{ metric: 'time_to_first_contribution', target: '< 14 days' },
{ metric: 'onboarding_satisfaction', target: '>= 4.5/5' },
],
});
console.log(`Mission created: ${mission.id}`);
// → Mission created: ms_01J8FGHK...Everything you need to integrate.
Overview
Platform architecture, key concepts, and integration patterns.
Quick Start
Get your first API call running in under 5 minutes.
Authentication
API keys, OAuth 2.0, JWT scopes, and token management.
Missions API
Create, configure, launch, and monitor mission programmes.
Audience API
Manage participant profiles, segments, and personalisation.
Webhooks
Real-time event delivery for mission lifecycle and outcomes.
SDKs & Libraries
Ship faster in any language.
First-party SDKs for every major language with full TypeScript types, async/await support, and auto-pagination.
// X-hunt sends signed POST requests to your endpoint
// Verify signature with HMAC-SHA256
app.post('/webhooks/xhunt', (req, res) => {
const sig = req.headers['x-xhunt-signature'];
const payload = req.body;
if (!verifySignature(payload, sig, process.env.WEBHOOK_SECRET)) {
return res.status(401).send('Unauthorized');
}
switch (payload.event) {
case 'mission.outcome.achieved':
await markCertified(payload.data.participant_id);
break;
case 'mission.participant.dropped':
await triggerReEngagement(payload.data);
break;
}
res.status(200).send('OK');
});Complete API surface.
Start building today.
Free tier includes 1,000 API requests/month. No credit card required.