Request: GET /content

You will retrieve a list of course that were originally uploaded to the account. Content copied from other courses won't appear in the response. 

Learn how to get a list of all course modules in the Getting a List of Course Modules article. 

Permissions to Run the Request

Account OwnerAccount AdministratorsDepartment AdministratorsPublishers, or users with a custom role.

Request Headers

Header

Description

X-Auth-Account-Url (required)

The base URL of the account, e.g. http://myaccount.ispringlearn.com

X-Auth-Email (required)The login of Account Owner, Account AdministratorDepartment Administrator, Publisher or a user with a custom role. 
X-Auth-Password (required)The password of Account Owner, Account AdministratorDepartment Administrator, Publisher or a user with a custom role. 

Response Codes

Code

Text

Description

200Successful operationThe request has been successfully processed. The response body contains the XML data regarding all account courses. 
400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission deniedThe user doesn't have enough permissions to get a list of account courses.

Sample Request

GET /content
Host: api-learn.ispringlearn.com
X-Auth-Account-Url: http://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password

Sample Response

HTTP/1.1 200 Successful operation
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <contentItem>
        <contentItemId>86479c62-4e4a-11e9-9ddf-e6163e60333c</contentItemId>
        <title>Sample Simulation - Car Sale Dialog</title>
        <description>Things to remember when meeting a client.</description>
        <userId>87a61dae-4e4a-11e9-80be-e6163e60333c</userId>
        <addedDate>2019-03-26T06:34:57+00:00</addedDate>
        <viewUrl>http://myaccount.ispringlearn.com/view/200009-1gryB-w4K2M-gB5X5</viewUrl>
        <type>Course</type>
    </contentItem>
...
</response>