🚀 Heads up: Our API Docs Have Moved!
We have relocated to Instructure Developer Documentation Portal. 🎉 Please update your bookmarks. This page will automatically redirect after July 1, 2026.

Tabs API

A Tab object looks like:

{
  "html_url": "/courses/1/external_tools/4",
  "id": "context_external_tool_4",
  "label": "WordPress",
  "type": "external",
  // only included if true
  "hidden": true,
  // possible values are: public, members, admins, and none
  "visibility": "public",
  // 1 based
  "position": 2
}

List available tabs for a course or group TabsController#index

GET /api/v1/accounts/:account_id/tabs

Scope: url:GET|/api/v1/accounts/:account_id/tabs

GET /api/v1/courses/:course_id/tabs

Scope: url:GET|/api/v1/courses/:course_id/tabs

GET /api/v1/groups/:group_id/tabs

Scope: url:GET|/api/v1/groups/:group_id/tabs

GET /api/v1/users/:user_id/tabs

Scope: url:GET|/api/v1/users/:user_id/tabs
Returns a list of navigation tabs available in the current context.

Request Parameters:

Parameter Type Description
include[] string - "course_subject_tabs": Optional flag to return the tabs associated with a canvas_for_elementary subject course's home page instead of the typical sidebar navigation. Only takes effect if this request is for a course context in a canvas_for_elementary-enabled account or sub-account.

Allowed values: course_subject_tabs

Example Request:

curl -H 'Authorization: Bearer <token>' \
     https://<canvas>/api/v1/groups/<group_id>/tabs"

Example Response:

[
  {
    "html_url": "/courses/1",
    "id": "home",
    "label": "Home",
    "position": 1,
    "visibility": "public",
    "type": "internal"
  },
  {
    "html_url": "/courses/1/external_tools/4",
    "id": "context_external_tool_4",
    "label": "WordPress",
    "hidden": true,
    "visibility": "public",
    "position": 2,
    "type": "external"
  },
  {
    "html_url": "https://example.com/resource",
    "id": "nav_menu_link_5",
    "label": "External Resource",
    "position": 3,
    "visibility": "public",
    "type": "external"
  },
  {
    "html_url": "/courses/1/pages/some_wiki_page",
    "id": "nav_menu_link_6",
    "label": "Instructor-/Admin-added link to resource",
    "position": 4,
    "visibility": "public",
    "type": "external"
  },
  {
    "html_url": "/courses/1/grades",
    "id": "grades",
    "label": "Grades",
    "position": 5,
    "hidden": true,
    "visibility": "admins",
    "type": "internal"
  }
]

Create a tab for a course TabsController#create

POST /api/v1/courses/:course_id/tabs

Scope: url:POST|/api/v1/courses/:course_id/tabs
The new link is added last among the visible tabs, above Settings. The returned tab has a null position. List the tabs to see its position. Requires the manage_nav_menu_links and update_nav permissions on the course. Responds 404 if custom navigation links are not enabled for the root account.

Request Parameters:

Parameter Type Description
label Required string The label for the new tab, max 255 characters
url Required string The URL for the new tab, max 2048 characters. Must be an http or https URL, or a path that starts with "/".
hidden boolean Whether the tab should be hidden. Defaults to false.

Example Request:

curl https://<canvas>/api/v1/courses/<course_id>/tabs \
  -X POST \
  -H 'Authorization: Bearer <token>' \
  -d 'label=Test Link' \
  -d 'url=https://example.com' \
  -d 'hidden=true'
Returns a Tab object

Update a tab for a course TabsController#update

PUT /api/v1/courses/:course_id/tabs/:tab_id

Scope: url:PUT|/api/v1/courses/:course_id/tabs/:tab_id
Home and Settings tabs are not manageable, and can't be hidden or moved Returns a tab object

Request Parameters:

Parameter Type Description
position integer The new position of the tab, 1-based
hidden boolean no description

Example Request:

curl https://<canvas>/api/v1/courses/<course_id>/tabs/tab_id \
  -X PUT \
  -H 'Authorization: Bearer <token>' \
  -d 'hidden=true' \
  -d 'position=2' // 1 based
Returns a Tab object

Delete a tab for a course TabsController#destroy

DELETE /api/v1/courses/:course_id/tabs/:tab_id

Scope: url:DELETE|/api/v1/courses/:course_id/tabs/:tab_id
Returns 204 No Content on success Requires the manage_nav_menu_links and update_nav permissions on the course. Responds 404 if custom navigation links are not enabled for the root account.

Request Parameters:

Parameter Type Description
tab_id Required string The ID of the link to delete, in the form nav_menu_link_<id>. Only links created on this course can be deleted. Built-in tabs, external tool tabs, and account-level links return 404.

Example Request:

curl https://<canvas>/api/v1/courses/<course_id>/tabs/<tab_id> \
  -X DELETE \
  -H 'Authorization: Bearer <token>'