Skip to content
D2L Brightspace logo

Connectors / Human resources · HTTP Connector

D2L Brightspace integration and API

Create a course offering and create a grade object in D2L Brightspace. Connect D2L Brightspace to the rest of your human resources stack with Tray.ai.

What can you do with D2L Brightspace on Tray.ai?

D2L Brightspace is a learning management system that schools, universities, and companies use to run courses, enroll learners, deliver content, and record grades. Tray.ai connects to D2L Brightspace through the HTTP Connector, so your workflows can call the D2L Brightspace API alongside the rest of your stack.

  • Create a user when HR adds a new hire to your HR system.
  • Enroll a user in required training when they join a new department.
  • Remove an enrollment when an employee leaves the company.
  • Create a course offering for each new training session your L&D team schedules.
Connects through
HTTP Connector
Authentication
OAuth 2.0
Base URL
https://{your-brightspace-host}/d2l/api

Set it up

Connect D2L Brightspace to Tray.ai

Each step uses D2L Brightspace's own API details, from its documentation.

Sign in to D2L Brightspace with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with D2L Brightspace. Sign in once and every step reads the token from there.

Point the HTTP Client at the API

Add an HTTP Client step and use https://{your-brightspace-host}/d2l/api as the base URL. Or paste a cURL example from D2L Brightspace's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List users”

It's one of 20 documented actions, under Users. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Get a user” and “Create a user” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with D2L Brightspace

Connect D2L Brightspace with BambooHR, Workday REST and Google Sheets

Each one uses actions and events from D2L Brightspace's own API documentation.

Enroll new hires in D2L Brightspace onboarding courses

When

A new employee is added in BambooHR

Then

  1. Create a user for the new hire
  2. Enroll a user in the onboarding course offering

With BambooHR

Remove D2L Brightspace enrollments when employees leave

When

An employee is terminated in Workday REST

Then

  1. List a user's enrollments
  2. Remove an enrollment for each active course
  3. Update a user to mark the account inactive

With Workday REST

Copy D2L Brightspace final grades to Google Sheets

When

On a schedule

Then

  1. List final grades for the course
  2. Add a row per learner to the grades sheet in Google Sheets

With Google Sheets

Apps you can build on D2L Brightspace data

Internal tools your team can build with an AI assistant, each one using D2L Brightspace calls from its API documentation.

Course enrollment manager

Lists learners enrolled in a course and lets an admin enroll a new user or remove an enrollment.

Final grades report

Shows final grades for a course next to its grade items so instructors can spot missing marks.

Learner transcript lookup

Looks up a user and lists their enrollments with the grade they hold in each course.

D2L Brightspace MCP server for AI agents

Build an MCP server on D2L Brightspace in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List users
  • Enroll a user
  • Get a course offering
  • List grade objects
  • Get a user's grade
  • Get a user
  • Create a user
  • Update a user

What the D2L Brightspace API covers

5 resources and 20 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Users

  • List users
  • Get a user
  • Create a user
  • Update a user
  • Delete a user

Enrollments

  • Enroll a user
  • List course enrollments
  • List a user's enrollments
  • Remove an enrollment

Course offerings

  • Get a course offering
  • Create a course offering
  • Update a course offering
  • Delete a course offering

Grade objects

  • List grade objects
  • Create a grade object
  • Update a grade object
  • Delete a grade object

Grade values

  • Get a user's grade
  • Set a user's grade
  • List final grades

Checked against D2L Brightspace's own documentation on 2026-10-22

docs.valence.desire2learn.com/reference.html

Frequently asked questions

What can a Tray.ai workflow do in D2L Brightspace?

The D2L Brightspace API documents 20 actions across 5 resources (Users, Enrollments, Course offerings, Grade objects, Grade values). For example: List users; Enroll a user; Get a course offering. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with D2L Brightspace?

The D2L Brightspace API uses OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See D2L Brightspace working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.