Sync-Numbers Documentation¶
🚀 REST API Gateway for AI Contact Transfer Integration
A secure, production-ready FastAPI service for seamless contact synchronization with AI
🌟 What is Sync-Numbers?¶
Sync-Numbers is a robust API gateway that bridges your systems with our AI models, providing enterprise-grade contact transfer capabilities with built-in validation, idempotency, and observability.
Key Features¶
✅ Phone Validation & Normalization - Validates and normalizes phone numbers to E.164 format
✅ Idempotency - Prevents duplicate processing with 72h TTL
✅ Authentication - Bearer token + optional HMAC signatures
✅ Automatic Chunking - Splits large batches (max 1000 contacts per chunk)
✅ Smart Retry Logic - Exponential backoff for 429/5xx errors
✅ Dry-Run Mode - Test validation without sending data
✅ Full Observability - Structured logging, Prometheus metrics, correlation IDs
✅ Security First - PII masking, IP allowlists, HTTPS-only
📚 Documentation¶
🚀 Quick Example¶
import httpx
import uuid
async def import_contacts():
headers = {
"Authorization": "Bearer demo_api_key_12345",
"Idempotency-Key": str(uuid.uuid4()),
"Content-Type": "application/json",
}
contacts = [{
"phone": "+79001234567",
"tags": ["lead", "website"],
"additionalFields": {
"source": "landing",
"campaign": "summer2024"
}
}]
async with httpx.AsyncClient() as client:
response = await client.post(
"https://import-api.liddex.ru/v1/contacts/import",
json=contacts,
headers=headers,
)
return response.json()
🏗️ Architecture¶
graph LR
A[Partner System] -->|HTTPS/JSON| B[Sync API]
B -->|HTTPS/JSON| C[AI Webhook]
B -->|Store| D[(PostgreSQL)]
style B fill:#4051b5,stroke:#fff,color:#fff
📖 Available Languages¶
This documentation is available in multiple languages:
🔗 Useful Links¶
- Interactive API Docs: https://import-api.liddex.ru/docs
🆘 Support¶
Need help? Here's how to get support:
- Check the API Guide for common issues
- Review the Integration Guide for technical details
- Include
correlation_idwhen reporting issues - Contact your integration support team
Made with ❤️ for seamless contact transfer integration