How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Canvas Content Security Policy Settings API

The Content Security Policy Settings API from Canvas — 5 operation(s) for content security policy settings.

Canvas Content Security Policy Settings API is one of 145 APIs that Canvas publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Content Security Policy Settings. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, a GitHub repository, an API reference, and rate-limit docs.

This API exposes 8 operations across 5 paths. It is described by OpenAPI 3.2.0, at version v1.

Requests are made against 2 base URLs: https://canvas.instructure.com/api, https://{canvas_host}/api.

8 operations 5 paths 0 schemas 1 DELETE2 GET2 POST3 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v1
Base URL
https://canvas.instructure.com/api/v1
Authentication
HTTP Bearer, OAuth 2.0
License
Resource Areas
1

Authentication & Security 2

Canvas Content Security Policy Settings API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). It supports OAuth 2.0 (oauth2) using the authorizationCode flow. By default, every request must be authenticated.

  • bearerAuth — Canvas OAuth2 access token sent as "Authorization: Bearer ". See https://canvas.instructure.com/doc/api/file.oauth.html
  • oauth2 — Canvas OAuth2. See https://canvas.instructure.com/doc/api/file.oauth.html and https://canvas.instructure.com/doc/api/file.oauthendpoints.html

Paths & Operations 8

Across 5 paths, the API surfaces 8 operations — 1 DELETE, 2 GET, 2 POST, 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Content Security Policy Settings 8
GET
/v1/courses/{course_id}/csp_settings
Get current settings for account or course
get_current_settings_for_account_or_course_courses 1 param → 200
PUT
/v1/courses/{course_id}/csp_settings
Enable, disable, or clear explicit CSP setting
enable_disable_or_clear_explicit_csp_setting_courses 1 param body → 200
GET
/v1/accounts/{account_id}/csp_settings
Get current settings for account or course
get_current_settings_for_account_or_course_accounts 1 param → 200
PUT
/v1/accounts/{account_id}/csp_settings
Enable, disable, or clear explicit CSP setting
enable_disable_or_clear_explicit_csp_setting_accounts 1 param body → 200
PUT
/v1/accounts/{account_id}/csp_settings/lock
Lock or unlock current CSP settings for sub-accounts and courses
lock_or_unlock_current_csp_settings_for_sub_accounts_and_courses 1 param body → 200
POST
/v1/accounts/{account_id}/csp_settings/domains
Add an allowed domain to account
add_allowed_domain_to_account 1 param body → 200
DELETE
/v1/accounts/{account_id}/csp_settings/domains
Remove a domain from account
remove_domain_from_account 2 params → 200
POST
/v1/accounts/{account_id}/csp_settings/domains/batch_create
Add multiple allowed domains to an account
add_multiple_allowed_domains_to_account 1 param body → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

canvas-content-security-policy-settings-api-openapi.yml Raw ↑

Other APIs Canvas publishes across the network.

Canvas LMS GraphQL API
Canvas LTI Integrations
Canvas Courses API
Canvas Access Tokens API
Canvas Accessibility Course Scans API
Canvas Accessibility Course Statistics API
Canvas Account Calendars API
Canvas Account Domain Lookups API
Canvas Account Notifications API
Canvas Account Reports API
Canvas Accounts API
Canvas Accounts (Lti) API
Where this information came from

This is an independent, third-party profile of Canvas Content Security Policy Settings API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.