Skip to content

Call my phone: the owner self-test

Availability: Off by default Workspace owner only; the destination must be the owner's own verified number. Since 2026-11 /status

The owner self-test is the one phone call an AI employee places: it dials the workspace owner’s own, confirmed phone number so that the owner can hear their agent on a real handset. It never calls prospects, customers or anyone else; selfTest must be true, and the destination must be the number on the owner’s profile. Phone calls to your customers over a carrier number are a separate, planned surface (status row).

Every operation on this page is workspace owner only and uses the owner’s dashboard login (a JWT), not an API key. The operation shapes are in the API reference.

  1. The owner presses “Call my phone” (or your app calls startOutboundCall). The mutation returns queued at once with a callId.
  2. A moment later the owner’s phone rings. On answer, the AI says one short opening sentence that identifies it as an AI assistant, then the agent’s published workflow (or the live engine) takes the conversation, with the same barge-in and turn-taking as a browser call.
  3. The call ends when either side hangs up, when the agent’s workflow ends the session, or at maxDurationSeconds (15 to 300 seconds, default 120). If voicemail answers, the call is hung up without leaving a message.
  4. The call record reaches an end state (completed, voicemail, no_answer, busy, declined, failed, cancelled or blocked) with its duration and end reason, and the conversation is a session with a transcript, like chat.

In short: the owner starts the call from the dashboard, Wetel dials the confirmed number, the voice worker opens with a sentence saying it is an AI and talks turn by turn, and the dashboard polls the call record until it ends.

sequenceDiagram
participant O as Owner (dashboard)
participant W as Wetel API
participant C as Carrier
participant P as Owner's phone
participant V as Voice worker
O->>W: startOutboundCall (JWT, selfTest: true)
W-->>O: callId, status queued
W->>C: dial the confirmed number
C->>P: ring
P-->>C: answered
C->>V: phone joins the call's room
V-->>P: opening sentence (says it is an AI)
loop each turn, until hang-up or the maximum length
P->>V: owner speaks
V-->>P: reply
end
O->>W: outboundCall(callId) every few seconds
W-->>O: status, durationSeconds, endReason

Before the first call: confirm your number

Section titled “Before the first call: confirm your number”

A self-test dials only a number the owner has proved is theirs. Confirmation is a spoken code (status row):

  1. Put your phone number on your profile (E.164, for example +60123456789; +1 and +60 prefixes are allowed unless your workspace sets its own list).
  2. requestPhoneVerification(input: { agentId }): the AI employee calls your number and reads a six-digit code twice. The code is never shown in the API, and the call lasts at most 45 seconds.
  3. confirmPhoneVerification(code: "048215"): send the digits back as a string within 10 minutes. Three wrong guesses lock the code; request a new one. A confirmation lasts 90 days, and changing the profile number makes the new number unconfirmed.
  4. phoneVerificationStatus tells a screen where the number stands (UNVERIFIED, CODE_SENT, VERIFIED, and NOT_ENABLED or NO_PHONE when nothing can be done yet).

Until the number is confirmed, startOutboundCall is refused with FORBIDDEN and outboundAvailability reports PHONE_NOT_VERIFIED. A deployment can be set to skip the step (requiredForCalls: false in phoneVerificationStatus); the default is that it is required.

Ask outboundAvailability before showing the button. available: true means a self-test could start now; otherwise reason says why in one word (NOT_ENABLED, NO_PHONE, COUNTRY_NOT_ALLOWED, PHONE_NOT_VERIFIED, DAILY_LIMIT, UNAVAILABLE), with the masked number (phoneLast4, phoneCountry) and the default length for the confirmation text. NOT_ENABLED deliberately covers every kind of “off” in one word. Feature-detect the query: an older backend without it fails the whole query with a validation error, and then there should be no button.

Poll outboundCall(id) with the callId: about every 2 seconds while queued, dialing or ringing, every 5 seconds while answered, and stop at an end state. It returns the status, duration, endReason (a short machine code, not text to show as it is), the masked destination and the sessionId of the transcript. It never returns the number, its hash or a join token.

To stop a call that has not been answered yet, call cancelOutboundCall(id): the call becomes cancelled and the AI voice is released. An already answered call is refused (BAD_REQUEST): hang up on your phone. Cancelling is always allowed, even when outbound calling is switched off, because stopping a call must never be blocked.

  • One destination: the owner’s own confirmed number. selfTest: false is refused.
  • A hard maximum length per call, 15 to 300 seconds.
  • A daily call and minute allowance per workspace; a verification call counts against it, and is itself limited to one call that reached the phone per number per day and three requests per user per day.
  • Workspace and platform switches, and a platform kill switch, gate every call; when any is off, startOutboundCall answers FORBIDDEN and outboundAvailability answers NOT_ENABLED.
  • The destination number is stored only as a per-workspace keyed hash plus its last four digits and country. Audio is not recorded.
  • The AI identifies itself at the start of every call. Wetel does not place cold outbound sales calls; see controls and compliance.
SituationCode
Outbound calling off for the environment or workspace, kill switch on, limit reached, number not yours, prefix not allowed, number not confirmed, or caller not the ownerFORBIDDEN
Malformed number, selfTest: false, duration outside 15 to 300, LIVE where it is off, or cancelOutboundCall on an answered callBAD_REQUEST
Agent or call id not in your workspaceNOT_FOUND

The full tables, including the verification code rules, are in the API reference.