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.
Getting started
Get a key, make one call, then read the reference.
Where calls go
| You are a | Base URL | Which address |
|---|---|---|
| Customer | Base URLhttps://<your organisation’s address>/api/v1 | Which addressThe address your organisation signs in on. |
| Partner | Base URLhttps://<your region host>/api/v1 | Which addressThe host you were given when you signed up. |
Three steps
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.
Make a call
Send the key as a bearer token. The example below lists courses and needs the learn scope.
Read the reference
The OpenAPI document and the browsable viewer need no key.
Your first call
curl -sS "https://<your organisation's address>/api/v1/learn/courses?page_size=2" \
-H "Authorization: Bearer $ACADEMY_API_KEY"{
"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
| Address | What it gives you |
|---|---|
| /api/v1/openapi.json | What it gives youThe OpenAPI document for every module |
| /api/v1/versions | What it gives youWhich API versions exist, and which is retiring |
| /api/v1/limits | What it gives youThe published rate limits and query bounds |
| /api/v1/graphql/schema.graphql | What 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_.
| Cap | Value |
|---|---|
| Test customers | Value3 |
| Test users across them | Value50 |
| Test credits a month | Value1,000 |
| AI | ValueReal 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.
Which tier includes it?
| Feature | Starts at |
|---|---|
| API and keys | Starts atBasic |
| Webhooks | Starts atBasic |
| Standards and LTI | Starts atBasic |
| Single sign-on | Starts atBasic |
| Directory sync (SCIM) | Starts atBasic |
| Sandbox organisation | Starts atPremium |
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
| Check | What is tested | Refusal |
|---|---|---|
| Scope | What is testedThe key carries the module scope the route needs. | Refusal403 scope_not_granted |
| Entitlement | What is testedThe organisation’s plan includes the module right now. | Refusal403 module_not_entitled |
| Permission | What 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
| Aspect | Customer key | Partner key |
|---|---|---|
| Belongs to | Customer keyOne organisation | Partner keyA partner account |
| Made by | Customer keyAn administrator, in Admin, Developer, API keys | Partner keyThe partner portal. A partner then makes a key for each customer organisation with POST /api/v1/partner/tenants/{id}/keys |
| Scopes | Customer keyModule scopes, such as module.learn | Partner keyPartner scopes only. A key never carries both kinds |
| Reaches | Customer keyThat organisation’s data: courses, learners, assessments, AI | Partner keyRoutes under /api/v1/partner: customer organisations, learners, products, usage and statements |
| Acts as | Customer keyThe person it was made for | Partner 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.
| Group | What it covers | Key scopes | Operations | OpenAPI document |
|---|---|---|---|---|
| Learning | What it coversCourses, outlines, lessons, enrolments, progress, quiz answers and SCORM attempts. | Key scopesmodule.integrationsmodule.learnmodule.standards | Operations17 | OpenAPI document/api/v1/learn/openapi.json |
| Assessment | What it coversAssessments, attempts, grading, the question bank, certificates and completion records. | Key scopesfeature.policy_acknowledgementmodule.assessmentmodule.insights | Operations25 | OpenAPI document/api/v1/assess/openapi.json |
| Paths | What it coversLearning paths, path enrolments and progress. | Key scopesmodule.paths | Operations4 | OpenAPI document/api/v1/paths/openapi.json |
| Programmes | What it coversProgrammes and programme enrolments. | Key scopesmodule.paths | Operations3 | OpenAPI document/api/v1/programmes/openapi.json |
| Skills | What it coversSkills, competencies, scores, gaps and self-assessments. | Key scopesmodule.skills | Operations6 | OpenAPI document/api/v1/skills/openapi.json |
| Development | What it coversLearning requests, enrolment approvals, observations and development plans. | Key scopesmodule.insightsmodule.learnmodule.pathsmodule.skills | Operations13 | OpenAPI document/api/v1/development/openapi.json |
| Live sessions | What it coversSessions, registrations and attendance. | Key scopesmodule.events | Operations6 | OpenAPI document/api/v1/events/openapi.json |
| Community | What it coversFeed, posts, comments, reactions, spaces, course discussions and moderation. | Key scopesmodule.community | Operations26 | OpenAPI document/api/v1/social/openapi.json |
| Knowledge | What it coversArticles, categories, comments, reactions and search. | Key scopesmodule.knowledge | Operations17 | OpenAPI document/api/v1/knowledge/openapi.json |
| Podcasts | What it coversFeeds, subscriptions, episodes and listening progress. | Key scopesmodule.learn | Operations5 | OpenAPI document/api/v1/podcasts/openapi.json |
| Engagement | What it coversBadges, points, streaks, leaderboard, drip campaigns, nuggets and notifications. | Key scopesmodule.engagemodule.learn | Operations16 | OpenAPI document/api/v1/engage/openapi.json |
| AI | What it coversCoach, flashcards, role-play, learning plans, translation, question drafting and AI grading. | Key scopesmodule.aimodule.assessmentmodule.authoringmodule.learnmodule.paths | Operations13 | OpenAPI document/api/v1/ai/openapi.json |
| Authoring | What it coversCreate a course from source files, poll the job and export it. | Key scopesmodule.authoring | Operations4 | OpenAPI document/api/v1/authoring/openapi.json |
| Commerce | What it coversListings, cart, checkout and orders. | Key scopesmodule.commerce | Operations6 | OpenAPI document/api/v1/commerce/openapi.json |
| Me | What it coversThe learner’s own profile, record, timeline and transcript. | Key scopesmodule.learn | Operations5 | OpenAPI document/api/v1/me/openapi.json |
| Organisation | What it coversUsers, groups and departments. | Key scopesmodule.org | Operations5 | OpenAPI document/api/v1/org/openapi.json |
| Administration | What it coversPeople, roles, groups, legal holds, retention, audit events, automation rules and reports. | Key scopesmodule.governancemodule.insightsmodule.integrationsmodule.orgmodule.platform | Operations50 | OpenAPI document/api/v1/admin/openapi.json |
| Insights | What it coversCompletions, at-risk learners, return on investment and report datasets. | Key scopesmodule.insights | Operations5 | OpenAPI document/api/v1/insights/openapi.json |
| REST hooks | What 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) | Operations4 | OpenAPI document/api/v1/hooks/openapi.json |
| Meta | What it coversPublished limits, the version lifecycle and the GraphQL endpoint. | Key scopesmodule.learn | Operations3 | OpenAPI document/api/v1/meta/openapi.json |
| Partner | What it coversCustomer organisations, branding, domains, learners, keys, products, usage and statements. | Key scopespartner.billingpartner.keyspartner.tenantspartner.usage | Operations113 | OpenAPI document/api/v1/partner/openapi.json |
| Embed | What it coversEmbed sessions: one-time URLs that open a learner screen inside your product. | Key scopesmodule.learn | Operations1 | OpenAPI 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.
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.
| Bound | Limit |
|---|---|
| Document size | Limit8,000 bytes |
| Root fields in one query | Limit10 |
| Selection depth | Limit5 |
| Estimated cost | Limit1,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.
# 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.nextis 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.
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.
| Header | Meaning |
|---|---|
| RateLimit-Limit | MeaningRequests allowed in the current window. |
| RateLimit-Remaining | MeaningRequests left in the current window. |
| RateLimit-Reset | MeaningSeconds until the window resets. |
| RateLimit-Policy | MeaningThe policy in force, as <limit>;w=<window seconds>. |
| Retry-After | MeaningSent with a 429 only: seconds to wait. |
| X-API-Version | MeaningThe API version that answered. |
- Your plan can raise the allowance, and an administrator can lower it for their own organisation. Call
GET /api/v1/limitswith 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
RateLimitheaders 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
| Version status | What you see |
|---|---|
| current | What you seeServed normally. Every response carries X-API-Version. |
| deprecated | What you seeStill served. Every response adds the Deprecation and Sunset headers and a Link header, so you learn on calls you already make. |
| sunset | What 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": "A sentence for a person.",
"code": "stable_machine_code"
}- Some errors add fields, such as
retry_after_secondson a 429. Over GraphQL the same codes arrive inerrors[].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/v1errors are {error, code}; admin routes under/api/adminreturn {error, message} and are not part of the public API.
Errors any route can return
| Code | HTTP status | Retry? | What it means | What to do |
|---|---|---|---|---|
unauthorized | HTTP status401 | Retry?No | What 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_revoked | HTTP status401 | Retry?No | What 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_granted | HTTP status403 | Retry?No | What 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_entitled | HTTP status403 | Retry?No | What 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_denied | HTTP status403 | Retry?No | What 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_sunset | HTTP status410 | Retry?No | What 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_limited | HTTP status429 | Retry?Yes, with backoff | What 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_error | HTTP status500 | Retry?Yes, with backoff | What 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_provisioned | HTTP status503 | Retry?Yes, with backoff | What 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_off | HTTP status403 | Retry?No | What 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
| Code | HTTP status | Retry? | What it means | What to do |
|---|---|---|---|---|
bad_request | HTTP status400 | Retry?No | What 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_large | HTTP status413 | Retry?No | What 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. |
unauthorized | HTTP status401 | Retry?No | What 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_revoked | HTTP status401 | Retry?No | What 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_granted | HTTP status403 | Retry?No | What 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_entitled | HTTP status403 | Retry?No | What 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_denied | HTTP status403 | Retry?No | What 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_found | HTTP status404 | Retry?No | What 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_found | HTTP status404 | Retry?No | What 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_sunset | HTTP status410 | Retry?No | What 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_limited | HTTP status429 | Retry?Yes, with backoff | What 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_error | HTTP status500 | Retry?Yes, with backoff | What 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_provisioned | HTTP status503 | Retry?Yes, with backoff | What 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_provisioned | HTTP status503 | Retry?Yes, with backoff | What 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_provisioned | HTTP status503 | Retry?Yes, with backoff | What 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_required | HTTP status403 | Retry?No | What 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_insufficient | HTTP status403 | Retry?No | What 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_suspended | HTTP status403 | Retry?No | What 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_child | HTTP status404 | Retry?No | What 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_limit | HTTP status403 | Retry?No | What it meansThe partner contract's `max_child_tenants` is reached. | What to doAsk the platform operator to raise the contract ceiling. |
wrong_region | HTTP status422 | Retry?No | What 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_contract | HTTP status403 | Retry?No | What 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_contract | HTTP status409 | Retry?No | What 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_free | HTTP status422 | Retry?No | What 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_child | HTTP status422 | Retry?No | What 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_tier | HTTP status422 | Retry?No | What 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_exiting | HTTP status409 | Retry?No | What 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_required | HTTP status400 | Retry?No | What 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_tenant | HTTP status404 | Retry?No | What 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_allowed | HTTP status403 | Retry?No | What 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_embeddable | HTTP status403 | Retry?No | What 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_allowed | HTTP status422 | Retry?No | What 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_use | HTTP status409 | Retry?No | What it meansThat email address already belongs to an account outside this organisation. | What to doUse a different address, or omit it. |
learner_cap | HTTP status402 | Retry?No | What 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_reached | HTTP status402 | Retry?No | What it meansThe organisation's plan seat limit is reached. | What to doMove the organisation to a plan with more seats. |
limit_reached | HTTP status402 | Retry?No | What 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_hold | HTTP status409 | Retry?No | What 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. |
conflict | HTTP status409 | Retry?No | What 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_failed | HTTP status422 | Retry?No | What 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_exceeded | HTTP status429 | Retry?Yes, with backoff | What 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_exhausted | HTTP status402 | Retry?No | What 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_credits | HTTP status402 | Retry?No | What 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_missing | HTTP status503 | Retry?Yes, with backoff | What 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_unavailable | HTTP status501 | Retry?No | What 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_disabled | HTTP status403 | Retry?No | What 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_invalid | HTTP status502 | Retry?Yes, with backoff | What 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_required | HTTP status409 | Retry?No | What 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_conflict | HTTP status409 | Retry?No | What 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_locked | HTTP status403 | Retry?No | What 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_level | HTTP status409 | Retry?No | What 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_large | HTTP status413 | Retry?No | What it meansThe upload is larger than the 10 MB limit for assessment answers. | What to doUpload a smaller file. |
topups_not_applicable | HTTP status409 | Retry?No | What 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_required | HTTP status409 | Retry?No | What 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_error | HTTP status502 | Retry?Yes, with backoff | What 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_available | HTTP status403 | Retry?No | What 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_refused | HTTP status403 | Retry?No | What 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_off | HTTP status403 | Retry?No | What 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_product | HTTP status422 | Retry?No | What 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_requires | HTTP status422 | Retry?No | What 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_contract | HTTP status403 | Retry?No | What 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_required | HTTP status422 | Retry?No | What 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_cap | HTTP status403 | Retry?No | What 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_cap | HTTP status403 | Retry?No | What 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_cap | HTTP status403 | Retry?No | What 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_required | HTTP status403 | Retry?No | What 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_tenant | HTTP status403 | Retry?No | What 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_immutable | HTTP status409 | Retry?No | What 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_event | HTTP status422 | Retry?No | What it meansA named webhook event is not one this platform sends. | What to doUse an event name from the published webhook catalogue. |
event_not_subscribable | HTTP status422 | Retry?No | What 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_reached | HTTP status409 | Retry?No | What 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_found | HTTP status422 | Retry?No | What 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_found | HTTP status422 | Retry?No | What 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_found | HTTP status422 | Retry?No | What 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_found | HTTP status422 | Retry?No | What 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_use | HTTP status409 | Retry?No | What 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_self | HTTP status422 | Retry?No | What it meansA person cannot follow themselves. | What to doSpecify another person to follow. |
follow_limit_reached | HTTP status422 | Retry?No | What 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_infected | HTTP status422 | Retry?No | What it meansThe file was blocked by the malware scan. | What to doScan the file locally and upload a clean copy. |
scan_unavailable | HTTP status503 | Retry?No | What 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_type | HTTP status415 | Retry?No | What it meansThis type of file cannot be attached. | What to doUpload a supported file type as documented in the attachment guide. |
attachment_limit_reached | HTTP status409 | Retry?No | What it meansThe article already has the most attachments allowed. | What to doRemove an existing attachment before adding a new one. |
partner_paused | HTTP status409 | Retry?No | What 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
| Header | Meaning |
|---|---|
| X-Webhook-Id | MeaningA delivery id. The same on every retry, so use it to drop duplicates. |
| X-Webhook-Event | MeaningThe event type, such as course.published. |
| X-Webhook-Timestamp | MeaningUnix seconds at send time. |
| X-Webhook-Signature | Meaningsha256=<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.
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.
| Rule | Value |
|---|---|
| Attempts for one event | Value8 |
| Delay before a retry | ValueA random wait between zero and a cap that doubles each time, starting at 60 seconds |
| Longest cap | Value60 minutes |
| After the last attempt | ValueThe 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.
Your server asks for a session
POST /api/v1/embed/sessionswith the customer key, the learner inX-Learner-Id, a target screen and your page’s exact origin.You get a one-time URL
It works once and for 60 seconds, so ask for it when the page loads.
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.
The frame talks back
It posts a few messages to your page: ready, resize, navigate, complete and error.
Mint a session
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"}'{
"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_originssetting, or the call is 403origin_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
<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
| Message | Fields | When |
|---|---|---|
| pa:ready | Fieldsnone | WhenThe embedded screen has loaded. |
| pa:resize | Fieldsheight | WhenThe page height changed. Set your iframe to it. |
| pa:navigate | Fieldstarget | WhenThe learner moved to another screen in the frame. |
| pa:complete | Fieldstarget, resource_id, score | WhenA lesson, course, assessment or practice scenario finished. |
| pa:error | Fieldscode | WhenSomething 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.
| Hosting | Set up | Cookies |
|---|---|---|
| Your subdomain by CNAME | Set 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 domain | Set 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
| Your LMS asks for | Paste |
|---|---|
| OIDC login initiation URL | Pastehttps://<organisation host>/api/lti/login |
| Redirect URI and target link URI | Pastehttps://<organisation host>/api/lti/launch |
| Public JWK Set URL | Pastehttps://<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
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.
Register your LMS with us
In Admin, LTI 1.3, enter those values. Launches from an unknown issuer are refused.
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.
| Methods | Path | What it does |
|---|---|---|
| GET, POST | Path/api/scim/v2/Users | What it doesList people (up to 500 a page) and create a person |
| GET, PUT, PATCH, DELETE | Path/api/scim/v2/Users/{id} | What it doesRead, replace, change or remove one person |
| GET, POST | Path/api/scim/v2/Groups | What 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.
| Standard | Direction | What happens |
|---|---|---|
| SCORM 1.2 | DirectionExport | What happensDownload a course as a SCORM 1.2 package for another LMS, with the Course Studio add-on: GET /api/export/{courseId}/scorm. |
| SCORM 2004 | DirectionImport and play | What 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. |
| xAPI | DirectionStore and inbound | What 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. |
| cmi5 | DirectionImport | What 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. |
| AICC | DirectionImport and track | What 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 export | DirectionExport | What 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.
| Tool | What it is |
|---|---|
| OpenAPI document | What it isImport /api/v1/openapi.json into Postman, Insomnia or a client generator. It is public and always current. |
| API references | What 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 collection | What 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 helper | What 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 guides | What 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 n8n | What 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.