Allveta API

Read status, results and certificates from your own systems, assign training, and get an event when something happens. Or connect an AI assistant over MCP.

Get started

  1. An admin creates a key under Organization › API and MCP in Allveta. The key is shown once and stored only as a hash.
  2. Give the key only the permissions it needs. A key can have an expiry date. When you replace a key, the old one keeps working for seven days.
  3. Send the key as a bearer token on every call. The key belongs to the organization and never reaches another one.
results:readPeople, status, results, Verify and certificates
content:readKnowledge tests, sessions and courses
content:writeCreate sessions
assign:writeAssign training and send invitations
certificates:writeIssue earned certificates

Calls

The API is JSON over HTTPS under /v1/api. Lists are paged with a cursor.

List the people register

curl https://app.allveta.com/v1/api/people?limit=50 \
  -H "Authorization: Bearer $ALLVETA_KEY"

Read every page in TypeScript

type Page<T> = { data: T[]; nextCursor: string | null }

async function all<T>(path: string, key: string): Promise<T[]> {
  const out: T[] = []
  let cursor: string | null = null
  do {
    const url = new URL(`https://app.allveta.com/v1/api${path}`)
    if (cursor) url.searchParams.set("cursor", cursor)
    const response = await fetch(url, { headers: { authorization: `Bearer ${key}` } })
    if (response.status === 429) {
      await new Promise((done) => setTimeout(done, Number(response.headers.get("retry-after") ?? 1) * 1000))
      continue
    }
    if (!response.ok) throw new Error((await response.json()).error)
    const page = (await response.json()) as Page<T>
    out.push(...page.data)
    cursor = page.nextCursor
  } while (cursor)
  return out
}

const certificates = await all("/certificates?state=expiring", process.env.ALLVETA_KEY!)

Pass nextCursor back as cursor until it is null. limit is 1 to 200 and defaults to 50.

Limits and errors

Each key may make 600 calls a minute. Over that you get 429 with Retry-After in seconds.

Errors are JSON with a word you can branch on, such as insufficient_scope, not_found, not_eligible or license_required, and sometimes a sentence that explains it.

Endpoints

All paths start at https://app.allveta.com/v1/api.

CallPermissionWhat it does
GET /peopleresults:readThe people register, with status per person
GET /people/{id}results:readOne person with every session, course and certificate
GET /quizzescontent:readThe organization's knowledge tests
GET /trainingscontent:readSessions and courses with counts
POST /trainingscontent:writeA new session from a knowledge test
GET /trainings/{id}/participantsresults:readStatus per person in a session or course
POST /trainings/{id}/assignmentsassign:writeAssign people, departments or addresses and invite them
GET /verifyresults:readThe Verify score, group level only
GET /certificatesresults:readIssued certificates, filter with state=valid, expiring, expired or revoked
POST /certificatescertificates:writeIssue a certificate the person has earned
curl -X POST https://app.allveta.com/v1/api/trainings/$TRAINING_ID/assignments \
  -H "Authorization: Bearer $ALLVETA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"departmentIds": ["$DEPARTMENT_ID"], "invite": true}'

A result per person is included only when the organization shows individual question results. Answers per question are never in the API.

The full description is the OpenAPI 3.1 document: openapi.json.

Webhooks

An admin adds an address and picks the events. Allveta sends a POST with JSON for each event, usually within the hour.

training.completedSomeone finished a session for the first time
training.passedSomeone passed
training.failedAn attempt below the pass mark
certificate.issuedA certificate was issued
certificate.expiringA certificate expires in 30 days
certificate.expiredA certificate has expired
certificate.revokedA certificate was revoked and is no longer valid
person.addedA person joined the register
person.removedA person left or was removed
knowledge.changedA source shared with the whole organization has a new version
agent_test.requestedAn agent test is waiting for the agent's answers
agent_test.passedAn agent passed its test
agent_test.failedAn agent failed its test
{
  "id": "evt_training_completed_9f3c…",
  "type": "training.completed",
  "createdAt": "2026-11-05T09:12:40.000Z",
  "orgId": "…",
  "data": {
    "person": { "id": "…", "name": "Maja Lindqvist", "email": "maja@example.com" },
    "training": { "id": "…", "kind": "session", "name": "Data protection 2026" },
    "result": { "passed": true, "attempt": 1 }
  }
}

Check the signature

Every delivery has an allveta-signature header: t is the time in Unix seconds, and v1 is HMAC-SHA256 of t, a period and the raw body, with the webhook's secret. The secret is shown once when the webhook is added.

import { createHmac, timingSafeEqual } from "node:crypto"

// header: the allveta-signature header of the delivery
export function verify(secret: string, rawBody: string, header: string, now = Date.now()): boolean {
  const parts = Object.fromEntries(header.split(",").map((part) => part.split("=", 2)))
  const t = Number(parts.t)
  if (!t || Math.abs(now / 1000 - t) > 300) return false
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex")
  return expected.length === parts.v1?.length && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
}

Answer with a 2xx within ten seconds. Otherwise Allveta tries again after 5 and 30 minutes, then 1, 3, 6, 12 and 24 hours. The event id is the same in every attempt, so you can drop duplicates.

xAPI to your LRS

Choose xAPI instead of JSON and enter your LRS statements endpoint. Allveta sends the same events as xAPI 1.0.3 statements, with your key and secret as Basic authentication.

MCP

The MCP server lets an AI assistant such as Claude read and act in Allveta as the person who connects it.

  1. Add https://app.allveta.com/mcp as a custom connector in the assistant.
  2. Sign in with your work account and allow the access Allveta asks for.
  3. The assistant sees only what you may see in Allveta. Tools that send invitations or issue certificates are marked, so the assistant asks you first.

Tools: list_people, get_person, list_trainings, list_quizzes, get_training_status, get_verify_score, list_certificates, create_training, assign_training and issue_certificate.

It uses Streamable HTTP and OAuth 2.1 with PKCE. Clients register themselves.

An admin can turn MCP off for the organization. Then every connection stops at once.