JWTs
Last updated
Last updated
Copyright © 2024 Instructure, Inc. All rights reserved.
Short term tokens useful for talking to other services in the Canvas Ecosystem. Note: JWTs have no value or use directly against the Canvas API, and expire after one hour
POST /api/v1/jwts
Scope: url:POST|/api/v1/jwts
Create a unique jwt for using with other Canvas services
Generates a different JWT each time it’s called, each one expires after a short window (1 hour)
Parameter | Type | Description |
---|---|---|
Returns a JWT object.
POST /api/v1/jwts/refresh
Scope: url:POST|/api/v1/jwts/refresh
Refresh a JWT for use with other canvas services
Generates a different JWT each time it’s called, each one expires after a short window (1 hour).
Returns a JWT object.
© Instructure, Inc. Generated on Wed Nov 6 14:20:07 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Parameter | Type | Description |
---|---|---|
workflows[]
string
Adds additional data to the JWT to be used by the consuming service workflow
context_type
string
The type of the context in case a specified workflow uses it to consuming the service. Case insensitive.
Allowed values: Course
, User
, Account
context_id
integer
The id of the context in case a specified workflow uses it to consuming the service.
context_uuid
string
The uuid of the context in case a specified workflow uses it to consuming the service.
canvas_audience
boolean
Defaults to true. If false, the JWT will be signed, but not encrypted, for use in downstream services. The default encrypted behaviour can be used to talk to canvas itself.
jwt
Required string
An existing JWT token to be refreshed. The new token will have the same context and workflows as the existing token.