The token inspector tool enables developers to check the Time to Live (TTL) and status (active/expired) for all tokens (including Enterprise tokens.) For Authorization Code Flow (3-legged OAuth) tokens, permission scopes will be displayed. You can fetch access token data using the /introspectToken endpoint or the Token Inspector Tool in the UI.
API Details
https
POST https://www.linkedin.com/oauth/v2/introspectToken
Content-Type: application/x-www-form-urlencoded
Required. The string value of the token returned using Client Credential Flow (2-legged OAuth), Authorization Code Flow (3-legged OAuth), or Enterprise_User (Enterprise OAuth Flow).
Possible auth-type values returned are: "auth_type": "2L" "auth_type": "3L" "auth_type": "Enterprise_User"
Response Fields
Field
Type
Description
active
boolean
Required. Boolean indicator of whether or not the returned token is currently active
status
string
Optional. An enum string with values: revoked - Token has been revoked expired - Token has expired due to the "expires_at" TTL active - Token is active
scope
string
Optional. A string containing a comma-separated list of scopes associated with this token. Returned only for token obtained via Authorization Code Flow (3-legged OAuth)
client_id
string
Optional. Optional. Application Client ID
created_at
long
Optional. Epoch time in seconds, indicating when this token was originally issued
expires_at
long
Optional. Epoch time in seconds, indicating when this token will expire
authorized_at
long
Optional. Epoch time in seconds, indicating when the token was authorized
auth_type
string
Optional. String with values: 3L - 3-legged member token 2L - 2-legged application token Enterprise_User - Enterprise member token
HTTP Response Status Codes
The response will vary depending on the status of the token and its authenticity.
Status Code
Description
200
Success
400
Invalid client id or token
401
Invalid client secret
Catatan
If the credentials are valid but do not match the client information in the token, you will receive a successful response (status 200 OK), however with "active": false, in the response body.
Menerapkan dan memantau aplikasi perusahaan ke solusi Azure dapat memastikan keamanan. Jelajahi cara menyebarkan aplikasi berbasis lokal dan cloud kepada pengguna.