Our Veracity Learning LRS has many tools and features that you can use. While you can get to these features through the user interface, you can also automate some functions of your LRS. You can do this with the LRS API.
Don’t confuse the LRS API with xAPI — the LRS API isn’t the collected student performance data. Instead, with the LRS API you can create and remove students, lessons, and other data objects in your LRS, or to launch content.
Creating an API Key
To talk to the LRS API for your LRS, you'll first need to allocate a new API Key, which you’ll place in the x-veracity-api-key header of your HTTP request. To create an API key…
- In the LRS, from the left menu select Management > All Management Tools.
- Scroll down to the Security section and click API Keys.

- On the Manage API Keys page for this store, click the Create a New API Key button.

- In the Create API Key form, enter a Key Name, select the Read and Write Permissions, and click the Create button.

- The LRS generates a unique value for the key, which it hides. Click the Visibility button to show the key (and header), and to show the Copy button.

You can now use the API key to automate your LRS.
Using the LRS API
We keep the API at http://yourlrs.lrs.io/api (if you are serving locally, then this changes with the name of your LRS and the server options).
When you make an HTTP request, in the x-veracity-api-key header, set the value to your API key.
In general, you can POST, GET, PUT, or DELETE to the endpoints for each data model. Issuing a GET to the top-level of the data model will let you search and page-through the results. Read
the LRS API documentation for the technical details.
Hits against the LRS API count against your daily API call limit the same as hits on the xAPI do.