oidc
Fetches the current UserInfo claims for the authorized user. This is the same fields returned by a id_token returns during authorization.
The claims returned depend on the granted scopes: profile claims (name, given_name, family_name) are only returned when the profile scope is granted, and email claims (email, email_verified) are only returned when the email scope is granted. The openid scope is always required.
get/v1/oidc/userinfo
Request
- Base URL: https://api.canva.com/auth
- URL: https://api.canva.com/auth/v1/oidc/userinfo
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://www.canva.com/api/oauth/authorize, token URL https://api.canva.com/rest/v1/oauth/token, scopes: openid, profile, email)
- OAuth 2 (authorization code, authorization URL https://www.canva.com/api/oauth/authorize, token URL https://api.canva.com/rest/v1/oauth/token, scopes: openid, profile)
- OAuth 2 (authorization code, authorization URL https://www.canva.com/api/oauth/authorize, token URL https://api.canva.com/rest/v1/oauth/token, scopes: openid, email)
Response
OK
Example response
{
"sub": "UAAAAAAAAA",
"name": "Alice Person",
"given_name": "Alice",
"family_name": "Person",
"email": "alice.person@example.com",
"email_verified": true
}Changes
- info
the security scope
profilewas added to the endpoint's security schemeoauthAuthCode
- info
- info
the security scope
profilewas added to the endpoint's security schemeoauthAuthCode
- info