cURL
curl --request GET \ --url https://api.lithoblocks.com/auth/validate \ --header 'Authorization: Bearer <token>'
{ "valid": true, "user": { "id": "<string>", "firstName": "<string>", "lastName": "<string>", "email": "<string>", "organizationId": "<string>", "organizationName": "<string>", "role": "owner", "scopes": [ "<string>" ], "createdAt": "<string>", "lastActive": "<string>" }, "token": { "keyPrefix": "<string>", "name": "<string>", "description": "<string>", "scopes": [ "<string>" ], "createdAt": "<string>", "lastUsedAt": "<string>", "expiresAt": "<string>", "status": "active" }, "organization": { "id": "<string>", "name": "<string>", "status": "<string>", "memberCount": 123, "creditBalance": 123 } }
Validate the current bearer token and return authentication information including user details, organization, and available scopes
LithoBlocks API key obtained from your organization dashboard
Authentication information
Show child attributes