oauth

Introspect a token

Changed on

Returns the state of the supplied token.

post/oauth/introspect

Request

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

Request body

tokenstring required

The token to introspect

client_idstring

The application's client identifier

client_secretstring

The application's client secret

Response

The token state

activeboolean required

Whether the token is currently valid

scopestring

The granted scopes, space separated

client_idstring

The client the token was issued to

token_typestring

The token type, Bearer

iatinteger

When the token was issued, as a Unix timestamp

expinteger

When the token expires, as a Unix timestamp. Omitted for tokens that do not expire.

Changes