When implementing xAPI, a helpful first step can be to send a simple xAPI statement to SCORM Cloud so that you can see how the request works. This guide explains how to send a simple xAPI statement to SCORM Cloud using Postman.
Please note: When implementing xAPI in your application, it is recommended to use a code library that will handle the API calls and some statement syntax validation.
Create API Authorization Credentials
Before you can send an xAPI statement, you will need to get an endpoint, key and secret from SCORM Cloud as well as set up an Activity Provider. This is explained in How to find your AppID, Secret Key and endpoint URL in SCORM Cloud and Setting Up Activity Providers In SCORM Cloud
Write an xAPI statement
You will also need to write an xAPI statement. xAPI statements are records of an individual learner interaction. You can read about statement design in How to Implement xAPI.
Hint: You can also use xAPI Lab to build and send an example statement.
For this example we can use a simple statement like this:
"name": "Learner Name",
"en-US": "Example Activity"
"en-US": "Example activity description"
Send the Statement using Postman
To send the statement using Postman, set the method to POST and enter the Endpoint from SCORM Cloud in the Request URL, followed by "statements".
On the Authorization tab, select Basic Auth and enter the Activity Provider Key and Secret from SCORM Cloud as the Username and Password.
On the Headers tab, the Authorization will be automatically populated using the key and secret you provided. Add an X-Experience-API-Version header with a value of "1.0.3" and a Content-Type header with a value of "application/json".
On the Body tab, select raw and set the type to JSON (application/json). Paste in the statement to send.
Click the blue Send button to send the statement.