الدخول بالهاتف لتطبيقات Lovable وBase44 وCursor
أدوات البناء بالذكاء الاصطناعي تكتب الكود عنكم، لكنها تحتاج إلى خدمة ترسل SMS. الصقوا تعليماتنا الجاهزة، وتربط الأداة Otipi بنفسها.
نظرة سريعة
- Lovable وCursor
- تعليمات جاهزة من لوحة التحكم
- Base44
- استيراد وصف OpenAPI
- المفتاح
- يُحفظ في أسرار المشروع باسم OTIPI_KEY
- وكلاء الذكاء الاصطناعي
- خادم 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 فهو شيء آخر ويدعم مزوّديه فقط.
هل يجب أن أعرف البرمجة؟
لا. تلصقون التعليمات والمفتاح، وتكتب الأداة الكود.
كم تكلّف التجربة؟
لا شيء. المفتاح التجريبي مجاني ويعيد الرمز في الجواب، فتجرّبون المسار كله أولًا.
جرّبوا خلال دقيقة
مفتاح تجريبي مجاني فورًا، بلا بطاقة. تصل الرموز التجريبية إلى هاتفكم وبريدكم أنتم.
احصلوا على مفتاح تجريبي اقرأوا الدليل