Skip to main content
GET
/
auth
/
validate
Validate authentication token
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
  }
}

Authorizations

Authorization
string
header
required

LithoBlocks API key obtained from your organization dashboard

Response

Authentication information

valid
boolean
required
user
object
required
token
object
required
organization
object
required