The Huddle The Huddle

The Huddle API (by HR with Mike)

Version 1.0.0 · Base URL https://app.hrwithmike.com/api/v1 · OpenAPI 3.1 JSON (import into Postman, Insomnia, Workato, Boomi…)

Getting started

Webhooks

Each delivery is a POST with this JSON body:

{
  "id": "evt_6f1c…",
  "type": "training.completed",
  "created_at": "2026-11-30T09:12:44.120Z",
  "company": { "id": 12, "name": "Harbour Kitchen Group" },
  "data": {
    "user":   { "id": 7, "external_id": "E1042", "email": "jo@example.com",
                "first_name": "Jo", "last_name": "Bloggs", "job_title": "Sous Chef" },
    "module": { "id": 3, "title": "Fire Safety Induction", "version": 2 },
    "quiz_score": 100, "completed_at": "…", "expires_at": "…"
  }
}

Verify the signature: header X-Webhook-Signature: t=1764493964,v1=5d1e…. Compute HMAC-SHA256(secret, t + "." + rawBody) as hex, compare it to v1 in constant time, and reject timestamps older than 5 minutes. Return any 2xx status to acknowledge. Other responses are retried after 1m, 5m, 30m, 2h and 12h. Use id to ignore duplicates.

// Node.js
const [t, v1] = header.split(',').map(p => p.split('=')[1]);
const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const valid = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1))
              && Date.now() / 1000 - Number(t) < 300;
EventSent when
user.createdA person was added (self-registered, added by a manager, or via the API)
user.updatedA person's name, email or job title changed
user.deactivatedA person was deactivated or deleted
training.startedA person opened a required module for the first time
policy.acknowledgedA person signed a policy acknowledgement
quiz.attemptedA person submitted a quiz (pass or fail)
training.completedA person completed a module (the compliance record)
training.overdueA required module passed its due date without being completed
training.expiringA completed module needs a refresher within 14 days
training.expiredA completed module has expired and the refresher is now due

People (HRIS sync)

GET /users
List people · API key
POST /users
Create a person (sends an activation email by default) · API key
GET /users/{id}
Get a person · API key
PATCH /users/{id}
Update name, email, job title, role or active · API key
DELETE /users/{id}
Deactivate a person (add ?hard=true to delete; completion records are always kept) · API key
PUT /users/external/{external_id}
Create or update a person by HRIS employee ID · API key
POST /users/sync
Bulk sync up to 2000 people; optionally deactivate leavers · API key
GET /users/{id}/training
A person's required training and status · API key
POST /users/{id}/send-activation
Email a new activation link · API key

Job families & training

GET /job-families
List job families · API key
POST /job-families
Create a job family · API key
GET /job-families/{id}
Get a job family · API key
PATCH /job-families/{id}
Update a job family (arrays replace existing values) · API key
DELETE /job-families/{id}
Delete a job family · API key
GET /modules
Training catalogue available to the company, with assignment rules · API key
PUT /modules/{id}/assignment
Set who must complete a module · API key

Compliance & reporting

GET /compliance
Current status for every person × required module · API key
GET /completions
Completion records feed (incremental sync) · API key
GET /analytics
Completion rates, trends, by module, by job family, people needing attention · API key

Authentication

GET /branding
Platform branding, or a business's branding via ?invite_code= (logo, colours, theme)
POST /auth/login
Sign in (mobile app). Returns a user token (30 days for staff, 7 days for managers), or { mfa_required, mfa_token } when two-step verification is on
POST /auth/mfa
Complete two-step sign-in: exchange mfa_token (from /auth/login when mfa_required is true) and a 6-digit code or recovery code for an access token
POST /auth/forgot-password
Email a password reset link

Webhooks

GET /events
List webhook event types
GET /webhooks
List webhook endpoints · API key
POST /webhooks
Add a webhook endpoint (secret returned once) · API key
PATCH /webhooks/{id}
Update url, events, active, or rotate_secret · API key
DELETE /webhooks/{id}
Delete a webhook endpoint · API key
POST /webhooks/{id}/test
Send a test event · API key
GET /webhooks/deliveries
Recent deliveries and their status · API key

Mobile app (learner)

POST /auth/logout
Sign out (revokes the token) · user token
GET /me/export
Download all personal information held about me (APP 12) · user token
GET /me
The signed-in person · user token
GET /me/training
My required training with status and due dates · user token
GET /me/training/{id}
Module content: video, policy, quiz questions, progress · user token
POST /me/training/{id}/progress
Report video watch progress · user token
POST /me/training/{id}/acknowledge
Sign the policy acknowledgement · user token
POST /me/training/{id}/quiz
Submit quiz answers · user token
GET /me/completions
My completion records and certificates · user token
GET /me/team
Team analytics (company admins only) · user token