Developer Keys
Manage Canvas API Keys, used for OAuth access to this API. See the OAuth access docs for usage of these keys. Note that DeveloperKeys are also (currently) used for LTI 1.3 registration and OIDC access, but this endpoint deals with Canvas API keys. See LTI Registration for details.
A DeveloperKey object looks like:
GET /api/v1/accounts/:account_id/developer_keys
GET /api/v1/accounts/:account_id/developer_keys
Scope: url:GET|/api/v1/accounts/:account_id/developer_keys
List all developer keys created in the current account.
Request Parameters:
inherited
boolean
Defaults to false. If true, lists keys inherited from Site Admin (and consortium parent account, if applicable).
Returns a list of DeveloperKey objects.
DeveloperKeysController#create
POST /api/v1/accounts/:account_id/developer_keys
POST /api/v1/accounts/:account_id/developer_keys
Scope: url:POST|/api/v1/accounts/:account_id/developer_keys
Create a new Canvas API key. Creating an LTI 1.3 registration is not supported here and should be done via the LTI Registration API.
Request Parameters:
developer_key
Required json
no description
developer_key[auto_expire_tokens]
boolean
Defaults to false. If true, access tokens generated by this key will expire after 1 hour.
developer_key[email]
string
Contact email for the key.
developer_key[icon_url]
string
URL for a small icon to display in key list.
developer_key[name]
string
The display name.
developer_key[notes]
string
User-provided notes about the key.
developer_key[redirect_uri]
string
Deprecated in favor of redirect_uris. Do not use.
developer_key[redirect_uris]
array
List of URLs used during OAuth2 flow to validate given redirect URI.
developer_key[vendor_code]
string
User-specified code representing the vendor that uses the key.
developer_key[visible]
boolean
Defaults to true. If false, key will not be visible in the UI.
developer_key[test_cluster_only]
boolean
Defaults to false. If true, key is only usable in non-production environments (test, beta). Avoids problems with beta refresh.
developer_key[client_credentials_audience]
string
Used in OAuth2 client credentials flow to specify the audience for the access token.
developer_key[scopes]
array
List of API endpoints key is allowed to access.
developer_key[require_scopes]
boolean
If true, then token requests with this key must include scopes.
developer_key[allow_includes]
boolean
If true, allows ‘includes` parameters in API requests that match the scopes of this key.
Returns a DeveloperKey object.
DeveloperKeysController#update
PUT /api/v1/developer_keys/:id
PUT /api/v1/developer_keys/:id
Scope: url:PUT|/api/v1/developer_keys/:id
Update an existing Canvas API key. Updating an LTI 1.3 registration is not supported here and should be done via the LTI Registration API.
Request Parameters:
developer_key
Required json
no description
developer_key[auto_expire_tokens]
boolean
Defaults to false. If true, access tokens generated by this key will expire after 1 hour.
developer_key[email]
string
Contact email for the key.
developer_key[icon_url]
string
URL for a small icon to display in key list.
developer_key[name]
string
The display name.
developer_key[notes]
string
User-provided notes about the key.
developer_key[redirect_uri]
string
Deprecated in favor of redirect_uris. Do not use.
developer_key[redirect_uris]
array
List of URLs used during OAuth2 flow to validate given redirect URI.
developer_key[vendor_code]
string
User-specified code representing the vendor that uses the key.
developer_key[visible]
boolean
Defaults to true. If false, key will not be visible in the UI.
developer_key[test_cluster_only]
boolean
Defaults to false. If true, key is only usable in non-production environments (test, beta). Avoids problems with beta refresh.
developer_key[client_credentials_audience]
string
Used in OAuth2 client credentials flow to specify the audience for the access token.
developer_key[scopes]
array
List of API endpoints key is allowed to access.
developer_key[require_scopes]
boolean
If true, then token requests with this key must include scopes.
developer_key[allow_includes]
boolean
If true, allows ‘includes` parameters in API requests that match the scopes of this key.
Returns a DeveloperKey object.
DeveloperKeysController#destroy
DELETE /api/v1/developer_keys/:id
DELETE /api/v1/developer_keys/:id
Scope: url:DELETE|/api/v1/developer_keys/:id
Delete an existing Canvas API key. Deleting an LTI 1.3 registration should be done via the LTI Registration API.
Returns a DeveloperKey object.
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated
Was this helpful?