/v1/introspectAuthIntrospect current user with workspace list
Response · 200
is_authenticated*booleanFalse for an anonymous caller and for an access token whose session has been signed out.
principalobjectThe authenticated caller, or `null` when the request carries no valid session.
accountobjectThe caller's account profile, or `null` when not authenticated.
workspacesarrayWorkspaces the caller is a member of (empty when not authenticated).
Example
Request
GET https://api.platform-auth.productcraft.co/v1/introspect
Authorization: Bearer YOUR_TOKENResponse
{
"is_authenticated": false,
"principal": {},
"account": {},
"workspaces": [
{
"id": "00000000-0000-0000-0000-000000000000",
"slug": "string",
"display_name": "string",
"role": "owner",
"services": [
"mail",
"waitlist"
],
"avatar_url": "string"
}
]
}