ראשי · מדריכים

כניסה עם טלפון לאפליקציות של Lovable, Base44 ו-Cursor

בוני אפליקציות עם AI כותבים בשבילכם את הקוד, אבל הם צריכים שירות ששולח את ה-SMS. מדביקים את הפרומפט המוכן שלנו והבונה מחבר את Otipi לבד.

בקצרה

Lovable, Cursor
פרומפט מוכן מהאזור האישי
Base44
מייבאים את תיאור ה-OpenAPI
מפתח
נשמר בסודות הפרויקט בשם OTIPI_KEY
סוכני AI
שרת MCP עבור Claude, ChatGPT ו-Cursor
מצב בדיקה
בחינם, בלי כרטיס

Lovable ו-Cursor

פותחים את עמוד חיבור באזור האישי ומעתיקים את הפרומפט. מדביקים אותו ב-Lovable או ב-Cursor ומוסיפים את המפתח שלכם לסודות הפרויקט בשם OTIPI_KEY. הבונה מוסיף פונקציית שרת ששולחת ובודקת קודים דרך ה-API שלנו.

Base44

מייבאים את ה-API מתיאור ה-OpenAPI שלו בכתובת otipi.co.il/openapi.json. מאותו רגע Base44 מכירה כל קריאה: קודי כניסה, הודעות וסטטוסים.

שומרים את המפתח בשרת

המפתח אסור שיופיע בקוד שרץ בדפדפן. בכל בונה יש מקום לסודות: שמים את המפתח שם וקוראים ל-Otipi רק מפונקציית שרת.

סוכנים ו-MCP

ל-Otipi יש שרת MCP מרוחק. מוסיפים אותו ל-Claude, ל-ChatGPT או ל-Cursor, והעוזר יכול לשלוח קוד בדיקה, לבדוק אותו ולהראות לכם את הקוד המתאים לסטאק שלכם.

דוגמה

Add Otipi to this project. Otipi is an API for login codes, SMS and email to recipients in Israel.

Rules:
- Call Otipi from server code only (an API route, a server action or an edge function). The key is a secret: read it from the environment variable OTIPI_KEY and never send it to the browser.
- Base URL: https://otipi.co.il/v1. Every request carries the header "Authorization: Bearer <key>" and a JSON body.
- A key that starts with sk_test_ is free and returns the code in "test_code". It really delivers only to the owner's own confirmed phone (5 free SMS) and the account email; everything else stays in the log. Use it while building.

Phone login in two calls:
1. POST /v1/otp/send {"to": "+972501234567", "app": "<the name of this app>"} -> 201 {"id", "status": "pending", "expires_at"}
   Optional: "channel": "sms" | "email" (sms by default), "language": "he" | "ar" | "ru" | "en".
2. POST /v1/otp/verify {"to": "+972501234567", "code": "<what the person typed>"} -> {"valid": true} or {"valid": false, "reason": "wrong_code" | "expired_or_missing" | "too_many_attempts"}
   Sign the person in only when "valid" is true.

Supabase Auth (Send SMS hook, Send Email hook):
- No code is needed for this. Tell the user to copy the hook address and its secret from the Otipi dashboard (page Connect) and, in the Supabase Dashboard -> Authentication -> Hooks, to add a Send SMS hook (phone codes) or a Send Email hook (all auth emails) of the HTTP type with them.

Base44:
- Connect using OpenAPI specification at https://otipi.co.il/openapi.json (https://otipi.co.il/openapi.json).

Other messages: POST /v1/messages {"channel": "sms" | "email", "to": "...", "text": "..."} -> 202 {"id", "status": "queued"}. An email also needs "subject" and, with a live key, "from" on a verified domain.

Phone numbers are Israeli mobiles written as +9725XXXXXXXX. An error comes as {"error": {"code", "message"}} with a fitting HTTP status: show the person a short message and log the code.

Full reference: https://otipi.co.il/llms-full.txt
OpenAPI: https://otipi.co.il/openapi.json

שאלות

זה עובד ב-Lovable Cloud?

כן, דרך הפרומפט: הקוד נשלח מפונקציית שרת משלכם. הכניסה המובנית עם טלפון ב-Lovable Cloud היא דבר אחר ותומכת רק בספקים שלה.

צריך לדעת לכתוב קוד?

לא. מדביקים את הפרומפט ואת המפתח, והבונה כותב את הקוד.

כמה עולה בדיקה?

כלום. מפתח בדיקה הוא חינם ומחזיר את הקוד בתשובה, כך שאפשר לנסות קודם את כל התהליך.

מנסים תוך דקה

מפתח בדיקה בחינם מיד, בלי כרטיס אשראי. קודי הבדיקה מגיעים לטלפון ולמייל שלכם.

קבלו מפתח בדיקה לתיעוד

עוד מדריכים