RedLine-a qoşulma (LIDA və digər layihələr)
RedLine əsas provider-dir. Layihəniz tenant kimi API və ya dashboard ilə qoşulur.
Model
WhatsApp Calling, ElevenLabs və Asterisk RedLine-da birləşir. LIDA.ge və digər xidmətlər birbaşa Meta/ElevenLabs-a yox, RedLine-a qoşulur.
RedLine (provider) ├── WhatsApp Calling API ├── ElevenLabs ├── Asterisk / SIP └── Tenants: LIDA.ge, digər şirkətlər
Addımlar
- redlineapp.site-da hesab yaradın (şirkət adı + slug, məs. lida).
- API key-i bir dəfə kopyalayın (Settings-də yenilənə bilər).
- Onboarding-də tenant-a məxsus WhatsApp DID bağlayın.
- LIDA/app-dən Bearer rl_... ilə /api/v1/* çağırın.
Tenant API
Authorization: Bearer rl_... header tələb olunur.
# Org profile
curl -H "Authorization: Bearer rl_xxx" \
https://redlineapp.site/api/v1/org
# Route a call (LIDA / Asterisk / custom apps)
curl -X POST https://redlineapp.site/api/v1/route \
-H "Authorization: Bearer rl_xxx" \
-H "Content-Type: application/json" \
-d '{"from":"+994501112233","to":"+995557617399","callId":"abc"}'
# Upsert contact
curl -X POST https://redlineapp.site/api/v1/contacts \
-H "Authorization: Bearer rl_xxx" \
-H "Content-Type: application/json" \
-d '{"name":"Aysel","phoneE164":"+994501112233","vip":true}'
# Recent calls
curl -H "Authorization: Bearer rl_xxx" https://redlineapp.site/api/v1/callsDID ayrılığı
LIDA-nın mövcud WhatsApp nömrəsi Asterisk-də whatsapp-inbound-da qalır. RedLine tenant-ləri ayrı DID ilə redline-inbound istifadə edir — trafik qarışmır.