The HelioCampus Assessment Badge API is designed based on (and extends) the Open Badges 2.0 standards defined by IMS Global. The implemented extensions let API clients create well-defined badges with the minimum required data. HelioCampus provides the following Badge API endpoints to support (and extend) the minimum required functionality.
Badge Endpoints
-
Create or Update a Badge
-
Read a Badge
Assertion Endpoints
-
Creation and Assertion
-
Read an Assertion
-
Revoke an Assertion
Badge assertion updates are not permitted via the API.
Authentication is required to use the Badge API. The API endpoints are not accessible without a valid JWT (JSON Web Token). A JSON Web Token (JWT) is a JSON Object used to securely transfer authentication information over the web. The authentication server endpoints can be accessed via:
-
https://<hostname>/auth/realms/<realmname>/.well-known/openid-configuration
To complete authentication, the following is required:
-
Client Id
-
Client Secret
-
Token Endpoint Hostname
The Client ID and Client Secret are unique credentials used to authenticate API requests. These credentials are obtained by contacting Support. The "token_endpoint" in the result is the endpoint used to obtain a valid JWT.
Sample Request
Sample Response
Once the bearer token is obtained, API calls can be made by adding the token to the header. If the "Authorization" header is not included along with the bearer token, the API returns 401 Unauthorized as shown below.