wasender.contacts.lid_from_pn ​
Read-only: resolve a Wasender LID from a phone number; no database writes
Resolve a contact's LID from a phone number (GET /lid-from-pn/{pn}).
Inputs:
- cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
- pn: str — phone number to resolve (path param).
Outputs (terminal state_data):
- lid: str — resolved LID for the phone number
- pn: str — phone number that was resolved
- success: bool — provider success flag
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-wasender |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | Cloud connection holding the Wasender credential |
pn | string | Yes | — | Phone number to resolve (path param) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | No | — | — |
lid | string | No | — | Resolved LID for the phone number |
pn | string | No | — | Phone number that was resolved |
success | boolean | No | — | Provider success flag |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | integer | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "wasender.contacts.lid_from_pn",
"initial_data": {
"cloud_connection_uuid": "value",
"pn": "value"
}
}