Skip to content
Proud to collaborate with Microsoft for Startups

wasender.auth.validate_token ​

Read-only: validate a Wasender API token; no database writes

Validate a Wasender API token by calling the session status endpoint (GET /status).

Inputs:

  • cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.

Outputs (terminal state_data):

  • connected: bool — whether the WhatsApp session is connected
  • status: str — provider session status string
  • phone_number: str — paired phone number, if any

Plugin required: context.get_plugin("wasender") must expose .api_token.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-wasender
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Cloud connection holding the Wasender credential

Output Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidNo——
connectedbooleanNo——
statusstringNo——
phone_numberstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerintegerNo——
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": "wasender.auth.validate_token",
  "initial_data": {
    "cloud_connection_uuid": "value"
  }
}