Skip to content
Proud to collaborate with Microsoft for Startups

data.identity.api-token.delete ​

Hard-delete a UserApiToken row

Hard-delete a UserApiToken row after tenant check.

Input: token_uuid + user_uuid (required). Output in state_data: token_uuid, deleted, deleted_at.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
token_uuidstringYes——
user_uuiduuidYes—Tenant check — token must belong to this user
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
token_uuidstringYes——
deletedbooleanYes——
deleted_atstringYes——
user_uuidstringNo——
actorstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completeDelete API token
completedNoYesYes—Deleted
failedNoYesNo—Delete failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

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

{
  "workflow_type": "data.identity.api-token.delete",
  "initial_data": {
    "token_uuid": "value",
    "user_uuid": "value"
  }
}