# xAPI

With xAPI integration, Cards can be connected to your existing LMS (Learning Management System) or LRS (Learning Record Store).

Your learners' activity data (progress, results, completion, etc.) is automatically transmitted to connected platforms via the xAPI standard.

### Create and edit an xAPI connection

To create an endpoint (i.e., an xAPI connection between Cards and your LMS), go to the "Apps and Integrations" page, then click "Configure" in the xAPI block.

You will arrive at the page listing your existing API connections:

<figure><img src="/files/qhOcUYJG3ukBLvAbpfHY" alt=""><figcaption><p>xAPI connexions list</p></figcaption></figure>

You can create a new connection by clicking "Create Endpoint", or edit existing connections.

<figure><img src="/files/ijDD2GH8mX8Fs3UCQenW" alt=""><figcaption><p>Edit an endpoint</p></figcaption></figure>

The creation and editing pages are identical. They allow you to define the following information:

* Enable xAPI: Enable or disable the connection
* Endpoint (url): This is the URL provided by your LMS or LRS, to which the data is sent via xAPI
* Description: This is a free field that allows you to add information (for you only) if needed.

The "Authentication Data" block on the right allows you to define the xAPI login credentials, also provided by your LMS or LRS.

{% hint style="info" %}
Currently, Cards only supports "Basic Auth" login. Please contact us if you need another login method.
{% endhint %}

### Enable and check the connection

Once the xAPI endpoint is activated, you don't have to do anything else. Your learners' activity data will be automatically sent to your LMS.

Here's an example of a connection between Cards and Scorm Cloud:

<figure><img src="/files/BeRbrFxm1zkbwhh7CuKB" alt=""><figcaption><p>Scorm Cloud example</p></figcaption></figure>

You can see that the access data for training courses and chapters, as well as quiz completions, are being successfully uploaded to the platform.

You can also check the submissions on the Cards side. From the xAPI connection listing page, click "Logs" on your desired connection. You will then see a page listing all submissions made to your LMS or LRS. For each submission, you can view the details of the information posted (in xAPI format).

<figure><img src="/files/xP8G1JlKnirOrG823f4z" alt=""><figcaption><p>xAPI logs in Cards</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.cards-microlearning.com/english/apps-and-integrations/xapi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
