Skip to main content

Overview

The Canvas API integration connects your Nectir AI Workspace to Canvas, enabling you to import course materials like pages, assignments, files, discussion topics, and quizzes directly into your AI Assistants’ knowledge base.
This guide covers the API integration method. If you’re looking to embed Nectir AI directly inside Canvas courses via LTI, see the Canvas LTI Guided Setup instead.

Prerequisites

  • Canvas Admin access at the account level (to create Developer Keys)
  • Nectir AI Workspace Owner role

Before You Begin

You’ll need three browser tabs open:
  • Canvas with admin access at the account level
  • Nectir AI with the Workspace you want to integrate
  • This support article to follow along with the steps below

Part 1: Create a Developer Key in Canvas

1

Navigate to Developer Keys

In Canvas, click Admin in the left sidebar, select your account, then click Developer Keys in the account navigation.
2

Create a New API Key

Click the + Developer Key button in the top right, then select + API Key from the dropdown.
3

Configure Key Settings

In the Key Settings form, fill in the following:
  • Key Name: Enter a descriptive name (e.g., Nectir AI API Key)
  • Redirect URIs: Enter the following URI exactly:
https://ai.nectir.io/api/canvas/oauth/callback
All other fields (Owner Email, Icon URL, Notes, etc.) can be left blank.
4

Configure API Scopes

Keep the Enforce Scopes toggle turned ON (it’s on by default).Check the Read only checkbox at the top of the scopes list. This grants read-only access to Canvas data, which is all Nectir AI needs.
The Read only option is the quickest way to configure scopes. Nectir AI only reads course data — it never modifies or deletes anything in Canvas.
Canvas Key Settings showing Enforce Scopes enabled and Read only checkbox checked
If your institution’s security policy requires least-privilege access, you can select only the specific scopes Nectir AI needs instead of checking Read only. Enable each of the following scopes:
Canvas CategoryScopeWhat Nectir Uses It For
AccountsGET /api/v1/accountsFetch Canvas accounts during Workspace setup
AccountsGET /api/v1/accounts/:account_id/sub_accountsDiscover account hierarchy during setup
AccountsGET /api/v1/accounts/:account_id/coursesList courses under a specific account
CoursesGET /api/v1/coursesList the user’s courses for the course selector
Courses - ModulesGET /api/v1/courses/:course_id/modulesFetch course module structure for import
Courses - ModulesGET /api/v1/courses/:course_id/modules/:module_id/itemsFetch items within a module for import
Courses - FilesGET /api/v1/courses/:course_id/filesList course files for import
Courses - PagesGET /api/v1/courses/:course_id/pagesList wiki pages for import
Courses - PagesGET /api/v1/courses/:course_id/pages/:url_or_idFetch a page’s full content for import
Courses - AssignmentsGET /api/v1/courses/:course_id/assignmentsList assignments for import
Courses - AssignmentsGET /api/v1/courses/:course_id/assignments/:idFetch an assignment’s full content for import
Courses - Discussion TopicsGET /api/v1/courses/:course_id/discussion_topicsList discussion topics for import
Courses - Discussion TopicsGET /api/v1/courses/:course_id/discussion_topics/:topic_idFetch a discussion topic’s full content for import
Courses - QuizzesGET /api/v1/courses/:course_id/quizzesList quizzes for import
Courses - QuizzesGET /api/v1/courses/:course_id/quizzes/:idFetch a quiz’s details for import
Courses - QuizzesGET /api/v1/courses/:course_id/quizzes/:quiz_id/questionsFetch quiz questions for import
FilesGET /api/v1/files/:idFetch file metadata and download URL for import
All scopes are read-only (GET). Nectir AI never creates, modifies, or deletes any data in Canvas.
5

Save the Key

Click Save at the bottom right of the Key Settings form.
6

Enable the Key

Back on the Developer Keys listing, find your new key and click the toggle in the State column to turn it ON (green).

Part 2: Connect Canvas API in Nectir AI

1

Open LMS Integration Settings

In Nectir AI, click the gear icon next to your Workspace name, then select LMS integration in the settings sidebar.
2

Add Canvas Integration

Click + Add integration, then click Connect under Canvas.
3

Choose API Integration

Select API integration.
Connect Canvas modal showing LTI integration and API integration options
4

Enter Your Credentials

Fill in the three credential fields one at a time:
  1. Canvas instance URL: Enter your Canvas URL (e.g., https://yourschool.instructure.com)
  2. API key Client ID: Switch to your Canvas tab and find the Client ID — the number shown under the Details column in the Developer Keys listing. Copy it and paste it into Nectir AI.
Canvas Developer Keys table with the Client ID number highlighted under the Details column
  1. API key Client Secret: Back in Canvas, click Show Key next to the Client ID to reveal the secret. Copy it and paste it into Nectir AI.
Canvas Developer Keys table showing the Client Secret popup after clicking Show Key
Nectir AI Connect Canvas API form with Canvas instance URL, API key Client ID, and API key Client Secret fields
5

Save and Test Connection

Click Save and test connection. You will be redirected to a Canvas OAuth authorization screen.
Canvas OAuth screen prompting the user to authorize Nectir AI access
Click Authorize to grant Nectir AI read-only access to your Canvas data. You will be redirected back to Nectir AI automatically.
Nectir AI showing a successful Canvas API connection confirmation
Your Canvas API integration is now active. Users can now import their Canvas course into their Assistant’s knowledge base automatically.

Troubleshooting

  • Verify your Canvas URL is correct and includes https:// (e.g., https://yourschool.instructure.com)
  • Confirm the Client ID and Client Secret are copied exactly with no extra spaces
  • Check that the developer key is enabled (green toggle) in Canvas Developer Keys
Ensure the Redirect URI in your Canvas developer key is exactly:
https://ai.nectir.io/api/canvas/oauth/callback
Check for trailing spaces, missing characters, or incorrect protocol (http vs https).
Verify that all required scopes are enabled on your developer key in Canvas. Either the Read only checkbox should be checked, or the individual scopes listed in Configure API Scopes should be enabled.
The Developer Keys page is only available to Canvas administrators at the account level. If you don’t see it in the Admin sidebar, contact your institution’s Canvas administrator to request access or have them create the key for you.
For additional help, contact support@nectir.io.

Next Steps

Add from Canvas

Learn how to browse and import Canvas course content into your Assistant’s knowledge base

Canvas LTI Setup

Set up the LTI integration to embed Nectir AI directly inside Canvas courses