Skip to content
Proud to collaborate with Microsoft for Startups

identity.user.validate-token ​

Validate a raw API token and return the associated user profile

Validate a raw API token and return the associated user profile.

Inputs:

  • token: Raw API token to validate (required)
  • organization_uuid: If provided, also return the user's membership role in this organization (optional)

Outputs (terminal state_data):

  • valid: bool — True when the token resolves to an active user
  • user: dict{user_uuid, username, email, system_role} or None
  • membership_role: str or None (populated only when organization_uuid given)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
tokenstringYes—Raw API token to validate
organization_uuiduuidNo—If provided, also return the user's membership role in this organization

Output Schema ​

FieldTypeRequiredDefaultDescription
validbooleanYes——
userdictNo——
membership_rolestringNo——
organization_uuiduuidNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "identity.user.validate-token",
  "initial_data": {
    "token": "value"
  }
}