Hello D2L team,
I’m currently using the Brightspace API to retrieve issued certificates for students in our institution via the endpoint:
bashCopiarEditarGET /d2l/api/bas/1.4/issued/users/{userId}
From the response, I obtain both the OrgUnitId and IssuedId, and construct the download URL as documented:
bashCopiarEditarhttps://ava.xpeducacao.com.br/d2l/awards/v1/{OrgUnitId}/certificate/render/{IssuedId}
However, this endpoint requires an active login session (via browser) and does not accept a Bearer token for authentication. When I try to download the file programmatically (e.g. using Python requests.get(...) with headers), I receive a 200 OK response with a Content-Type: text/html, which is the login page instead of the PDF file.
What I'm looking for:
I would like to know if there is an official API endpoint that allows:
- Downloading the issued certificate PDF using Bearer token authentication (without requiring an interactive login),
- Or retrieving a public or signed URL for temporary or permanent access to the certificate,
- Or any other recommended and supported way by D2L to automate the certificate download securely.