General
Core API
- Checkout
- Checkout Links
- Custom Checkout Fields
- Customers
- Subscriptions
- Orders
- Discounts
- Refunds
- Products
- Events
- Meters
- Benefits
- Customer Meters
- License Keys
- Files
- Organizations
- Metrics
Customer Portal API
- GETGet Customer
- GETGet Organization
- Sessions
- Subscriptions
- Orders
- License Keys
- File Downloads
Webhook Events
- Customer Events
- Billing Events
- Organization Events
Integrations
- OpenID Connect
- OAuth 2.0 Clients
- Webhooks
OpenID Connect
Introspect Token
Get information about an access token.
POST
/
v1
/
oauth2
/
introspect
Copy
Ask AI
from polar_sdk import Polar
with Polar() as polar:
res = polar.oauth2.introspect(request={
"token": "<value>",
"client_id": "<id>",
"client_secret": "<value>",
})
# Handle response
print(res)
Copy
Ask AI
{
"active": true,
"client_id": "<string>",
"token_type": "access_token",
"scope": "<string>",
"sub_type": "user",
"sub": "<string>",
"aud": "<string>",
"iss": "<string>",
"exp": 123,
"iat": 123
}
Body
application/x-www-form-urlencoded
Response
200 - application/json
Successful Response
The response is of type object
.
Was this page helpful?
Copy
Ask AI
from polar_sdk import Polar
with Polar() as polar:
res = polar.oauth2.introspect(request={
"token": "<value>",
"client_id": "<id>",
"client_secret": "<value>",
})
# Handle response
print(res)
Copy
Ask AI
{
"active": true,
"client_id": "<string>",
"token_type": "access_token",
"scope": "<string>",
"sub_type": "user",
"sub": "<string>",
"aud": "<string>",
"iss": "<string>",
"exp": 123,
"iat": 123
}
Assistant
Responses are generated using AI and may contain mistakes.