Get All Statements

This endpoint retrieves all xAPI statements for the current organization. Refer to the endpoint in the API Reference for more information.

Required Scope

xapi:read or xapi:write

xAPI Read Scope

If xAPI read scopes are granted, an xAPI GET request returns all statements for the organization associated with the token. It does not filter by any associated providerId.

HTTP Request

curl --request GET \
     --url 'https://api.betatest.degreed.com/xAPI/statements' \
     --header 'Authorization: Bearer <access_token>'

Query Parameters

ParameterTypeDefaultDescriptionRequired
limitinteger($int32)100Number of statements to retrieve per page.No
sincestring($date-time)emptyFilter criteria that returns all statements since this date.No
untilstring($date-time)emptyFilter criteria that retrieves all statements until this date.No
ascendingbooleanfalseRetrieves all statements in ascending order, ordered by creation date.No
verbstringemptyRetrieves all statements with this verb.No

Example Response

{
  "statements": [
    {
      "id": "0df69611-30b5-0e12-4932-b72ee1100694",
      "actor": {
        "objectType": "Agent",
        "mbox": "mailto:[email protected]",
        "name": "John Do"
      },
      "verb": {
        "id": "https://api.betatest.degreed.com/xAPI/verbs/loggedin",
        "display": {
          "en-US": "loggedin"
        }
      },
      "object": {
        "objectType": "Activity",
        "id": "https://api.betatest.degreed.com/xAPI/activities/logged_in_degreed",
        "definition": {
          "name": {
            "en-US": "Logged in at Degreed"
          },
          "description": {
            "en-US": "John Do logged in Degreed"
          }
        }
      },
      "context": {
        "contextActivities": {
          "category": [
            {
              "objectType": "Activity",
              "id": "https://api.betatest.degreed.com",
              "definition": {
                "name": {
                  "en-US": "Degreed"
                },
                "type": "https://api.betatest.degreed.com/xAPI/activities/source"
              }
            }
          ]
        }
      },
      "timestamp": "2020-02-12T21:05:55.8954545"
    }
  ],
  "more": "https://api.betatest.degreed.com/xAPI/statements?next=FMP8kI"
}