Skip to main content
Identity & Access/ZIAM

ZiamIntrospectToken

Returns whether an access token is active and, when active, its subject, client, scope, expiry, audience, and role summary. The response follows OAuth introspection style and is not wrapped in the normal API response envelope.

POST/api/login/oauth/introspect

Operation ID

ZiamIntrospectToken

Since

1.0.0

Execution Mode

Synchronous

Auth Context

OAuth Client Credentials

Auth Context

Authenticate the OAuth application client using HTTP Basic or the client_id/client_secret form fields. client_id is required through either path; a secret is required when configured for that client. Supply the token in the form; an end-user Bearer token does not replace client authentication.

Authorization
Basic {base64_client_credentials}

Request Inputs

application/x-www-form-urlencoded

Form Parameters

  • token
    StringRequired

    Access token to introspect.

    Example: eyJ...

  • client_id
    String

    OAuth application client ID. May also be supplied through HTTP Basic authentication.

  • client_secret
    String

    OAuth client secret when required by the configured client. May also be supplied through HTTP Basic authentication.

Responses

200 OK

Token introspection response.

Content-Type: application/json

Response body root type: object

OAuth token introspection response. Inactive tokens return only active=false.

  • active
    Boolean

    Whether the token is currently valid and not revoked.

    Example: true

  • sub
    String

    ZIAM user uuid.

    Example: 11111111111111111111111111111111

  • ziam_subject_type
    String

    Signed ZIAM subject type used together with sub to identify the exact token principal.

    Example: User

    User | SystemAccount

  • username
    String

    Preferred username.

    Example: alice

  • client_id
    String

    Client id.

    Example: ziam-default-client

  • scope
    String

    Granted scopes.

    Example: openid profile email

  • token_type
    String

    ZIAM token type claim.

    Example: access_token

  • jti
    String

    Access token unique id.

    Example: 11111111111111111111111111111111

  • exp
    Long

    Expiry timestamp in seconds.

    Example: 10

    {"format":"int64"}

  • iat
    Long

    Issued-at timestamp in seconds.

    Example: 10

    {"format":"int64"}

  • aud
    List

    Token audiences.

  • roles
    List

    Small ZIAM role summary carried by the token.

  • Change Time

    AddedResponse fields ziam_subject_type
    View API