Otipi
v0.1.0Send and verify SMS, email and OTP codes in Israel.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
send_test_otp
Send a one-time verification code (OTP) by SMS or email to a phone number in Israel using Otipi, in test mode. Use this to try the login/2FA flow end to end. With a test key the message really arrives ONLY if the recipient was confirmed with add_test_recipient + confirm_test_recipient; otherwise it is kept in the sandbox log and nothing is delivered. The result says which case happened and includes test_code when available, so you can verify it with verify_otp. Each account has 5 free test SMS for life.
| Parameter | Type | Description |
|---|---|---|
app * | string | Brand name shown in the message, for example "MyApp". Max 40 characters. |
to * | string | Israeli mobile number in E.164 format +9725XXXXXXXX (05XXXXXXXX is also accepted), or an email address for the email channel. |
channel | string | Delivery channel. Default sms. |
language | string | Message language. Default he (Hebrew). |
verify_otp
Check a one-time code that was sent with send_test_otp (or the live API) for a phone number or email. Returns valid true/false and, when false, the reason (wrong_code, expired_or_missing, too_many_attempts).
| Parameter | Type | Description |
|---|---|---|
code * | string | The code entered by the user. |
to * | string | The same recipient the code was sent to. |
add_test_recipient
Start confirming a phone number or email as a test recipient. A 6-digit code is sent to it. Once confirmed, test messages to that recipient really arrive (otherwise test mode only logs them in a sandbox). Only add numbers or emails that belong to the account owner. Test key (sk_test_) only. After calling this, ask the human for the 6-digit code they received and call confirm_test_recipient.
| Parameter | Type | Description |
|---|---|---|
to * | string | Israeli mobile number in E.164 format +9725XXXXXXXX (05XXXXXXXX is also accepted), or an email address for the email channel. |
confirm_test_recipient
Finish confirming a test recipient with the 6-digit code the human received after add_test_recipient. On success, send_test_otp to this recipient is really delivered.
| Parameter | Type | Description |
|---|---|---|
code * | string | The 6-digit code the human received. |
to * | string | The same number or email passed to add_test_recipient. |
list_test_recipients
List the confirmed and pending test recipients of this account and how many of the 5 free test SMS are left. Call it before send_test_otp to know whether a number will really receive messages.
check_delivery_status
Look up a sent message by message_id (returned by send_test_otp) and report its status (queued, sent, delivered, opened, failed, bounced), whether test delivery was real or sandbox, and the event timeline.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The message id, as returned by send_test_otp. |
get_integration_snippet
Return ready-to-paste code for adding Otipi phone/OTP login to a project: Next.js App Router (API routes plus a client component), Supabase Auth (Send SMS hook setup plus client code) or Express. Works offline and does not need an API key. Use it when the user wants to integrate SMS verification or 2FA for Israeli numbers.
| Parameter | Type | Description |
|---|---|---|
framework * | string | Target framework. |
language | string | Code language. Default ts. |