Introspect an access token to see whether it is valid and active. You can also verify some token properties, such as its claims, scopes, and validity times.
Requests to this endpoint require authentication with your client ID and client secret, using one of the following methods:
- Basic access authentication (Recommended): For basic access authentication, the {credentials} string must be a Base64 encoded value of {client id}:{client secret}.
- Body parameters: Provide your app's credentials using the client_id and client_secret body parameters.
This endpoint can't be called from a user's web-browser client because it uses client authentication with client secrets. Requests must come from your app's backend, otherwise they'll be blocked by Canva's Cross-Origin Resource Sharing (CORS) policy.
Request
- Base URL: https://api.canva.com/auth
- URL: https://api.canva.com/auth/v1/oauth/introspect
- Auth: one of:
- none
- HTTP basic
Request body application/x-www-form-urlencoded
Example request
{
"token": "JagALLazU0i2ld9WW4zTO4kaG0lkvP8Y5sSO206ZwxNF4E1y3xKJKF7TzN17BXTfaNOeY0P88AeRCE6cRF7SJzvf3Sx97rA80sGHtFplFo",
"client_id": "OC-FAB12-AbCdEf",
"client_secret": "cnvcaAbcdefg12345_hijklm6789"
}Response
OK
Example response
{
"active": true,
"scope": "asset:read design:meta:read design:permission:read folder:read",
"client": "OC-FAB12-AbCdEf",
"exp": 1712216144,
"iat": 1712201744,
"nbf": 1712201744,
"jti": "AbC1d-efgHIJKLMN2oPqrS",
"sub": "oBCdEF1Gh2i3jkLmno-pq"
}Changes
- warning
added the new
user_linked_to_another_idpenum value to theresponse property for the response status - warning
added the new
user_linked_to_another_idpenum value to theresponse property for the response status - warning
added the new
user_linked_to_another_idpenum value to theresponse property for the response status
- warning
- warning
added the new
asset_not_readyenum value to theresponse property for the response status - warning
added the new
asset_not_readyenum value to theresponse property for the response status - warning
added the new
asset_not_readyenum value to theresponse property for the response status
- warning