Doksi Docs
Device API

Simulate Events

Simulate incoming SMS, phone calls, and fingerprint authentication.

Trigger system-level events that would normally come from external hardware or network sources.

send_sms

Simulate an incoming SMS message. The message appears in the device notification shade and SMS app as if received from the network.

ParameterTypeRequiredDescription
srcAddressstringYesSender phone number (e.g. +14155552671)
textstringYesMessage body
SMS sent from +14155552671: "Your verification code is 847291"

send_phone_call

Simulate phone call events. Chain operations to build a complete call flow.

ParameterTypeRequiredDescription
operationstringYesCall lifecycle operation
numberstringYesPhone number (e.g. +14155552671)
OperationDescription
initTrigger an incoming call
acceptAnswer the call
rejectDecline the call
busyReturn a busy signal
disconnectEnd the call
holdPut the call on hold
unholdResume the call

A typical call flow: initacceptdisconnect.

Phone call initiated from +14155552671.

send_fingerprint

Simulate a fingerprint sensor touch. Use to test biometric authentication flows without physical hardware.

ParameterTypeRequiredDescription
isTouchingbooleanYestrue = finger on sensor, false = lifted
touchIdnumberNoFingerprint ID. 1 = registered print (auth succeeds). Any other value = unregistered (auth fails). Default: 1
Fingerprint touch event sent (isTouching: true, touchId: 1).

On this page