oauth

Get claims about the authenticated user

Changed on

Returns the OpenID Connect claims for the user who owns the bearer token. Which claims are present depends on the scopes granted to the token.

get/oauth/userinfo

Request

  • Base URL: https://e621.net
  • URL: https://e621.net/oauth/userinfo
  • Auth: one of:
    • none
    • HTTP basic
    • API key in query parameter login and API key in query parameter api_key

Response

The claims for the authenticated user

subinteger required

The user ID

preferred_usernamestring

The account name

namestring

The account name

picturestring nullable

The avatar URL, or null when the user has no usable avatar

updated_atinteger

When the account was last updated, as a Unix timestamp

e621_levelinteger

The numeric user level

e621_level_stringstring

The display name of the user level, such as Member or Janitor

e621_avatar_idinteger nullable

The post ID used as the account avatar

e621_permissionsstring[]

The permission flags the user holds. Contains is_<role> for the user's level and any capability flags such as can_approve_posts.

emailstring

The account email address

email_verifiedboolean

Whether the account email address is present and verified

Changes