Wait for a code
wait_for_codeWaits for the next verification code to arrive at a line and returns it. Call this immediately BEFORE triggering the text, so nothing is missed. Returns timedOut: true if none arrives in time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Optional. Only consider messages whose sender contains this text, case-insensitively — a short code, say 32665. | |
| lineId | Yes | The line's id, from list_lines. | |
| service | No | Optional. Only consider messages Cleat attributed to this service (its id or name, e.g. facebook), or that carry this label from your workspace's contacts. | |
| timeoutSeconds | No | How long to wait, up to 55. Defaults to 30. |