Open eLMS API
Getting the authentication token
Access is controlled is token based. The value of the token is configured in Open LMS at System Setup/Defaults/Configuration/APITokenAccess.
When calling the API, you need to pass the token value in an HTTP “Authorization” header - the value of the header should be “Basic ####”, where #### is the value of the APITokenAccess configuration option (see screenshot below). A 403 (Forbidden) error will be thrown if authentication fails. Below is a screenshot of a REST API which is used to invoke the API
An example of calling the API with a REST client. The value of the token (‘12345’) is given in the HTTP Authorization header.