Skip to content

Build on the Personal Academy API

Personal Academy is a learning platform (LMS) with a REST and GraphQL API, signed webhooks, embeds and standards connectors.

Partners start here

Getting started

Get a key, make one call, then read the reference.

Where calls go

The base address for customers and for partners
CustomerBase URLhttps://<your organisation’s address>/api/v1Which addressThe address your organisation signs in on.
PartnerBase URLhttps://<your region host>/api/v1Which addressThe host you were given when you signed up.

Three steps

  1. Create a key

    An administrator opens Admin, Developer, API keys, names the key and picks its module scopes. The secret is shown once, so copy it then.

  2. Make a call

    Send the key as a bearer token. The example below lists courses and needs the learn scope.

  3. Read the reference

    The OpenAPI document and the browsable viewer need no key.

Your first call

First call (shell)Swipe for more
curl -sS "https://<your organisation's address>/api/v1/learn/courses?page_size=2" \
  -H "Authorization: Bearer $ACADEMY_API_KEY"
Response shape (values shortened)Swipe for more
{
  "data": [
    {
      "id": "<course id>",
      "title": "<course title>",
      "status": "published",
      "created_at": "<ISO 8601 time>"
    }
  ],
  "meta": { "cursor": { "next": "<opaque cursor, or null on the last page>" } }
}

Each course row has more fields (description, difficulty_level, duration_minutes, estimated_minutes, updated_at); the example shows four. The key needs the module.learn scope and the course.view permission.

Pages that need no key

Addresses that answer without an API key
/api/v1/openapi.jsonWhat it gives youThe OpenAPI document for every module
/api/v1/versionsWhat it gives youWhich API versions exist, and which is retiring
/api/v1/limitsWhat it gives youThe published rate limits and query bounds
/api/v1/graphql/schema.graphqlWhat it gives youThe GraphQL schema as text

Sandbox for partners

Partners get a free sandbox. Sign up, create a test customer, and call the API with test keys that never reach live data.

Test keys start with pak_test_ and live keys with pak_live_.

Sandbox caps
Test customersValue3
Test users across themValue50
Test credits a monthValue1,000
AIValueReal AI models, capped at the 1,000 test credits a month

Going over a cap refuses the call (sandbox_customer_cap, sandbox_user_cap or sandbox_credit_cap). Nothing is ever charged in a sandbox.

Create a sandbox

Which tier includes it?

The tier each developer feature starts at
API and keysStarts atBasic
WebhooksStarts atBasic
Standards and LTIStarts atBasic
Single sign-onStarts atBasic
Directory sync (SCIM)Starts atBasic
Sandbox organisationStarts atPremium
See full pricing

Authentication

Every call carries a key, and three checks run on each call.

Send Authorization: Bearer <key> on every call. There is no cookie or browser session for API calls.

The secret is shown once when the key is created. Only a SHA-256 hash is stored, so a lost key is replaced, never recovered.

Three checks on every call

The three checks and the refusal each one gives
ScopeWhat is testedThe key carries the module scope the route needs.Refusal403 scope_not_granted
EntitlementWhat is testedThe organisation’s plan includes the module right now.Refusal403 module_not_entitled
PermissionWhat is testedThe person the key acts as holds the route’s permission right now.Refusal403 permission_denied

All three are read on every request, so a plan change or a role change applies on the next call.

Acting as a learner

Routes marked as learner routes act as one learner. Send X-Learner-Id with your own external id for that person, or their Personal Academy user id.

The call then runs as that learner, so they see only what they could see in the product. A missing header is 400 learner_header_required, and an unknown learner is 404 learner_not_in_tenant.

Customer keys and partner keys

How a customer key differs from a partner key
Belongs toCustomer keyOne organisationPartner keyA partner account
Made byCustomer keyAn administrator, in Admin, Developer, API keysPartner keyThe partner portal. A partner then makes a key for each customer organisation with POST /api/v1/partner/tenants/{id}/keys
ScopesCustomer keyModule scopes, such as module.learnPartner keyPartner scopes only. A key never carries both kinds
ReachesCustomer keyThat organisation’s data: courses, learners, assessments, AIPartner keyRoutes under /api/v1/partner: customer organisations, learners, products, usage and statements
Acts asCustomer keyThe person it was made forPartner keyA named person who is a member of the partner

A customer key that calls a partner route gets 403 partner_scope_required. Keep every key on your server, never in a browser or a mobile app.

The API

REST under /api/v1, read-only GraphQL, and one OpenAPI document per module.

Resource groups

The route table has 347 operations in 22 groups, counted from the same declarations the OpenAPI documents are generated from.

API resource groups: what each covers, the key scopes it needs, its operation count and its OpenAPI document
LearningWhat it coversCourses, outlines, lessons, enrolments, progress, quiz answers and SCORM attempts.Key scopesmodule.integrationsmodule.learnmodule.standardsOperations17OpenAPI document/api/v1/learn/openapi.json
AssessmentWhat it coversAssessments, attempts, grading, the question bank, certificates and completion records.Key scopesfeature.policy_acknowledgementmodule.assessmentmodule.insightsOperations25OpenAPI document/api/v1/assess/openapi.json
PathsWhat it coversLearning paths, path enrolments and progress.Key scopesmodule.pathsOperations4OpenAPI document/api/v1/paths/openapi.json
ProgrammesWhat it coversProgrammes and programme enrolments.Key scopesmodule.pathsOperations3OpenAPI document/api/v1/programmes/openapi.json
SkillsWhat it coversSkills, competencies, scores, gaps and self-assessments.Key scopesmodule.skillsOperations6OpenAPI document/api/v1/skills/openapi.json
DevelopmentWhat it coversLearning requests, enrolment approvals, observations and development plans.Key scopesmodule.insightsmodule.learnmodule.pathsmodule.skillsOperations13OpenAPI document/api/v1/development/openapi.json
Live sessionsWhat it coversSessions, registrations and attendance.Key scopesmodule.eventsOperations6OpenAPI document/api/v1/events/openapi.json
CommunityWhat it coversFeed, posts, comments, reactions, spaces, course discussions and moderation.Key scopesmodule.communityOperations26OpenAPI document/api/v1/social/openapi.json
KnowledgeWhat it coversArticles, categories, comments, reactions and search.Key scopesmodule.knowledgeOperations17OpenAPI document/api/v1/knowledge/openapi.json
PodcastsWhat it coversFeeds, subscriptions, episodes and listening progress.Key scopesmodule.learnOperations5OpenAPI document/api/v1/podcasts/openapi.json
EngagementWhat it coversBadges, points, streaks, leaderboard, drip campaigns, nuggets and notifications.Key scopesmodule.engagemodule.learnOperations16OpenAPI document/api/v1/engage/openapi.json
AIWhat it coversCoach, flashcards, role-play, learning plans, translation, question drafting and AI grading.Key scopesmodule.aimodule.assessmentmodule.authoringmodule.learnmodule.pathsOperations13OpenAPI document/api/v1/ai/openapi.json
AuthoringWhat it coversCreate a course from source files, poll the job and export it.Key scopesmodule.authoringOperations4OpenAPI document/api/v1/authoring/openapi.json
CommerceWhat it coversListings, cart, checkout and orders.Key scopesmodule.commerceOperations6OpenAPI document/api/v1/commerce/openapi.json
MeWhat it coversThe learner’s own profile, record, timeline and transcript.Key scopesmodule.learnOperations5OpenAPI document/api/v1/me/openapi.json
OrganisationWhat it coversUsers, groups and departments.Key scopesmodule.orgOperations5OpenAPI document/api/v1/org/openapi.json
AdministrationWhat it coversPeople, roles, groups, legal holds, retention, audit events, automation rules and reports.Key scopesmodule.governancemodule.insightsmodule.integrationsmodule.orgmodule.platformOperations50OpenAPI document/api/v1/admin/openapi.json
InsightsWhat it coversCompletions, at-risk learners, return on investment and report datasets.Key scopesmodule.insightsOperations5OpenAPI document/api/v1/insights/openapi.json
REST hooksWhat it coversSubscribe a URL to an event, list your hooks and read sample payloads.Key scopes(none — ownership check: api_key_id = the calling key)(none — scoped to the calling key's own hooks, not a module)the event's module (resolved from the `event` query parameter — see description)the event's module (resolved from the request body's `event` field — see description)Operations4OpenAPI document/api/v1/hooks/openapi.json
MetaWhat it coversPublished limits, the version lifecycle and the GraphQL endpoint.Key scopesmodule.learnOperations3OpenAPI document/api/v1/meta/openapi.json
PartnerWhat it coversCustomer organisations, branding, domains, learners, keys, products, usage and statements.Key scopespartner.billingpartner.keyspartner.tenantspartner.usageOperations113OpenAPI document/api/v1/partner/openapi.json
EmbedWhat it coversEmbed sessions: one-time URLs that open a learner screen inside your product.Key scopesmodule.learnOperations1OpenAPI document/api/v1/learn/openapi.json

The documents are generated from the same declarations the routes run on, so they cannot drift from the code. A route lists the scope and permission it needs.

GraphQL, read only

One endpoint, POST /api/v1/graphql, reads the same data as REST with the same scope and permission checks on each field.

  • Queries only: no mutations and no subscriptions. Writes go through REST so each one can be audited on its own.
  • Introspection is refused. The schema is published as text at /api/v1/graphql/schema.graphql.
  • A document has one query, with no variables, fragments or directives.
  • A key that lacks one module still gets the fields it may read, plus a refusal for the rest.
GraphQL query (shell)Swipe for more
curl -sS "https://<your organisation's address>/api/v1/graphql" \
  -H "Authorization: Bearer $ACADEMY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ learnCourses(first: 5, status: \"published\") { nodes { id title } pageInfo { endCursor hasNextPage } } }"}'

Queries are bounded before any database work runs. One request uses one unit of the key’s rate limit.

GraphQL query bounds
Document sizeLimit8,000 bytes
Root fields in one queryLimit10
Selection depthLimit5
Estimated costLimit1,000, counted as rows asked for times fields selected per row, added up over the root fields

Pagination

List routes use cursors, not page numbers, so a row is never skipped or repeated while data changes.

Paging (shell)Swipe for more
# First page
curl -sS "https://<your organisation's address>/api/v1/learn/courses?page_size=50&sort=-created_at" \
  -H "Authorization: Bearer $ACADEMY_API_KEY"

# Next page: pass meta.cursor.next back as cursor
curl -sS "https://<your organisation's address>/api/v1/learn/courses?page_size=50&sort=-created_at&cursor=<meta.cursor.next>" \
  -H "Authorization: Bearer $ACADEMY_API_KEY"
  • meta.cursor.next is null on the last page. Treat the cursor as opaque.
  • sort=field or sort=-field (descending) takes a field from each route’s own list. An unknown field falls back to the default order.

page_size defaults to 25 and is capped at 100. A value outside 1 to 100, a sort field the endpoint does not list and a cursor that is not a next value from a previous response are refused with 400 bad_request.

Idempotency keys

Send an Idempotency-Key header on POST routes that create something or spend credits, such as the AI routes. A retry then changes and charges nothing twice.

  • The first successful answer is stored for 24 hours and replayed exactly on a retry, with the header Idempotent-Replayed: true.
  • A key is up to 255 characters and belongs to your API key. The same key with a different method, path, learner or body is 409 idempotency_conflict.
  • Only successes are stored, so after a refusal you can fix the cause and retry with the same key.
Idempotent call (shell)Swipe for more
curl -sS -X POST "https://<your organisation's address>/api/v1/ai/coach" \
  -H "Authorization: Bearer $ACADEMY_API_KEY" \
  -H "X-Learner-Id: <your id for the learner>" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Explain active recall in one sentence."}],"lesson_title":"Study skills"}'

Rate limits

Each API key has a request allowance for a fixed window. The figures are published, not written here, so read them from GET /api/v1/limits.

Headers returned with API responses
RateLimit-LimitMeaningRequests allowed in the current window.
RateLimit-RemainingMeaningRequests left in the current window.
RateLimit-ResetMeaningSeconds until the window resets.
RateLimit-PolicyMeaningThe policy in force, as <limit>;w=<window seconds>.
Retry-AfterMeaningSent with a 429 only: seconds to wait.
X-API-VersionMeaningThe API version that answered.
  • Your plan can raise the allowance, and an administrator can lower it for their own organisation. Call GET /api/v1/limits with your key to see the figure for your organisation, which uses no quota.
  • Customer keys, partner keys and test keys are counted under separate policies.
  • A refused call that never reached the limiter (no key, wrong scope, no entitlement, no permission) uses no quota.
  • If the limiter itself cannot be reached, calls are let through and the RateLimit headers are left off.

Versions and deprecation

The version is in the path: /api/v1. Its lifecycle is a record the API reads on every request, published at GET /api/v1/versions.

Can change inside a version

  • A new optional response field
  • A new endpoint or module
  • A new filter or sortable field

Write your client to ignore fields it does not know.

Needs a new version

  • Removing or renaming a field you already receive
  • Changing a field’s type or meaning
  • Making an optional parameter required
  • Changing what a status code means
What each version status does to your requests
currentWhat you seeServed normally. Every response carries X-API-Version.
deprecatedWhat you seeStill served. Every response adds the Deprecation and Sunset headers and a Link header, so you learn on calls you already make.
sunsetWhat you seeEvery request answers 410 Gone (version_sunset), naming the version that replaced it.

Errors

Every failed call answers with a JSON body of the same shape. Branch on code, never on the sentence.

Error bodySwipe for more
{
  "error": "A sentence for a person.",
  "code": "stable_machine_code"
}
  • Some errors add fields, such as retry_after_seconds on a 429. Over GraphQL the same codes arrive in errors[].extensions.code.
  • A 404 on a single record means there is no such id in your organisation. A record that belongs to someone else is reported the same way, on purpose.
  • /api/v1 errors are {error, code}; admin routes under /api/admin return {error, message} and are not part of the public API.

Errors any route can return

Errors any route can return
unauthorizedHTTP status401Retry?NoWhat it meansNo `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.What to doSend a live key. If it was working yesterday, check whether it was revoked or has expired.
key_revokedHTTP status401Retry?NoWhat it meansThe key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.What to doMint a new key acting as an active member. A key of a suspended organisation works again if the organisation is reinstated; a key revoked by deactivation does not.
scope_not_grantedHTTP status403Retry?NoWhat it meansThe key resolved, but it is not scoped for the module this endpoint belongs to.What to doMint a key that includes the module scope named in the `scope` field, or add the scope to this one.
module_not_entitledHTTP status403Retry?NoWhat it meansThe organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued.What to doThe organisation needs the module on its plan. Nothing about the key can fix this.
permission_deniedHTTP status403Retry?NoWhat it meansThe principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority.What to doGrant the named permission to the acting principal, or use a key acting as a principal that already holds it.
version_sunsetHTTP status410Retry?NoWhat it meansThis API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped.What to doMove to the version named in `replacement_version`. This will never start working again.
rate_limitedHTTP status429Retry?Yes, with backoffWhat it meansToo many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota.What to doWait `retry_after_seconds`, or read `RateLimit-Reset` on any response to pace yourself before you hit this.
internal_errorHTTP status500Retry?Yes, with backoffWhat it meansSomething failed on our side. The response body never carries the underlying detail.What to doRetry with backoff. If it persists, quote the time of the call when you report it.
api_keys_not_provisionedHTTP status503Retry?Yes, with backoffWhat it meansAPI key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.What to doNothing a caller can do. On a self-hosted install, apply the outstanding migrations.
product_offHTTP status403Retry?NoWhat it meansThe product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again.What to doThe partner switches the product on for the organisation (PUT /api/v1/partner/tenants/{id}/products or the portal's Products page).
Every error code
Every error code
bad_requestHTTP status400Retry?NoWhat it meansThe request was malformed — an unparseable body, or a parameter whose value is not of the shape the endpoint accepts.What to doFix the request. Retrying it unchanged will fail identically.
payload_too_largeHTTP status413Retry?NoWhat it meansThe request body is larger than the endpoint accepts (1 MB unless the endpoint documents otherwise). The body was not read past the limit.What to doSend a smaller body. Retrying it unchanged will fail identically.
unauthorizedHTTP status401Retry?NoWhat it meansNo `Authorization: Bearer <key>` header, or a key that does not resolve — unknown, revoked, or past its expiry.What to doSend a live key. If it was working yesterday, check whether it was revoked or has expired.
key_revokedHTTP status401Retry?NoWhat it meansThe key exists but was switched off by deprovisioning: the person it acts as has been deactivated in the organisation (which revokes every key acting as them), or the organisation itself is suspended or deleted. A key revoked by hand answers `unauthorized`.What to doMint a new key acting as an active member. A key of a suspended organisation works again if the organisation is reinstated; a key revoked by deactivation does not.
scope_not_grantedHTTP status403Retry?NoWhat it meansThe key resolved, but it is not scoped for the module this endpoint belongs to.What to doMint a key that includes the module scope named in the `scope` field, or add the scope to this one.
module_not_entitledHTTP status403Retry?NoWhat it meansThe organisation's plan does not currently include this module. Checked live on every request against entitlements, never against a flag stored on the key — so a plan change takes effect on the next call, not when the key is next reissued.What to doThe organisation needs the module on its plan. Nothing about the key can fix this.
permission_deniedHTTP status403Retry?NoWhat it meansThe principal the key acts as does not hold the permission this endpoint requires. Recomputed from that principal's current roles on every request — a key can never outlive its owner's authority.What to doGrant the named permission to the acting principal, or use a key acting as a principal that already holds it.
not_foundHTTP status404Retry?NoWhat it meansNo resource with that id in this organisation. A resource that exists but belongs to a different organisation is reported this way too, deliberately: a 403 would confirm the id exists.What to doCheck the id. Do not treat 404 as proof the id is unused globally.
route_not_foundHTTP status404Retry?NoWhat it meansNo endpoint exists at this method and path under /api/v1. The path or the HTTP method is wrong; this is a statement about the URL, not about any resource.What to doCheck the path against the OpenAPI document (GET /api/v1/openapi.json) and the HTTP method.
version_sunsetHTTP status410Retry?NoWhat it meansThis API version has been retired and no longer answers. The body names the version that replaced it and the date this one stopped.What to doMove to the version named in `replacement_version`. This will never start working again.
rate_limitedHTTP status429Retry?Yes, with backoffWhat it meansToo many requests for this API key in the current window. Requests refused earlier in the chain (unauthenticated, out of scope, unentitled, lacking the permission) do not consume quota.What to doWait `retry_after_seconds`, or read `RateLimit-Reset` on any response to pace yourself before you hit this.
internal_errorHTTP status500Retry?Yes, with backoffWhat it meansSomething failed on our side. The response body never carries the underlying detail.What to doRetry with backoff. If it persists, quote the time of the call when you report it.
api_versions_not_provisionedHTTP status503Retry?Yes, with backoffWhat it meansThe version catalogue could not be read, so the API cannot tell you which versions exist or whether any is retiring. Deliberately distinct from an empty list: "nothing is deprecated" and "I cannot tell you" are different answers, and only one of them is safe to build against.What to doNothing a caller can do. On a self-hosted install, apply the outstanding migrations.
api_keys_not_provisionedHTTP status503Retry?Yes, with backoffWhat it meansAPI key infrastructure is not present on this server. This is a deployment state, not a fact about your key — no request can succeed until it is fixed.What to doNothing a caller can do. On a self-hosted install, apply the outstanding migrations.
feature_not_provisionedHTTP status503Retry?Yes, with backoffWhat it meansThis specific endpoint depends on a database function or table that has not been applied to this server yet. Distinct from api_keys_not_provisioned: your key resolved fine — it is this one endpoint's own migration that is outstanding.What to doNothing a caller can do. On a self-hosted install, apply the migration named in the response (see the project's "SQL needed" report for this endpoint).
partner_scope_requiredHTTP status403Retry?NoWhat it meansThis endpoint belongs to the Partner API. The key is not a partner key, or it does not carry the `partner.*` scope the endpoint needs. A key minted for a customer organisation can never carry a partner scope.What to doUse a partner key that includes the scope named in the `scope` field.
partner_role_insufficientHTTP status403Retry?NoWhat it meansThe person this partner key acts as holds a partner role below the one this endpoint needs. Recomputed from live partner membership on every request.What to doAsk a partner owner to raise the person's role, or use a key acting as someone who already holds it.
partner_suspendedHTTP status403Retry?NoWhat it meansThe partner is suspended. Every Partner API route refuses while it is; customer organisations' own keys are unaffected.What to doContact the platform operator.
tenant_not_childHTTP status404Retry?NoWhat it meansNo customer organisation with that id belongs to this partner. An organisation owned by another partner is reported the same way, so the answer never confirms that an id exists.What to doCheck the id against GET /api/v1/partner/tenants.
partner_child_limitHTTP status403Retry?NoWhat it meansThe partner contract's `max_child_tenants` is reached.What to doAsk the platform operator to raise the contract ceiling.
wrong_regionHTTP status422Retry?NoWhat it meansThe partner is served from a different region than this deployment, so its customer organisations cannot be created or changed here.What to doCall the region the partner directory names for this partner (GET /api/v1/partner/me).
module_outside_contractHTTP status403Retry?NoWhat it meansThe tier or scope requested includes a module the partner contract does not allow the partner to sell.What to doChoose a tier or scopes inside the contract, or ask the platform operator to widen it.
partner_tier_above_contractHTTP status409Retry?NoWhat it meansThe tier requested is above the tier ceiling in the partner contract.What to doChoose a lower tier, or ask the platform operator to raise the ceiling.
partner_tier_freeHTTP status422Retry?NoWhat it meansA customer organisation is never on the free tier.What to doChoose a paid tier, or omit `tier` for the contract default.
trial_on_partner_childHTTP status422Retry?NoWhat it meansA customer organisation has no trial: it starts on the tier the partner chose.What to doChoose a paid tier, or omit `tier` for the contract default.
unknown_tierHTTP status422Retry?NoWhat it meansThe tier named is not a tier of the current price list.What to doUse a tier key from the pricing page (for example basic, advanced or premium), or omit `tier`.
partner_exitingHTTP status409Retry?NoWhat it meansThe partner has given notice to leave the programme, so it cannot add customer organisations.What to doNothing to retry. Existing customers choose to become direct customers or to export.
learner_header_requiredHTTP status400Retry?NoWhat it meansThis endpoint acts as a learner and needs the `X-Learner-Id` header (an external_id or a user_id).What to doSend the header.
learner_not_in_tenantHTTP status404Retry?NoWhat it meansNo active learner with that identifier exists in this organisation. A learner of another organisation is reported the same way.What to doCreate the learner first (POST /api/v1/partner/tenants/{id}/learners), or check the identifier.
origin_not_allowedHTTP status403Retry?NoWhat it meansThe `origin` is not one this organisation has allowed to frame its pages. It must be an exact origin (scheme, host and port) listed in the partner's `embed_frame_ancestors` or in the organisation's `embed.allowed_origins` setting.What to doAdd the page's origin to the allow-list, or send the origin that actually frames the embed.
target_not_embeddableHTTP status403Retry?NoWhat it meansThe `target` is not a route on the embed allow-list (account security, administration and anything else that was never built to sit inside another site's page are refused).What to doChoose a target from the embeddable routes in the embed documentation.
email_not_allowedHTTP status422Retry?NoWhat it meansAn email address was sent for a learner of an organisation whose contract is `identity_mode: pseudonymous`.What to doOmit `email`; the learner is identified by `external_id` alone.
email_in_useHTTP status409Retry?NoWhat it meansThat email address already belongs to an account outside this organisation.What to doUse a different address, or omit it.
learner_capHTTP status402Retry?NoWhat it meansThe partner contract's `max_learners_per_tenant` is reached for this organisation.What to doDeactivate learners, or ask the platform operator to raise the contract ceiling.
learner_limit_reachedHTTP status402Retry?NoWhat it meansThe organisation's plan seat limit is reached.What to doMove the organisation to a plan with more seats.
limit_reachedHTTP status402Retry?NoWhat it meansA limit of the organisation's plan refuses this request (for example the Free member limit).What to doRead `upgrade_to` for the lowest plan tier that allows it, or free up room (remove a member, revoke a pending invitation).
legal_holdHTTP status409Retry?NoWhat it meansThe learner is under a legal hold, so the erasure request was refused and nothing was deleted.What to doWait for the hold to be lifted, then retry.
conflictHTTP status409Retry?NoWhat it meansThe request conflicts with the current state: a subdomain or hostname that is already claimed, or an organisation that cannot take the change.What to doChoose another value, or read the message for the specific conflict.
validation_failedHTTP status422Retry?NoWhat it meansThe request is well-formed but a value is not acceptable (for example an `external_id` outside 1 to 200 characters).What to doFix the value named in the message.
ai_quota_exceededHTTP status429Retry?Yes, with backoffWhat it meansThe AI allowance was used up: the per-minute rate, the learner's daily allowance, the organisation's monthly AI budget, or the platform-wide pause. The same quota the signed-in product applies.What to doWait `retry_after_seconds` when it is present; otherwise the allowance resets at the start of the next day or month.
allowance_exhaustedHTTP status402Retry?NoWhat it meansThe caller has used their weekly AI allowance in this organisation (PRC-26: a weekly limit per person by class, with group and person overrides). The organisation wallet may still have credits. No credits or prices are given (D8: the allowance itself is shown to the person in the product, never the wallet).What to doWait for the weekly reset (Monday 00:00 UTC, `resets_at`), or ask for more from `request_url` (an approver can raise the limit for a week).
insufficient_creditsHTTP status402Retry?NoWhat it meansThe AI credit balance that pays for this call cannot cover it. The message differs by who is asking: an administrator of an organisation that buys its own credits is told to buy a pack (`buy_url` is present); an administrator of an organisation whose credits come from its provider (a partner wallet) is told to ask the provider (`credits_source` is 'partner', no `buy_url`); everyone else (learner, instructor) is told to use "Request more" and never gets `buy_url`.What to doAn administrator tops up the credit balance that pays for the organisation (or asks the provider to), then retry. Anyone else asks for more from `request_url`.
guardrails_missingHTTP status503Retry?Yes, with backoffWhat it meansThe locked safety guardrails for this AI activity could not be loaded, so the call was refused before any model was reached. The gateway fails closed.What to doNothing a caller can do. Retry later; if it persists, report it to the platform operator.
format_unavailableHTTP status501Retry?NoWhat it meansThe requested export format is not available on this deployment (for example parquet for BI export).What to doAsk for csv or json instead.
feature_disabledHTTP status403Retry?NoWhat it meansThis AI feature is switched off for the organisation (its AI opt-out) or is not registered. Read live on every call, so an opt-out takes effect on the next request.What to doAn organisation administrator must switch the feature on.
ai_output_invalidHTTP status502Retry?Yes, with backoffWhat it meansThe model's answer failed validation (malformed or cut off), so nothing was stored and no usable result exists. Credits are not charged for a call that produced no usable result.What to doRetry the request. A shorter input often helps.
completion_requiredHTTP status409Retry?NoWhat it meansA certificate can only be issued to a learner who has completed the course; no completion exists for this learner and course.What to doRecord or wait for the completion, then retry.
idempotency_conflictHTTP status409Retry?NoWhat it meansThe `Idempotency-Key` was already used for a different request body or path, or the first request with this key is still being processed.What to doUse a new key for new work; wait and retry with the same key if the first request is still running.
lesson_lockedHTTP status403Retry?NoWhat it meansThe learner cannot open this lesson: their rental has expired or their pay-per-view allowance is used up. The same condition the course page shows.What to doRenew the learner's access, then retry.
proctored_requires_top_levelHTTP status409Retry?NoWhat it meansThis assessment is proctored (camera, fullscreen, focus rules), so it cannot be taken headless or inside a frame.What to doCreate an embed session for the assessment and open it in its own browser tab.
too_largeHTTP status413Retry?NoWhat it meansThe upload is larger than the 10 MB limit for assessment answers.What to doUpload a smaller file.
topups_not_applicableHTTP status409Retry?NoWhat it meansThis partner is billed for credits on its monthly statement (postpaid), so prepaid wallet top-ups do not apply.What to doNothing to do: credits used appear on the next statement.
payment_account_requiredHTTP status409Retry?NoWhat it meansThis organisation has no payment account connected, so it cannot take payments. A partner's customer organisation never uses the platform's payment account.What to doAn organisation administrator connects a Razorpay or Stripe account in Commerce settings.
payment_provider_errorHTTP status502Retry?Yes, with backoffWhat it meansThe payment provider refused to create the checkout. The order exists and is pending.What to doRetry shortly; if it persists, check the payment account's keys and mode.
partner_subscription_not_availableHTTP status403Retry?NoWhat it meansModule subscriptions cannot be sold inside a partner's customer organisation; its modules come from the partner's contract.What to doAsk the partner to change the organisation's plan.
ai_refusedHTTP status403Retry?NoWhat it meansThe AI gateway refused the call for a reason not covered by a more specific code (for example a module or permission the learner lacks, or a budget rule).What to doRead `reason` for the gateway's own refusal code.
product_offHTTP status403Retry?NoWhat it meansThe product this endpoint belongs to is switched off for this organisation by its partner. Checked live on every request, so a switch takes effect on the next call. The product's data is kept, read-only, and comes back when the product is switched on again.What to doThe partner switches the product on for the organisation (PUT /api/v1/partner/tenants/{id}/products or the portal's Products page).
unknown_productHTTP status422Retry?NoWhat it meansA product key in `products` is not a product of the catalogue.What to doUse the product keys listed on the portal's Products page and the pricing page.
product_requiresHTTP status422Retry?NoWhat it meansA product in `products` needs another product that is not in the set.What to doAdd the product named in the message to the set, or leave out the product that needs it.
product_outside_contractHTTP status403Retry?NoWhat it meansA product in `products` includes a module the partner contract does not allow the partner to sell.What to doLeave the product out, or ask the platform operator to widen the contract.
products_requiredHTTP status422Retry?NoWhat it meansNo `products` were named and the partner has no partner-wide default products to apply.What to doSend `products`, or set the partner-wide default products first.
sandbox_customer_capHTTP status403Retry?NoWhat it meansThe sandbox already has the most test customers it may have (the portal's Go live page shows the limits). Nothing was charged; a sandbox is never billed.What to doDelete a test customer you no longer need, or go live to create live customers.
sandbox_user_capHTTP status403Retry?NoWhat it meansThe sandbox already has the most test users it may have across its test customers. Nothing was charged.What to doDeactivate a test user you no longer need, then retry.
sandbox_credit_capHTTP status403Retry?NoWhat it meansThe sandbox has used its test credits for this month. Test credits are never billed and never come from the partner wallet.What to doWait for the allowance to renew on the 1st (UTC).
test_key_requiredHTTP status403Retry?NoWhat it meansA sandbox partner and its test customers use test keys (`pak_test_...`) only.What to doMint a test key, or request go-live for live keys.
test_key_on_live_tenantHTTP status403Retry?NoWhat it meansA test key (`pak_test_...`) reaches only test (sandbox) customers, never a live organisation.What to doUse a live key for a live customer organisation.
test_customer_immutableHTTP status409Retry?NoWhat it meansWhether an organisation is a test customer is fixed when it is created.What to doCreate a new organisation of the kind you need.
unknown_eventHTTP status422Retry?NoWhat it meansA named webhook event is not one this platform sends.What to doUse an event name from the published webhook catalogue.
event_not_subscribableHTTP status422Retry?NoWhat it meansA named event belongs to the partner's own account, not to a customer organisation.What to doSubscribe to this event on the partner account instead.
webhook_limit_reachedHTTP status409Retry?NoWhat it meansThe partner already has the most webhook endpoints it may hold on this customer organisation.What to doRemove an existing endpoint before registering a new one.
course_not_foundHTTP status422Retry?NoWhat it meansA course id does not belong to this customer organisation.What to doVerify the course id and ensure it belongs to this organisation.
skill_not_foundHTTP status422Retry?NoWhat it meansA skill id does not belong to this customer organisation.What to doVerify the skill id and ensure it belongs to this organisation.
competency_not_foundHTTP status422Retry?NoWhat it meansA competency id does not belong to this customer organisation.What to doVerify the competency id and ensure it belongs to this organisation.
group_not_foundHTTP status422Retry?NoWhat it meansA group id does not belong to this customer organisation.What to doVerify the group id and ensure it belongs to this organisation.
category_in_useHTTP status409Retry?NoWhat it meansA knowledge category still has articles, so it cannot be deleted.What to doReassign or delete the articles in this category before deleting it.
cannot_follow_selfHTTP status422Retry?NoWhat it meansA person cannot follow themselves.What to doSpecify another person to follow.
follow_limit_reachedHTTP status422Retry?NoWhat it meansThe learner already follows the most people or tags allowed.What to doUnfollow an existing person or tag before following a new one.
file_infectedHTTP status422Retry?NoWhat it meansThe file was blocked by the malware scan.What to doScan the file locally and upload a clean copy.
scan_unavailableHTTP status503Retry?NoWhat it meansThe malware scan could not run, so the file was not stored.What to doRetry the upload once the scanning service is available.
unsupported_typeHTTP status415Retry?NoWhat it meansThis type of file cannot be attached.What to doUpload a supported file type as documented in the attachment guide.
attachment_limit_reachedHTTP status409Retry?NoWhat it meansThe article already has the most attachments allowed.What to doRemove an existing attachment before adding a new one.
partner_pausedHTTP status409Retry?NoWhat it meansThe partner has an overdue statement, so new customers cannot be added until it is paid.What to doSettle the overdue statement to restore customer creation.

Webhooks

Signed events, sent to your HTTPS address.

Set up an endpoint

  • An administrator adds an endpoint in Admin, Developer, Outbound webhooks: an HTTPS address, a module and, optionally, a subset of its events.
  • The signing secret is shown once, at creation or rotation. Rotating keeps the old secret valid for an overlap window, and each delivery then carries both signatures.
  • The address must be HTTPS and must resolve to a public address. It is checked when you save and before every delivery.

Zapier, Make and n8n connect through REST hooks and an API key (none of them has a Personal Academy app listing). They subscribe through the REST hooks routes: POST /api/v1/hooks, GET /api/v1/hooks, DELETE /api/v1/hooks/{id} and GET /api/v1/hooks/samples.

What each delivery carries

Headers on a webhook delivery
X-Webhook-IdMeaningA delivery id. The same on every retry, so use it to drop duplicates.
X-Webhook-EventMeaningThe event type, such as course.published.
X-Webhook-TimestampMeaningUnix seconds at send time.
X-Webhook-SignatureMeaningsha256=<hex>. Two values, separated by a space, during a rotation overlap.

Check the signature

The signature is an HMAC-SHA256 of the timestamp, a dot and the raw request body, keyed with your secret and written in hex.

  • Verify against the exact bytes you received, before parsing the JSON.
  • Compare in constant time, and reject a timestamp more than five minutes old. That check closes the replay window, and it is yours to make.
Verify a delivery (Node.js)Swipe for more
const crypto = require('crypto');

function isValidWebhook(rawBody, timestamp, signatureHeader, secret) {
  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${timestamp}.${rawBody}`, 'utf8')
    .digest('hex');

  // During a rotation overlap the header holds two "sha256=<hex>" values.
  return signatureHeader.split(' ').some((part) => {
    const given = Buffer.from(part.replace(/^sha256=/, ''), 'hex');
    const want = Buffer.from(expected, 'hex');
    return given.length === want.length && crypto.timingSafeEqual(given, want);
  });
}

Retries, dead letter and replay

Delivery is at least once. A timeout, a network error, a non-2xx answer or a redirect counts as a failure and is retried.

Webhook retry schedule
Attempts for one eventValue8
Delay before a retryValueA random wait between zero and a cap that doubles each time, starting at 60 seconds
Longest capValue60 minutes
After the last attemptValueThe delivery is dead-lettered, and an administrator can replay it

An administrator can replay a dead-lettered delivery from the endpoint’s delivery list. That resets the attempt count and sends it again with a fresh timestamp and signature.

If the organisation’s access to a module lapses, events for that module stop until it returns. The endpoint is kept.

Event families

Each endpoint is created for one module and can subscribe to all of its events or a subset. GET /api/v1/hooks/samples returns a real recent payload for an event, or a synthetic example if it has not fired yet.

  • Courses and lessons

    module.learn

    • course.published
    • course.unpublished
    • enrollment.created
    • lesson.completed
    • course.completed
  • Assessments and certificates

    module.assessment

    • certificate.issued
    • certificate.revoked
    • quiz.attempt.graded
    • assessment.submitted
  • Learning paths

    module.paths

    • path.enrollment.created
    • path.completed
  • AI practice

    module.ai

    • roleplay.scored
    • practice.completed
  • Skills

    module.skills

    • skill.score.updated
  • Community

    module.community

    • post.created
    • discussion.comment.created
  • Engagement

    module.engage

    • notification.created
    • drip.campaign.completed
  • Commerce

    module.commerce

    • order.completed
    • subscription.created
    • subscription.cancelled
  • People

    module.org

    • learner.created
    • learner.deactivated
    • user.joined
  • Partner account

    module.platform

    • partner.wallet.low
    • support.ticket.updated
    • product.enabled
    • partner.sandbox.wipe_warning
    • product.disabled
    • partner.billing.overdue_warning
    • partner.signups.paused
    • partner.signups.resumed
    • partner.price_change.announced
    • partner.price_change.withdrawn
  • Live sessions

    module.events

    • session.registered
    • session.attended
    • session.cancelled
  • feature.policy_acknowledgement

    feature.policy_acknowledgement

    • policy.published
    • policy.assigned
    • policy.acknowledged

Embed

Show a learner screen inside your product, in the organisation’s brand.

  1. Your server asks for a session

    POST /api/v1/embed/sessions with the customer key, the learner in X-Learner-Id, a target screen and your page’s exact origin.

  2. You get a one-time URL

    It works once and for 60 seconds, so ask for it when the page loads.

  3. You put it in an iframe

    The URL signs the learner in and opens the screen in the organisation’s brand, without the Personal Academy menus.

  4. The frame talks back

    It posts a few messages to your page: ready, resize, navigate, complete and error.

Mint a session

Mint a session (shell, run on your server)Swipe for more
curl -sS -X POST "https://<your organisation's address>/api/v1/embed/sessions" \
  -H "Authorization: Bearer $ACADEMY_API_KEY" \
  -H "X-Learner-Id: <your id for the learner>" \
  -H "Content-Type: application/json" \
  -d '{"target":"/my-learning","origin":"https://app.example.com"}'
Response (201)Swipe for more
{
  "data": {
    "url": "https://<host>/embed/s/<one-time code>",
    "expires_in": 60
  }
}
  • The target must be on the embed allow-list. Anything else is 403 target_not_embeddable.
  • The origin is exact: scheme, host and port, with no path and no wildcard. It must be in the partner’s allowed list or the organisation’s embed.allowed_origins setting, or the call is 403 origin_not_allowed.
  • The key needs the module scope of the target screen. Core screens such as home and my learning need a key with at least one scope.

Show it

Show it (HTML)Swipe for more
<iframe src="<url from your server>" title="Learning"
        allow="fullscreen; clipboard-write"
        referrerpolicy="strict-origin-when-cross-origin"
        style="border:0;width:100%;height:600px"></iframe>

Do not add a sandbox attribute: the app needs same-origin storage inside its own frame.

You do not need an SDK: the embed is an iframe and a few messages. A small dependency-free helper script for it is a public download at /downloads/partner/personal-academy-embed.js, listed under Tools.

Messages from the frame

Messages the embedded frame posts to your page
pa:readyFieldsnoneWhenThe embedded screen has loaded.
pa:resizeFieldsheightWhenThe page height changed. Set your iframe to it.
pa:navigateFieldstargetWhenThe learner moved to another screen in the frame.
pa:completeFieldstarget, resource_id, scoreWhenA lesson, course, assessment or practice scenario finished.
pa:errorFieldscodeWhenSomething stopped the embed. Ask for a new session and mount again.

Check event.origin and event.source before you trust a message. For records you keep, use the signed webhook, not pa:complete.

New tabs and hosting

A few screens cannot run in a frame: payment, e-signature, account security, file downloads and proctored assessments. The frame shows a Continue in a new tab button, and the result comes back by webhook.

Two ways to host the frame
Your subdomain by CNAMESet upAdd the domain with POST /api/v1/partner/tenants/{id}/domains and create the DNS record it names.CookiesSame site as your page, so ordinary cookies work in every browser.
Our domainSet upNothing to set up.CookiesPartitioned cookies. A browser that blocks all third-party cookies breaks the embed.

LTI

Launch Personal Academy from your LMS, pick content with Deep Linking, and send completions back.

Personal Academy is the tool and your LMS is the platform. A learner clicks a link in your LMS and arrives signed in, with no second login.

Three addresses for your LMS

The addresses your LMS asks for
OIDC login initiation URLPastehttps://<organisation host>/api/lti/login
Redirect URI and target link URIPastehttps://<organisation host>/api/lti/launch
Public JWK Set URLPastehttps://<organisation host>/api/lti/jwks

These sit on the organisation’s own host. An administrator also sees them at the top of Admin, LTI 1.3.

Set up

  1. Register the tool in your LMS

    Paste the three URLs above, then note the issuer, client id, deployment id and the LMS’s own key and token URLs.

  2. Register your LMS with us

    In Admin, LTI 1.3, enter those values. Launches from an unknown issuer are refused.

  3. Choose how people are matched

    The default is your LMS’s stable user id. You can switch on just-in-time creation of learners, with a default role.

Deep Linking

With Deep Linking switched on, an instructor who picks content in your LMS sees a picker of courses, paths, programmes, practice scenarios, assessments and spaces. The picker needs the course.assign permission, and each pick becomes a resource link in your LMS.

Grades back to your LMS

Completions can go back to your LMS gradebook through Assignment and Grade Services, in one direction: from Personal Academy to your LMS.

  • It applies to a learner who arrived from a link that has a gradebook column. Switch on Assignment and Grade Services in the tool settings of your LMS.
  • When that learner completes the lesson, Personal Academy posts a score of 1 out of 1, marked completed and fully graded, to that column. Quiz scores are not sent.
  • A job sends queued scores every ten minutes and gives up on a score after five failed attempts, so allow a few minutes.

SCIM and sign-in

Provision people from your directory and let them sign in with their work account.

SCIM 2.0

SCIM 2.0 lets your identity provider create, update and deactivate people, and list and create groups.

Your identity provider authenticates with a bearer token made for the organisation. The token decides which organisation it reaches.

SCIM routes
GET, POSTPath/api/scim/v2/UsersWhat it doesList people (up to 500 a page) and create a person
GET, PUT, PATCH, DELETEPath/api/scim/v2/Users/{id}What it doesRead, replace, change or remove one person
GET, POSTPath/api/scim/v2/GroupsWhat it doesList groups and create a group

Lists take one filter of the form attribute eq "value", on userName, emails.value or externalId.

Single sign-on

People can also sign in with their work account. An administrator sets this up in Admin, Company sign-in.

  • SAML: give the identity provider’s metadata as a URL or as XML.
  • OpenID Connect: give the issuer, the client id and the client secret.
  • Both go through the sign-in provider, and an administrator can test the settings before saving.

Standards

Import and export the packages other learning tools use.

Learning standards: direction and detail
SCORM 1.2DirectionExportWhat happensDownload a course as a SCORM 1.2 package for another LMS, with the Course Studio add-on: GET /api/export/{courseId}/scorm.
SCORM 2004DirectionImport and playWhat happensSCORM 2004 (3rd and 4th edition) packages can be imported and played in the course player, with resume across several items. Sequencing rules inside a package are ignored, so learners move freely between items.
xAPIDirectionStore and inboundWhat happensPackages that launch from Personal Academy send statements to the built-in learning record store. Other systems can post statements in with a key and secret made for the organisation.
cmi5DirectionImportWhat happensA cmi5 course with a single assignable unit can be imported and launched. A course with more than one unit is refused with a message that says what to do.
AICCDirectionImport and trackWhat happensAn AICC package (.crs and .au descriptors, or a zip of them) is registered as a reference to the course hosted by the vendor, and its first assignable unit is launched in the course player. The unit reports progress, score and completion back over HACP using a session id made for each launch. Several units, sequencing and storing the vendor content are not offered.
Course exportDirectionExportWhat happensPDF and Word are included. SCORM 1.2, xAPI and HTML packages need the Course Studio add-on. In a Course Studio trial, PDF, Word and the participant and instructor kits are allowed and carry a trial draft footer line on every page; after the trial all exports in a Course Studio workspace pause until Course Studio continues. All are under GET /api/export/{courseId}/<format>.

Tools

It is plain HTTP and JSON, so any client works.

Tools for developers
OpenAPI documentWhat it isImport /api/v1/openapi.json into Postman, Insomnia or a client generator. It is public and always current.
API referencesWhat it isOpen /developers/reference?audience=platform for the Platform API or /developers/reference?audience=partner for the Partner API. Every route, field and error is listed, and the overview page at /developers/reference helps you choose.
Postman collectionWhat it isA Postman collection with a request for every API operation. It is a public download at /downloads/partner/personal-academy-partner.postman_collection.json.
Embed helperWhat it isA small script that mounts the iframe and passes the messages to your callbacks. It is a public download at /downloads/partner/personal-academy-embed.js.
Partner guidesWhat it isStep-by-step guides for each integration level, identity and privacy, billing, errors and HR system connections. They are in the partner console, after you sign in.
Zapier, Make and n8nWhat it isConnect through REST hooks and an API key, using the routes described under Webhooks. There is no app listing in their stores.

Partners can start from the partners page.

Partners start here

Start training your team today.