Introduction
You can integrate We Are with any system, which allows you to seamlessly incorporate your engaging stories into your learning content. In this guide, we will walk you through the process of setting up the integration to get xAPI statements directly into your Learning Management System (LMS).
Good to know: Integrations are available on the Small Business and Enterprise plans, and you need to be an Admin of your We Are account to set one up.
Getting started
If your LMS supports the newest standards in xAPI with cmi5 (check with your LMS provider), you can skip step 2 and 3.
Step 1: Create an integration
Go to https://studio.wearelearning.com/dashboard/settings/integrations. Add a Custom xAPI integration
(Optional) Step 2: Add the API Key to We Are Learning
Get an API Key from your LMS. For some it will be in the settings, and for others it might require talking with support. It will look something like this: NGQ1MDgwOWIyYTZhM***.
Paste the API key provided by your LMS into the API KEY input field.
(Optional) Step 3: Add the API URL from your LMS
Get an API URL from your LMS. Paste it into the API URL input field.
For your security, We Are only ever sends this API key to the address in the API URL field.
Step 4: Publish and share your Story with your integration
Open the context menu on your Story, and click share.
Make sure your story is published.
Next, go to “Connect LMS for tracking” and select your integration.
Once connected, tracking will start automatically in your chosen LMS.
You’re done! You will now receive information regarding completions about your employees or users directly in your LMS.
Tracking needs to know who the learner is. We Are only sends tracking data when your LMS launches the Story with a learner identifier (the actor parameter described below). Opening the plain Story link, a preview, or an embed without launch parameters works fine for learners, but nothing is sent to your LMS.
When does a Story count as completed?
By default, a Story is completed when the learner reaches a last node and presses Continue. If you want the Story to count as completed as soon as the learner arrives at a last node, turn on Complete story when the learner reaches the last node under Story Settings → Other. Completion is sent once per playthrough.
Technical documentation
Technical details (read this if you’re the techie making sure your system can receive data)
Hello techie! You’re about to make sure your system works with We Are, which we absolutely appreciate. If you have questions while verifying, don’t hesitate to drop us a message at [email protected].
Technical Introduction
Let’s get some technical lingo out of the way. We use xAPI, specifically cmi5, and do our best to follow its specifications. In this guide we’ll let you know how we handle connections, sending statements and more.
Where do we send the statements?
We have an adaptation of cmi5 where we allow both the query parameter endpoint as well as specifying the API URL directly in We Are.
The endpoint query parameter has precedence.
We never send statements to internal or private network addresses (for example localhost or private IP ranges). The endpoint must be reachable over the public internet.
Authentication
We support fetch from cmi5, as well as specifying the API key directly in We Are.
The fetch query parameter has precedence.
How we protect the stored API key: the API key saved in the integration is only sent to the origin of the API URL saved in the same integration. If a launch passes an endpoint on a different address, we won't send the stored key there. In that case, also pass fetch so we can get an authorization token from your LMS.
Required Query Parameters
Name | Data type | Example value | Description |
actor | JSON (URL-encoded) | {"objectType": "Agent","account": {"name": "1625378"}} | A JSON object of objectType Agent (as defined in xAPI) that identifies the learner launching the Story, so we can include it in xAPI statements.
Without a valid actor, no statements are sent. Identify the learner with an
Your LMS SHOULD create this parameter with an object that is specific to the LMS and does NOT include sensitive personally identifiable information about the learner. |
activityId | String (URL-encoded) | The Activity ID of the AU being launched. Often a URL. Used as the object of Story statements, and as the base for quiz and question activity IDs. |
Optional Query Parameters
Name | Data type | Example value | Description |
registration | String (URL-encoded) | this-is-my-registration-id | A Registration ID corresponding to the learner's enrolment for the activity being launched. |
sessionId | String (URL-encoded) | this-is-my-sessionid | Generated by the LMS. Must be recorded by the LMS prior to launching a We Are Story. |
fetch | String (URL-encoded) | The fetch URL is used by We Are to obtain an authorization token created and managed by the LMS. We use this to authenticate ourselves when sending statements.
If specified, we use this instead of any API key set in the integration. | |
endpoint | String (URL-encoded) | A URL to the LMS listener location for xAPI statements.
If specified, it overrides the API URL set in the integration. If it points to a different address than that API URL, also pass |
Statements we send
All verbs are standard ADL verbs.
Verb | Verb ID | Sent when |
initialized |
| The learner starts the Story, or starts a quiz in the Story. |
completed |
| The learner completes the Story (see "When does a Story count as completed?" above), or completes a quiz that has no pass/fail result. |
passed / failed |
| The learner completes a quiz that has a pass/fail result. |
answered |
| The learner answers a quiz question. |
responded |
| The learner picks an option at a response node. |
Quiz and question statements use their own activity IDs, built from your activityId, and refer back to the Story through context.contextActivities (parent and grouping). If your LMS only cares about completion, you can safely ignore everything except completed statements whose object is your activityId.
Example statement from We Are to your LMS
{
"actor": {
"objectType": "Agent",
"account": {
"name": "1625378"
}
},
"verb": {
"display": {
"en-US": "Completed"
},
"id": "http://adlnet.gov/expapi/verbs/completed"
},
"object": {
"definition": {
"type": "http://adlnet.gov/expapi/activities/course"
},
"id": "https://your-lms-url.com/course/activityId-123456789",
"objectType": "Activity"
},
"timestamp": "2026-06-05T13:05:36.253062Z",
"context": {
"registration": "this-is-my-registration-id",
"extensions": {
"https://w3id.org/xapi/cmi5/context/extensions/sessionid": "this-is-my-sessionid"
}
}
}Links that are nice to have
cmi5 specification: https://github.com/AICC/CMI-5_Spec_Current/blob/quartz/cmi5_spec.md#811-endpoint


