canonical: https://jentic.com/apis/valence.desire2learn.com/valence-desire2learn

# Valence Desire2learn D2L Brightspace API

D2L Brightspace (Desire2Learn) Learning Platform API. Provides access to users, courses, enrollments, grades, content, and organizational units. The API exposes 20 endpoints secured with oauth2 authentication.

## For AI agents

Programmatically create a new user, list users. Covers 20 operations with oauth2 authentication.

## Scope

Does not handle payments, communications, or crm - use for education only.

## Capabilities

- Create a new user
- List users
- Get user by ID
- Update user data
- Monitor D2L Brightspace API operational status and events

## Use cases

### Education Operations

Use the D2L Brightspace API to perform education operations programmatically. The API provides 20 endpoints covering core functionality including create a new user, list users, get user by id.

Example prompt: Call POST /d2l/api/lp/{version}/users/ to create a new user

### Automated Users Management

Automate users operations by combining multiple D2L Brightspace API endpoints. Agents can list users and then get user by id in a single workflow.

Example prompt: Call GET /d2l/api/lp/{version}/users/ to list users, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call D2L Brightspace API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle oauth2 tokens manually.

Example prompt: Search Jentic for 'create a new user', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | /d2l/api/lp/{version}/users/ | Create a new user |
| GET | /d2l/api/lp/{version}/users/ | List users |
| GET | /d2l/api/lp/{version}/users/{userId} | Get user by ID |
| PUT | /d2l/api/lp/{version}/users/{userId} | Update user data |
| GET | /d2l/api/lp/{version}/users/whoami | Get current user info |
| GET | /d2l/api/lp/{version}/courses/{orgUnitId} | Get course offering |
| PUT | /d2l/api/lp/{version}/courses/{orgUnitId} | Update course offering |
| DELETE | /d2l/api/lp/{version}/courses/{orgUnitId} | Delete course offering |

## Key resources

- **Users** — User management
- **Courses** — Course offerings and templates
- **Enrollments** — User enrollment management
- **Grades** — Grade objects and values
- **Org Units** — Organizational unit management

## Why Jentic

- **Setup:** Wiring the D2L Brightspace API by hand means running its OAuth2 authorization-code flow, pointing at your own institution hostname, and mapping each scope to the users and course endpoints yourself. Through Jentic you install once, import the D2L Brightspace API from the API Directory, store the OAuth credentials once, and your agent calls it.
- **Permission scoping:** Brightspace puts the user id and org unit id in the URL path (/users/{userId}, /courses/{orgUnitId}), so a rule can pin your agent to one user or course. You choose the operations it may call, so destructive ones like deleting a course are not included unless you add them.
- **Credential handling:** Your D2L Brightspace OAuth credentials are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'create a new user' or 'update a course offering', and Jentic returns the matching D2L Brightspace operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Schoology** — Alternative education API
- **Stripe** — Complementary API for broader integration workflows
- **Twilio** — Complementary API for broader integration workflows

## FAQ

### What authentication does the D2L Brightspace API use?

The D2L Brightspace API uses OAuth 2.0 for authorization. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I create a new user with the D2L Brightspace API?

Yes. Use the POST /d2l/api/lp/{version}/users/ endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the D2L Brightspace API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I create a new user through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'create a new user'. Jentic returns the matching D2L Brightspace API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the D2L Brightspace API have?

The D2L Brightspace API exposes 20 endpoints covering users, courses, enrollments operations.

### Can I limit what my agent is allowed to do with the D2L Brightspace API?

Yes. Jentic One is self-hosted, so your own rules decide which D2L Brightspace operations your agent may call and which stored OAuth credentials it may use. Because Brightspace puts the user id and org unit id in the URL path (/users/{userId}, /courses/{orgUnitId}), a rule can pin the agent to a single user or course. You also choose the operation set, so destructive calls like deleting a course offering are excluded unless you explicitly add them.
